diff --git a/src/neo/Network/P2P/Payloads/ExtensiblePayload.cs b/src/neo/Network/P2P/Payloads/ExtensiblePayload.cs index 4e405d4814..79ec9886e4 100644 --- a/src/neo/Network/P2P/Payloads/ExtensiblePayload.cs +++ b/src/neo/Network/P2P/Payloads/ExtensiblePayload.cs @@ -67,7 +67,7 @@ void IVerifiable.DeserializeUnsigned(BinaryReader reader) ValidBlockEnd = reader.ReadUInt32(); if (ValidBlockStart >= ValidBlockEnd) throw new FormatException(); Sender = reader.ReadSerializable(); - Data = reader.ReadVarBytes(ushort.MaxValue); + Data = reader.ReadVarBytes(Message.PayloadMaxSize); } UInt160[] IVerifiable.GetScriptHashesForVerifying(DataCache snapshot)