diff --git a/Makefile b/Makefile index c6addcc7d..9881641c6 100644 --- a/Makefile +++ b/Makefile @@ -185,7 +185,7 @@ medalla-vc: | beacon_node validator_client build/beacon_node \ --network=medalla \ --log-level="$(LOG_LEVEL)" \ - --log-file=nbc_bn_$$(date +"%Y%m%d%H%M%S").log \ + --log-file=build/data/shared_medalla_$(NODE_ID)/nbc_bn_$$(date +"%Y%m%d%H%M%S").log \ --data-dir=build/data/shared_medalla_$(NODE_ID) \ --validators-dir=build/data/shared_medalla_$(NODE_ID)/empty_dummy_folder \ --secrets-dir=build/data/shared_medalla_$(NODE_ID)/empty_dummy_folder \ @@ -193,7 +193,7 @@ medalla-vc: | beacon_node validator_client sleep 4 build/validator_client \ --log-level="$(LOG_LEVEL)" \ - --log-file=nbc_vc_$$(date +"%Y%m%d%H%M%S").log \ + --log-file=build/data/shared_medalla_$(NODE_ID)/nbc_vc_$$(date +"%Y%m%d%H%M%S").log \ --data-dir=build/data/shared_medalla_$(NODE_ID) \ --rpc-port=$$(( $(BASE_RPC_PORT) +$(NODE_ID) )) @@ -230,7 +230,7 @@ altona-vc: | beacon_node validator_client build/beacon_node \ --network=altona \ --log-level="$(LOG_LEVEL)" \ - --log-file=nbc_bn_$$(date +"%Y%m%d%H%M%S").log \ + --log-file=build/data/shared_altona_$(NODE_ID)/nbc_bn_$$(date +"%Y%m%d%H%M%S").log \ --data-dir=build/data/shared_altona_$(NODE_ID) \ --validators-dir=build/data/shared_altona_$(NODE_ID)/empty_dummy_folder \ --secrets-dir=build/data/shared_altona_$(NODE_ID)/empty_dummy_folder \ @@ -238,7 +238,7 @@ altona-vc: | beacon_node validator_client sleep 4 build/validator_client \ --log-level="$(LOG_LEVEL)" \ - --log-file=nbc_vc_$$(date +"%Y%m%d%H%M%S").log \ + --log-file=build/data/shared_altona_$(NODE_ID)/nbc_vc_$$(date +"%Y%m%d%H%M%S").log \ --data-dir=build/data/shared_altona_$(NODE_ID) \ --rpc-port=$$(( $(BASE_RPC_PORT) +$(NODE_ID) )) diff --git a/beacon_chain/validator_api.nim b/beacon_chain/validator_api.nim index 81d5c2c34..5c0ce02fa 100644 --- a/beacon_chain/validator_api.nim +++ b/beacon_chain/validator_api.nim @@ -42,7 +42,7 @@ proc parsePubkey(str: string): ValidatorPubKey = proc doChecksAndGetCurrentHead(node: BeaconNode, slot: Slot): BlockRef = result = node.blockPool.head if not node.isSynced(result): - raise newException(CatchableError, "Cannot fulfill request until ndoe is synced") + raise newException(CatchableError, "Cannot fulfill request until node is synced") # TODO for now we limit the requests arbitrarily by up to 2 epochs into the future if result.slot + uint64(2 * SLOTS_PER_EPOCH) < slot: raise newException(CatchableError, "Requesting way ahead of the current head")