Skip to content

Commit

Permalink
https://github.com/neo-project/neo/pull/2202
Browse files Browse the repository at this point in the history
but we keep the existing Consensus payloads instead of deleting.
  • Loading branch information
ixje committed Feb 15, 2021
1 parent 2569499 commit 5d24147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo3/network/payloads/extensible.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def deserialize_unsigned(self, reader: serialization.BinaryReader) -> None:
self.category = reader.read_var_string(32)
self.valid_block_start = reader.read_uint32()
self.valid_block_end = reader.read_uint32()
if self.valid_block_start > self.valid_block_end:
if self.valid_block_start >= self.valid_block_end:
raise ValueError("Deserialization error - valid_block_starts is bigger than valid_block_end")
self.sender = reader.read_serializable(types.UInt160)
self.data = reader.read_var_bytes(0xFFFF)
Expand Down

0 comments on commit 5d24147

Please sign in to comment.