Commit c135b389 authored by obscuren's avatar obscuren

Commented out code due to rewrite vm

parent bdc0d1b7
package ethchain package ethchain
/*
import ( import (
_ "fmt" _ "fmt"
"github.com/ethereum/eth-go/ethdb" "github.com/ethereum/eth-go/ethdb"
...@@ -14,9 +15,10 @@ func TestVm(t *testing.T) { ...@@ -14,9 +15,10 @@ func TestVm(t *testing.T) {
db, _ := ethdb.NewMemDatabase() db, _ := ethdb.NewMemDatabase()
ethutil.Config.Db = db ethutil.Config.Db = db
bm := NewBlockManager(nil) bm := NewStateManager(nil)
block := bm.bc.genesisBlock block := bm.bc.genesisBlock
bm.Prepare(block.State(), block.State())
script := Compile([]string{ script := Compile([]string{
"PUSH", "PUSH",
"1", "1",
...@@ -31,3 +33,4 @@ func TestVm(t *testing.T) { ...@@ -31,3 +33,4 @@ func TestVm(t *testing.T) {
tx2.Sign([]byte("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) tx2.Sign([]byte("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))
bm.ApplyTransactions(block, []*Transaction{tx2}) bm.ApplyTransactions(block, []*Transaction{tx2})
} }
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment