Skip to content

Commit 2f81f32

Browse files
committed
core: fix log value for proposed reorg span
Signed-off-by: meows <b5c6@protonmail.com>
1 parent 41ee136 commit 2f81f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ func (bc *BlockChain) writeBlockWithState(block *types.Block, receipts []*types.
15711571
"status", "accepted",
15721572
"age", common.PrettyAge(time.Unix(int64(d.commonBlock.Time()), 0)),
15731573
"current.span", common.PrettyDuration(time.Duration(currentBlock.Time()-d.commonBlock.Time())*time.Second),
1574-
"proposed.span", common.PrettyDuration(time.Duration(int32(block.Time()))*time.Second),
1574+
"proposed.span", common.PrettyDuration(time.Duration(block.Time()-d.commonBlock.Time())*time.Second),
15751575
"common.bno", d.commonBlock.Number().Uint64(), "common.hash", d.commonBlock.Hash(),
15761576
"current.bno", currentBlock.Number().Uint64(), "current.hash", currentBlock.Hash(),
15771577
"proposed.bno", block.Number().Uint64(), "proposed.hash", block.Hash(),

0 commit comments

Comments
 (0)