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:
Etan Kissling 2021-09-16 17:39:19 +02:00 committed by GitHub
parent 7ab1856c04
commit 859c1a3c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ proc signMockBlockImpl(
proc signMockBlock*(state: phase0.BeaconState, signedBlock: var phase0.SignedBeaconBlock) =
signMockBlockImpl(state, signedBlock)
proc mockBlock(
proc mockBlock*(
state: phase0.BeaconState,
slot: Slot): phase0.SignedBeaconBlock =
## TODO don't do this gradual construction, for exception safety