|
|
@ -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") |
|
|
|