Skip to content

Commit

Permalink
rebased fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
agnxsh committed Oct 30, 2024
1 parent d82defd commit ff16c2f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions beacon_chain/beacon_chain_file.nim
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ func getBlobForkCode(fork: ConsensusFork): uint64 =
uint64(MaxForksCount)
of ConsensusFork.Electra:
uint64(MaxForksCount) + uint64(fork) - uint64(ConsensusFork.Deneb)
of ConsensusFork.Fulu:
uint64(MaxForksCount) + uint64(fork) - uint64(ConsensusFork.Electra)
of ConsensusFork.Phase0 .. ConsensusFork.Capella:
raiseAssert "Blobs are not supported for the fork"

Expand Down
4 changes: 3 additions & 1 deletion beacon_chain/consensus_object_pools/block_clearance.nim
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ proc addBackfillBlock*(
ok()

template BlockAdded(kind: static ConsensusFork): untyped =
when kind == ConsensusFork.Electra:
when kind == ConsensusFork.Fulu:
OnFuluBlockAdded
elif kind == ConsensusFork.Electra:
OnElectraBlockAdded
elif kind == ConsensusFork.Deneb:
OnDenebBlockAdded
Expand Down
1 change: 0 additions & 1 deletion beacon_chain/consensus_object_pools/blockchain_dag.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,6 @@ proc applyBlock(
? state_transition(
dag.cfg, state, data, cache, info,
updateFlags + {slotProcessed}, noRollback)
dag.updateFlags + {slotProcessed}, noRollback)
of ConsensusFork.Fulu:
let data = getBlock(dag, bid, fulu.TrustedSignedBeaconBlock).valueOr:
return err("Block load failed")
Expand Down

0 comments on commit ff16c2f

Please sign in to comment.