fixes the BN/VC communication - properly getting the attestation duties & also fixed start.sh

This commit is contained in:
Viktor Kirilov 2020-08-06 15:27:03 +03:00
parent c4268f954b
commit 5bbeb38f2d
3 changed files with 3 additions and 3 deletions

View File

@ -255,7 +255,7 @@ altona: | beacon_node
altona-vc: | beacon_node validator_client altona-vc: | beacon_node validator_client
# if launching a VC as well - send the BN looking nowhere for validators/secrets # if launching a VC as well - send the BN looking nowhere for validators/secrets
mkdir build/data/shared_altona_$(NODE_ID)/empty_dummy_folder -p mkdir -p build/data/shared_altona_$(NODE_ID)/empty_dummy_folder
build/beacon_node \ build/beacon_node \
--network=altona \ --network=altona \
--log-level="$(LOG_LEVEL)" \ --log-level="$(LOG_LEVEL)" \

View File

@ -355,7 +355,7 @@ proc installValidatorApiHandlers*(rpcServer: RpcServer, node: BeaconNode) =
let attestationHead = head.atEpochStart(epoch) let attestationHead = head.atEpochStart(epoch)
node.chainDag.withState(node.chainDag.tmpState, attestationHead): node.chainDag.withState(node.chainDag.tmpState, attestationHead):
for pubkey in public_keys: for pubkey in public_keys:
let idx = state.validators.asSeq.findIt(it.pubKey == pubkey) let idx = state.validators.asSeq.findIt(it.pubKey.initPubKey == pubkey)
if idx == -1: if idx == -1:
continue continue
let ca = state.get_committee_assignment(epoch, idx.ValidatorIndex) let ca = state.get_committee_assignment(epoch, idx.ValidatorIndex)

View File

@ -54,7 +54,7 @@ GANACHE_BLOCK_TIME=5
# Run with "SLOTS_PER_EPOCH=8 ./start.sh" to change these # Run with "SLOTS_PER_EPOCH=8 ./start.sh" to change these
DEFS="" DEFS=""
DEFS+="-d:SECONDS_PER_ETH1_BLOCK=$GANACHE_BLOCK_TIME" DEFS+="-d:SECONDS_PER_ETH1_BLOCK=$GANACHE_BLOCK_TIME "
DEFS+="-d:MAX_COMMITTEES_PER_SLOT=${MAX_COMMITTEES_PER_SLOT:-1} " # Spec default: 64 DEFS+="-d:MAX_COMMITTEES_PER_SLOT=${MAX_COMMITTEES_PER_SLOT:-1} " # Spec default: 64
DEFS+="-d:SLOTS_PER_EPOCH=${SLOTS_PER_EPOCH:-6} " # Spec default: 32 DEFS+="-d:SLOTS_PER_EPOCH=${SLOTS_PER_EPOCH:-6} " # Spec default: 32
DEFS+="-d:SECONDS_PER_SLOT=${SECONDS_PER_SLOT:-6} " # Spec default: 12 DEFS+="-d:SECONDS_PER_SLOT=${SECONDS_PER_SLOT:-6} " # Spec default: 12