mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-03-01 06:30:52 +00:00
update spec refs to v0.12.2 (#1457)
* update spec refs to v0.12.2 and change a .len.uint64 to .lenu64 * pull back from any non-pure-comment changes, since Jenkins is being wonky
This commit is contained in:
parent
5bbeb38f2d
commit
81b3c0ea40
@ -51,7 +51,7 @@ proc aggregate_attestations*(
|
|||||||
if not is_aggregator(state, slot, index, slot_signature, cache):
|
if not is_aggregator(state, slot, index, slot_signature, cache):
|
||||||
return none(AggregateAndProof)
|
return none(AggregateAndProof)
|
||||||
|
|
||||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.1/specs/phase0/validator.md#attestation-data
|
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.2/specs/phase0/validator.md#attestation-data
|
||||||
# describes how to construct an attestation, which applies for makeAttestationData(...)
|
# describes how to construct an attestation, which applies for makeAttestationData(...)
|
||||||
# TODO this won't actually match anything
|
# TODO this won't actually match anything
|
||||||
let attestation_data = AttestationData(
|
let attestation_data = AttestationData(
|
||||||
@ -59,7 +59,7 @@ proc aggregate_attestations*(
|
|||||||
index: index.uint64,
|
index: index.uint64,
|
||||||
beacon_block_root: get_block_root_at_slot(state, slot))
|
beacon_block_root: get_block_root_at_slot(state, slot))
|
||||||
|
|
||||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.1/specs/phase0/validator.md#construct-aggregate
|
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.2/specs/phase0/validator.md#construct-aggregate
|
||||||
# TODO once EV goes in w/ refactoring of getAttestationsForBlock, pull out the getSlot version and use
|
# TODO once EV goes in w/ refactoring of getAttestationsForBlock, pull out the getSlot version and use
|
||||||
# it. This is incorrect.
|
# it. This is incorrect.
|
||||||
for attestation in getAttestationsForBlock(pool, state):
|
for attestation in getAttestationsForBlock(pool, state):
|
||||||
|
@ -275,7 +275,7 @@ proc getAttestationsForBlock*(pool: AttestationPool,
|
|||||||
var cache = StateCache()
|
var cache = StateCache()
|
||||||
for a in attestations:
|
for a in attestations:
|
||||||
var
|
var
|
||||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.1/specs/phase0/validator.md#construct-attestation
|
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.2/specs/phase0/validator.md#construct-attestation
|
||||||
attestation = Attestation(
|
attestation = Attestation(
|
||||||
aggregation_bits: a.validations[0].aggregation_bits,
|
aggregation_bits: a.validations[0].aggregation_bits,
|
||||||
data: a.data,
|
data: a.data,
|
||||||
|
@ -648,7 +648,7 @@ func makeAttestationData*(
|
|||||||
"Computed epoch was " & $slot.compute_epoch_at_slot &
|
"Computed epoch was " & $slot.compute_epoch_at_slot &
|
||||||
" while the state current_epoch was " & $current_epoch
|
" while the state current_epoch was " & $current_epoch
|
||||||
|
|
||||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.1/specs/phase0/validator.md#attestation-data
|
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.2/specs/phase0/validator.md#attestation-data
|
||||||
AttestationData(
|
AttestationData(
|
||||||
slot: slot,
|
slot: slot,
|
||||||
index: committee_index,
|
index: committee_index,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user