Skip to content

Commit

Permalink
make Nimbus Nim 2.2-compatible (#6869)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored Jan 24, 2025
1 parent 5d26134 commit a2826d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon_chain/nimbus_beacon_node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ proc init*(T: type BeaconNode,
withState(dag.headState):
getValidator(forkyState().data.validators.asSeq(), pubkey)

func getCapellaForkVersion(): Opt[Version] =
func getCapellaForkVersion(): Opt[presets.Version] =
Opt.some(cfg.CAPELLA_FORK_VERSION)

func getDenebForkEpoch(): Opt[Epoch] =
Expand Down
2 changes: 1 addition & 1 deletion beacon_chain/validators/beacon_validators.nim
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ proc makeBeaconBlockForHeadAndSlot*(
slot, head = shortLog(head), error
$error

var blobsBundleOpt = Opt.none(BlobsBundle)
var blobsBundleOpt = Opt.none(deneb.BlobsBundle)
when typeof(payload).kind >= ConsensusFork.Deneb:
blobsBundleOpt = Opt.some(payload.blobsBundle)

Expand Down

0 comments on commit a2826d7

Please sign in to comment.