mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-21 10:48:17 +00:00
Fix compilation problem.
This commit is contained in:
parent
0904ee5609
commit
42dd59852b
@ -120,8 +120,9 @@ proc installValidatorApiHandlers*(rpcServer: RpcServer, node: BeaconNode) =
|
|||||||
|
|
||||||
rpcServer.rpc("get_v1_validator_attestation_data") do (
|
rpcServer.rpc("get_v1_validator_attestation_data") do (
|
||||||
slot: uint64, committee_index: uint64) -> AttestationData:
|
slot: uint64, committee_index: uint64) -> AttestationData:
|
||||||
let ares = node.attestationPool[].getAggregatedAttestation(slot,
|
let ares = node.attestationPool[].getAggregatedAttestation(
|
||||||
committee_index)
|
Slot(slot), CommitteeIndex(committee_index)
|
||||||
|
)
|
||||||
if ares.isSome():
|
if ares.isSome():
|
||||||
return ares.get().data
|
return ares.get().data
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user