mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-20 06:18:15 +00:00
add scheduling note to on_attestation
This commit is contained in:
parent
74253bdbaf
commit
117fb12888
@ -238,6 +238,12 @@ def on_block(store: Store, block: BeaconBlock) -> None:
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
def on_attestation(store: Store, attestation: Attestation) -> None:
|
def on_attestation(store: Store, attestation: Attestation) -> None:
|
||||||
|
"""
|
||||||
|
Run ``on_attestation`` upon receiving a new ``attestation`` from either within a block or directly on the wire.
|
||||||
|
|
||||||
|
An ``attestation`` that is asserted as invalid may be valid at a later time,
|
||||||
|
consider scheduling it for later processing in such case.
|
||||||
|
"""
|
||||||
target = attestation.data.target
|
target = attestation.data.target
|
||||||
|
|
||||||
# Attestations must be from the current or previous epoch
|
# Attestations must be from the current or previous epoch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user