Skip to content

Commit

Permalink
core: fix log value for proposed reorg span
Browse files Browse the repository at this point in the history
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Sep 25, 2020
1 parent 41ee136 commit 2f81f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ func (bc *BlockChain) writeBlockWithState(block *types.Block, receipts []*types.
"status", "accepted",
"age", common.PrettyAge(time.Unix(int64(d.commonBlock.Time()), 0)),
"current.span", common.PrettyDuration(time.Duration(currentBlock.Time()-d.commonBlock.Time())*time.Second),
"proposed.span", common.PrettyDuration(time.Duration(int32(block.Time()))*time.Second),
"proposed.span", common.PrettyDuration(time.Duration(block.Time()-d.commonBlock.Time())*time.Second),
"common.bno", d.commonBlock.Number().Uint64(), "common.hash", d.commonBlock.Hash(),
"current.bno", currentBlock.Number().Uint64(), "current.hash", currentBlock.Hash(),
"proposed.bno", block.Number().Uint64(), "proposed.hash", block.Hash(),
Expand Down

0 comments on commit 2f81f32

Please sign in to comment.