Fix linter errors
This commit is contained in:
parent
6226be9e1e
commit
db32c8b013
|
@ -98,7 +98,7 @@ Let `get_pow_block(block_hash: Hash32) -> PowBlock` be the function that given t
|
|||
|
||||
```python
|
||||
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)
|
||||
```
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
||||
```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):
|
||||
pow_block = get_pow_chain_head()
|
||||
if not is_valid_transition_block(transition_store, pow_block):
|
||||
|
|
Loading…
Reference in New Issue