Skip to content

Commit

Permalink
Allow larger ExtensiblePayload (#2295)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored Feb 4, 2021
1 parent 8a5e33c commit 2554cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/Network/P2P/Payloads/ExtensiblePayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void IVerifiable.DeserializeUnsigned(BinaryReader reader)
ValidBlockEnd = reader.ReadUInt32();
if (ValidBlockStart >= ValidBlockEnd) throw new FormatException();
Sender = reader.ReadSerializable<UInt160>();
Data = reader.ReadVarBytes(ushort.MaxValue);
Data = reader.ReadVarBytes(Message.PayloadMaxSize);
}

UInt160[] IVerifiable.GetScriptHashesForVerifying(DataCache snapshot)
Expand Down

0 comments on commit 2554cb9

Please sign in to comment.