mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 09:35:00 -05:00
Apply suggestions from code review
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
6d55ba9c8c
commit
8631cad251
@@ -109,6 +109,7 @@ def pack(values, subtype):
|
||||
|
||||
|
||||
def chunkify(bytez):
|
||||
# pad `bytez` to nearest 32-byte multiple
|
||||
bytez += b'\x00' * (-len(bytez) % 32)
|
||||
return [bytez[i:i + 32] for i in range(0, len(bytez), 32)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user