Fix txgen build

pull/1921/head
Rongjian Lan 5 years ago
parent b240b7533d
commit 1e7822d77f
  1. 2
      cmd/client/txgen/main.go

@ -213,7 +213,7 @@ syncLoop:
Uint64("incoming block", block.NumberU64()). Uint64("incoming block", block.NumberU64()).
Msg("Got block from leader") Msg("Got block from leader")
if block.NumberU64()-txGen.Blockchain().CurrentBlock().NumberU64() == 1 { if block.NumberU64()-txGen.Blockchain().CurrentBlock().NumberU64() == 1 {
if err := txGen.AddNewBlock(block); err != nil { if _, err := txGen.Blockchain().InsertChain([]*types.Block{block}, true); err != nil {
utils.Logger().Error(). utils.Logger().Error().
Err(err). Err(err).
Msg("Error when adding new block") Msg("Error when adding new block")

Loading…
Cancel
Save