This commit is contained in:
Alexey Akhunov 2018-07-10 10:17:56 +01:00
parent 9b3456d86e
commit f0ada2afca

View File

@ -12,6 +12,7 @@ import (
"io" "io"
"os" "os"
"runtime/pprof" "runtime/pprof"
"time"
"github.com/cosmos/ethermint/core" "github.com/cosmos/ethermint/core"
"github.com/cosmos/ethermint/state" "github.com/cosmos/ethermint/state"
@ -120,6 +121,7 @@ func main() {
vmConfig := ethvm.Config{} vmConfig := ethvm.Config{}
n := 0 n := 0
startTime := time.Now()
for { for {
if err = stream.Decode(&block); err == io.EOF { if err = stream.Decode(&block); err == io.EOF {
err = nil err = nil
@ -215,7 +217,7 @@ func main() {
n++ n++
if (n % 10000) == 0 { if (n % 10000) == 0 {
fmt.Printf("processed %d blocks\n", n) fmt.Printf("processed %d blocks, time so far: %v\n", n, time.Since(startTime))
} }
//if n >= 20000 { //if n >= 20000 {
// break // break