make clearn-medalla will preserve your validator files

This commit is contained in:
Zahary Karadjov 2020-08-21 21:50:46 +03:00
parent 99e330d014
commit 21b5ad3259
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
3 changed files with 6 additions and 2 deletions

View File

@ -250,7 +250,9 @@ medalla-deposit: | beacon_node deposit_contract
--ask-for-key
clean-medalla:
rm -rf build/data/shared_medalla*
rm -rf build/data/shared_medalla*/db
rm -rf build/data/shared_medalla*/dump
rm -rf build/data/shared_medalla*/*.log
altona: | beacon_node
build/beacon_node \

View File

@ -197,7 +197,7 @@ func readSszValue*[T](input: openarray[byte], val: var T) {.raisesssz.} =
readSszValue(input.toOpenArray(offset, input.len - 1), val[resultLen - 1])
# TODO: Should be possible to remove BitArray from here
elif val is UintN|bool|enum:
elif val is UintN|bool:
trs "READING BASIC TYPE ", typetraits.name(T), " input=", input.len
val = fromSszBytes(T, input)
trs "RESULT WAS ", repr(val)

View File

@ -161,6 +161,8 @@ p2pProtocol BeaconSync(version = 1,
proc beaconBlocksByRoot(
peer: Peer,
# Please note that the SSZ list here ensures that the
# spec constant MAX_REQUEST_BLOCKS is enforced:
blockRoots: BlockRootsList,
response: MultipleChunksResponse[SignedBeaconBlock])
{.async, libp2pProtocol("beacon_blocks_by_root", 1).} =