fixed build
This commit is contained in:
parent
3bae40ae91
commit
06873abde3
|
@ -11,8 +11,7 @@ import
|
||||||
deques, sequtils, tables, options,
|
deques, sequtils, tables, options,
|
||||||
chronicles, stew/[byteutils], json_serialization/std/sets,
|
chronicles, stew/[byteutils], json_serialization/std/sets,
|
||||||
./spec/[beaconstate, datatypes, crypto, digest, helpers, validator],
|
./spec/[beaconstate, datatypes, crypto, digest, helpers, validator],
|
||||||
./extras, ./block_pool, ./block_pools/candidate_chains, ./beacon_node_types,
|
./extras, ./block_pool, ./block_pools/candidate_chains, ./beacon_node_types
|
||||||
./fork_choice/[fork_choice_types, fork_choice]
|
|
||||||
|
|
||||||
logScope: topics = "attpool"
|
logScope: topics = "attpool"
|
||||||
|
|
||||||
|
|
|
@ -721,7 +721,7 @@ proc installAttestationHandlers(node: BeaconNode) =
|
||||||
let (afterGenesis, slot) = node.beaconClock.now().toSlot()
|
let (afterGenesis, slot) = node.beaconClock.now().toSlot()
|
||||||
if not afterGenesis:
|
if not afterGenesis:
|
||||||
return false
|
return false
|
||||||
node.attestationPool.isValidAttestation(attestation, slot, committeeIndex, {})
|
node.attestationPool.isValidAttestation(attestation, slot, committeeIndex)
|
||||||
|
|
||||||
var attestationSubscriptions: seq[Future[void]] = @[]
|
var attestationSubscriptions: seq[Future[void]] = @[]
|
||||||
|
|
||||||
|
@ -734,6 +734,7 @@ proc installAttestationHandlers(node: BeaconNode) =
|
||||||
# This proc needs to be within closureScope; don't lift out of loop.
|
# This proc needs to be within closureScope; don't lift out of loop.
|
||||||
proc(attestation: Attestation): bool =
|
proc(attestation: Attestation): bool =
|
||||||
attestationValidator(attestation, ci)
|
attestationValidator(attestation, ci)
|
||||||
|
))
|
||||||
|
|
||||||
when ETH2_SPEC == "v0.11.3":
|
when ETH2_SPEC == "v0.11.3":
|
||||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.11.1/specs/phase0/p2p-interface.md#interop-3
|
# https://github.com/ethereum/eth2.0-specs/blob/v0.11.1/specs/phase0/p2p-interface.md#interop-3
|
||||||
|
@ -743,6 +744,7 @@ proc installAttestationHandlers(node: BeaconNode) =
|
||||||
# isValidAttestation checks attestation.data.index == topicCommitteeIndex
|
# isValidAttestation checks attestation.data.index == topicCommitteeIndex
|
||||||
# which doesn't make sense here, so rig that check to vacuously pass.
|
# which doesn't make sense here, so rig that check to vacuously pass.
|
||||||
attestationValidator(attestation, attestation.data.index)
|
attestationValidator(attestation, attestation.data.index)
|
||||||
|
))
|
||||||
|
|
||||||
waitFor allFutures(attestationSubscriptions)
|
waitFor allFutures(attestationSubscriptions)
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,7 @@ import
|
||||||
stew/endians2,
|
stew/endians2,
|
||||||
spec/[datatypes, crypto, digest],
|
spec/[datatypes, crypto, digest],
|
||||||
block_pools/block_pools_types,
|
block_pools/block_pools_types,
|
||||||
block_pool, # TODO: refactoring compat shim
|
block_pool # TODO: refactoring compat shim
|
||||||
fork_choice/fork_choice_types
|
|
||||||
|
|
||||||
export block_pools_types
|
export block_pools_types
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue