Skip to content

Commit c718bed

Browse files
hwwhwwjannikluhn
andauthored
Rename max_headers to max_blocks
Co-Authored-By: jannikluhn <[email protected]>
1 parent f18c834 commit c718bed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trinity/protocol/bcc/proto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def send_handshake(self, genesis_hash: Hash32, best_hash: Hash32) -> None:
4848

4949
def send_get_blocks(self,
5050
block_slot_or_hash: Union[BlockNumber, Hash32],
51-
max_headers: int) -> None:
51+
max_blocks: int) -> None:
5252
cmd = GetBeaconBlocks(self.cmd_id_offset)
5353
data = {
5454
'block_slot_or_hash': block_slot_or_hash,
55-
'max_blocks': max_headers,
55+
'max_blocks': max_blocks,
5656
}
5757
header, body = cmd.encode(data)
5858
self.send(header, body)

0 commit comments

Comments
 (0)