allow mocking blocks at any slot (#2873)
Currently, only the function to mock a block at next slot is exported. A more generic function that allows specifying any slot is available but not exported. This patch marks that function to also be exported.
This commit is contained in:
parent
7ab1856c04
commit
859c1a3c10
|
@ -36,7 +36,7 @@ proc signMockBlockImpl(
|
||||||
proc signMockBlock*(state: phase0.BeaconState, signedBlock: var phase0.SignedBeaconBlock) =
|
proc signMockBlock*(state: phase0.BeaconState, signedBlock: var phase0.SignedBeaconBlock) =
|
||||||
signMockBlockImpl(state, signedBlock)
|
signMockBlockImpl(state, signedBlock)
|
||||||
|
|
||||||
proc mockBlock(
|
proc mockBlock*(
|
||||||
state: phase0.BeaconState,
|
state: phase0.BeaconState,
|
||||||
slot: Slot): phase0.SignedBeaconBlock =
|
slot: Slot): phase0.SignedBeaconBlock =
|
||||||
## TODO don't do this gradual construction, for exception safety
|
## TODO don't do this gradual construction, for exception safety
|
||||||
|
|
Loading…
Reference in New Issue