switch debug to notice and add some contextual information

This commit is contained in:
Dustin Brody 2019-12-05 12:49:57 +01:00
parent 3d2fde0cd4
commit 86f267bc5d
1 changed files with 8 additions and 1 deletions

View File

@ -647,7 +647,14 @@ proc handleProposal(node: BeaconNode, head: BlockRef, slot: Slot):
node.blockPool.withState(node.stateCache, BlockSlot(blck: head, slot: slot)):
let proposerIdx = get_beacon_proposer_index(state, cache)
if proposerIdx.isNone:
debug "Missing proposer index"
notice "Missing proposer index",
slot=slot,
epoch=slot.compute_epoch_at_slot,
num_validators=state.validators.len,
num_active_validators=
get_active_validator_indices(state, slot.compute_epoch_at_slot),
balances=state.balances
return head
let validator = node.getAttachedValidator(state, proposerIdx.get)