mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-23 11:48:33 +00:00
fix finalization
This commit is contained in:
parent
6068dd960b
commit
11300fc290
@ -405,10 +405,17 @@ proc proposeBlock(node: BeaconNode,
|
|||||||
node.attestationPool.getAttestationsForBlock(state, slot),
|
node.attestationPool.getAttestationsForBlock(state, slot),
|
||||||
deposits: deposits)
|
deposits: deposits)
|
||||||
|
|
||||||
|
var cache = get_empty_per_epoch_cache()
|
||||||
|
let proposer_index = get_beacon_proposer_index(state, cache)
|
||||||
|
if proposer_index.isNone:
|
||||||
|
# TODO?
|
||||||
|
discard
|
||||||
|
|
||||||
var
|
var
|
||||||
newBlock = SignedBeaconBlock(
|
newBlock = SignedBeaconBlock(
|
||||||
message: BeaconBlock(
|
message: BeaconBlock(
|
||||||
slot: slot,
|
slot: slot,
|
||||||
|
proposer_index: proposer_index.get.uint64,
|
||||||
parent_root: head.root,
|
parent_root: head.root,
|
||||||
body: blockBody))
|
body: blockBody))
|
||||||
tmpState = hashedState
|
tmpState = hashedState
|
||||||
|
Loading…
x
Reference in New Issue
Block a user