Commit 340d254b authored by George Hotz's avatar George Hotz

go test -run TestFullSlow is failing

parent 50354424
...@@ -73,8 +73,11 @@ func RunFull() { ...@@ -73,8 +73,11 @@ func RunFull() {
deploy(interpreter, statedb) deploy(interpreter, statedb)
ram := make(map[uint32](uint32)) ram := make(map[uint32](uint32))
//LoadMappedFile("../mipigo/test/test.bin", ram, 0) LoadMappedFile("../mipigo/test/test.bin", ram, 0)
LoadMappedFile("test/bin/add.bin", ram, 0) totalSteps := 1000
//LoadMappedFile("test/bin/add.bin", ram, 0)
//totalSteps := 12
ZeroRegisters(ram) ZeroRegisters(ram)
ram[0xC000007C] = 0x5EAD0000 ram[0xC000007C] = 0x5EAD0000
...@@ -90,7 +93,7 @@ func RunFull() { ...@@ -90,7 +93,7 @@ func RunFull() {
fmt.Println("trie is ready, let's run") fmt.Println("trie is ready, let's run")
fmt.Println("state root", root, "nodes", len(Preimages)) fmt.Println("state root", root, "nodes", len(Preimages))
for step := 0; step < 12; step++ { for step := 0; step < totalSteps; step++ {
// it's run o clock // it's run o clock
from := common.Address{} from := common.Address{}
to := common.HexToAddress("0x1337") to := common.HexToAddress("0x1337")
...@@ -116,7 +119,7 @@ func RunFull() { ...@@ -116,7 +119,7 @@ func RunFull() {
} }
} }
ParseNode(root, 0, func(t common.Hash) []byte { /*ParseNode(root, 0, func(t common.Hash) []byte {
return getTrieNode(t, interpreter, statedb) return getTrieNode(t, interpreter, statedb)
}) })*/
} }
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