rename OnEIP4844BlockAdded > OnDenebBlockAdded (#4714)

This commit is contained in:
Etan Kissling 2023-03-10 18:14:27 +01:00 committed by GitHub
parent e4b5478fff
commit b0577bdc6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -308,7 +308,7 @@ type
epochRef: EpochRef, epochRef: EpochRef,
unrealized: FinalityCheckpoints) {.gcsafe, raises: [Defect].} unrealized: FinalityCheckpoints) {.gcsafe, raises: [Defect].}
OnEIP4844BlockAdded* = proc( OnDenebBlockAdded* = proc(
blckRef: BlockRef, blckRef: BlockRef,
blck: deneb.TrustedSignedBeaconBlock, blck: deneb.TrustedSignedBeaconBlock,
epochRef: EpochRef, epochRef: EpochRef,
@ -316,7 +316,7 @@ type
OnForkyBlockAdded* = OnForkyBlockAdded* =
OnPhase0BlockAdded | OnAltairBlockAdded | OnBellatrixBlockAdded | OnPhase0BlockAdded | OnAltairBlockAdded | OnBellatrixBlockAdded |
OnCapellaBlockAdded | OnEIP4844BlockAdded OnCapellaBlockAdded | OnDenebBlockAdded
HeadChangeInfoObject* = object HeadChangeInfoObject* = object
slot*: Slot slot*: Slot

View File

@ -212,7 +212,7 @@ suite "Gossip validation - Extra": # Not based on preset config
const nilCallback = OnCapellaBlockAdded(nil) const nilCallback = OnCapellaBlockAdded(nil)
dag.addHeadBlock(verifier, blck.capellaData, nilCallback) dag.addHeadBlock(verifier, blck.capellaData, nilCallback)
of ConsensusFork.Deneb: of ConsensusFork.Deneb:
const nilCallback = OnEIP4844BlockAdded(nil) const nilCallback = OnDenebBlockAdded(nil)
dag.addHeadBlock(verifier, blck.denebData, nilCallback) dag.addHeadBlock(verifier, blck.denebData, nilCallback)
check: added.isOk() check: added.isOk()
dag.updateHead(added[], quarantine[], []) dag.updateHead(added[], quarantine[], [])

View File

@ -77,7 +77,7 @@ suite "Light client" & preset():
const nilCallback = OnCapellaBlockAdded(nil) const nilCallback = OnCapellaBlockAdded(nil)
dag.addHeadBlock(verifier, blck.capellaData, nilCallback) dag.addHeadBlock(verifier, blck.capellaData, nilCallback)
of ConsensusFork.Deneb: of ConsensusFork.Deneb:
const nilCallback = OnEIP4844BlockAdded(nil) const nilCallback = OnDenebBlockAdded(nil)
dag.addHeadBlock(verifier, blck.denebData, nilCallback) dag.addHeadBlock(verifier, blck.denebData, nilCallback)
check: added.isOk() check: added.isOk()

View File

@ -64,7 +64,7 @@ suite "Light client processor" & preset():
const nilCallback = OnCapellaBlockAdded(nil) const nilCallback = OnCapellaBlockAdded(nil)
dag.addHeadBlock(verifier, blck.capellaData, nilCallback) dag.addHeadBlock(verifier, blck.capellaData, nilCallback)
of ConsensusFork.Deneb: of ConsensusFork.Deneb:
const nilCallback = OnEIP4844BlockAdded(nil) const nilCallback = OnDenebBlockAdded(nil)
dag.addHeadBlock(verifier, blck.denebData, nilCallback) dag.addHeadBlock(verifier, blck.denebData, nilCallback)
doAssert added.isOk() doAssert added.isOk()
dag.updateHead(added[], quarantine[], []) dag.updateHead(added[], quarantine[], [])