mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-14 16:47:21 +00:00
reduce received invalid sync block logging to notice; decimal TTD logging (#3839)
This commit is contained in:
parent
2a2bcea70d
commit
ae05ba9a48
@ -528,27 +528,27 @@ proc exchangeTransitionConfiguration*(p: Eth1Monitor): Future[void] {.async.} =
|
||||
if p.terminalBlockHash.isSome:
|
||||
p.terminalBlockHash.get
|
||||
else:
|
||||
# TODO can't use static(default(...)) in this context
|
||||
default(BlockHash),
|
||||
# https://github.com/nim-lang/Nim/issues/19802
|
||||
(static(default(BlockHash))),
|
||||
terminalBlockNumber:
|
||||
if p.terminalBlockNumber.isSome:
|
||||
p.terminalBlockNumber.get
|
||||
else:
|
||||
# TODO can't use static(default(...)) in this context
|
||||
default(Quantity))
|
||||
# https://github.com/nim-lang/Nim/issues/19802
|
||||
(static(default(Quantity))))
|
||||
let ecTransitionConfiguration =
|
||||
await p.dataProvider.web3.provider.engine_exchangeTransitionConfigurationV1(
|
||||
ccTransitionConfiguration)
|
||||
if ccTransitionConfiguration != ecTransitionConfiguration:
|
||||
warn "exchangeTransitionConfiguration: Configuration mismatch detected",
|
||||
consensusTerminalTotalDifficulty =
|
||||
ccTransitionConfiguration.terminalTotalDifficulty,
|
||||
$ccTransitionConfiguration.terminalTotalDifficulty,
|
||||
consensusTerminalBlockHash =
|
||||
ccTransitionConfiguration.terminalBlockHash,
|
||||
consensusTerminalBlockNumber =
|
||||
ccTransitionConfiguration.terminalBlockNumber.uint64,
|
||||
executionTerminalTotalDifficulty =
|
||||
ecTransitionConfiguration.terminalTotalDifficulty,
|
||||
$ecTransitionConfiguration.terminalTotalDifficulty,
|
||||
executionTerminalBlockHash =
|
||||
ecTransitionConfiguration.terminalBlockHash,
|
||||
executionTerminalBlockNumber =
|
||||
|
@ -109,7 +109,7 @@ proc fetchAncestorBlocksFromNetwork(rman: RequestManager,
|
||||
of BlockError.Invalid:
|
||||
# We stop processing blocks because peer is either sending us
|
||||
# junk or working a different fork
|
||||
warn "Received invalid block",
|
||||
notice "Received invalid block",
|
||||
peer = peer, blocks = shortLog(items),
|
||||
peer_score = peer.getScore()
|
||||
peer.updateScore(PeerScoreBadBlocks)
|
||||
|
@ -641,7 +641,7 @@ proc push*[T](sq: SyncQueue[T], sr: SyncRequest[T],
|
||||
hasInvalidBlock = true
|
||||
|
||||
let req = item.request
|
||||
warn "Received invalid sequence of blocks", request = req,
|
||||
notice "Received invalid sequence of blocks", request = req,
|
||||
blocks_count = len(item.data),
|
||||
blocks_map = getShortMap(req, item.data)
|
||||
req.item.updateScore(PeerScoreBadBlocks)
|
||||
|
Loading…
x
Reference in New Issue
Block a user