[fix-recent_block_hashes] fix formatting

This commit is contained in:
Danny Ryan 2018-10-04 12:53:53 -05:00
parent dc01cb0f4d
commit 5b31268abc
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

@ -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))
``` ```