[fix-recent_block_hashes] fix formatting
This commit is contained in:
parent
dc01cb0f4d
commit
5b31268abc
|
@ -445,7 +445,7 @@ First, set `recent_block_hashes` to the output of the following, where `parent_h
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def append_to_recent_block_hashes(old_block_hashes, parent_slot,
|
def append_to_recent_block_hashes(old_block_hashes, parent_slot,
|
||||||
current_slot, parent_hash):
|
current_slot, parent_hash):
|
||||||
d = current_slot - parent_slot
|
d = current_slot - parent_slot
|
||||||
return old_block_hashes + [parent_hash] * min(d, len(old_block_hashes))
|
return old_block_hashes + [parent_hash] * min(d, len(old_block_hashes))
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue