Commit dc6a9291 authored by George Hotz's avatar George Hotz

pass in block on cmd line

parent 7d8dc22e
...@@ -3,6 +3,7 @@ package main ...@@ -3,6 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"os" "os"
"strconv"
"github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/state"
...@@ -14,15 +15,7 @@ import ( ...@@ -14,15 +15,7 @@ import (
) )
func main() { func main() {
blockNumber, _ := strconv.Atoi(os.Args[1])
// 0 tx
//blockNumber := 13284491
// low tx
blockNumber := 13284469
// more tx with delete issue
//blockNumber := 13284053
// read header // read header
var header types.Header var header types.Header
...@@ -76,4 +69,9 @@ func main() { ...@@ -76,4 +69,9 @@ func main() {
} }
fmt.Println("process done with hash", header.Root, "->", block.Header().Root, "real", newheader.Root) fmt.Println("process done with hash", header.Root, "->", block.Header().Root, "real", newheader.Root)
if block.Header().Root == newheader.Root {
fmt.Println("good transition")
} else {
fmt.Println("BAD transition :((")
}
} }
#!/bin/bash -e #!/bin/bash -e
(cd minigeth/ && go build) (cd minigeth/ && go build)
minigeth/go-ethereum # 0 tx: 13284491
# low tx: 13284469
# delete issue: 13284053
minigeth/go-ethereum 13284469
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