Fix linter errors

This commit is contained in:
Mikhail Kalinin 2021-06-01 17:44:58 +06:00
parent 6226be9e1e
commit db32c8b013
2 changed files with 4 additions and 2 deletions

View File

@ -98,7 +98,7 @@ Let `get_pow_block(block_hash: Hash32) -> PowBlock` be the function that given t
```python ```python
def get_transition_store(anchor_pow_block: PowBlock): def get_transition_store(anchor_pow_block: PowBlock):
transition_total_difficulty = pow_block.total_difficulty + TRANSITION_TOTAL_DIFFICULTY_OFFSET transition_total_difficulty = anchor_pow_block.total_difficulty + TRANSITION_TOTAL_DIFFICULTY_OFFSET
return TransitionStore(transition_total_difficulty=transition_total_difficulty) return TransitionStore(transition_total_difficulty=transition_total_difficulty)
``` ```

View File

@ -70,7 +70,9 @@ Let `get_pow_chain_head() -> PowBlock` be the function that returns the head of
* Set `block.body.execution_payload = get_execution_payload(state, transition_store, execution_engine)` where: * Set `block.body.execution_payload = get_execution_payload(state, transition_store, execution_engine)` where:
```python ```python
def get_execution_payload(state: BeaconState, transition_store: TransitionStore, execution_engine: ExecutionEngine) -> ExecutionPayload: def get_execution_payload(state: BeaconState,
transition_store: TransitionStore,
execution_engine: ExecutionEngine) -> ExecutionPayload:
if not is_transition_completed(state): if not is_transition_completed(state):
pow_block = get_pow_chain_head() pow_block = get_pow_chain_head()
if not is_valid_transition_block(transition_store, pow_block): if not is_valid_transition_block(transition_store, pow_block):