Skip to content

Commit

Permalink
https://github.com/neo-project/neo/pull/2295
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Apr 7, 2021
1 parent da7312d commit 8168c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo3/network/payloads/extensible.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import List
from neo3 import storage, settings
from neo3.core import types, serialization, Size as s, utils
from neo3.network import payloads
from neo3.network import payloads, message
from neo3.network.payloads import InventoryType


Expand Down Expand Up @@ -56,7 +56,7 @@ def deserialize_unsigned(self, reader: serialization.BinaryReader) -> None:
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)
self.data = reader.read_var_bytes(message.Message.PAYLOAD_MAX_SIZE)

def hash(self) -> types.UInt256:
intermediate_data = hashlib.sha256(self.get_hash_data(settings.network.magic)).digest()
Expand Down

0 comments on commit 8168c28

Please sign in to comment.