Skip to content

Commit

Permalink
allow 10/10
Browse files Browse the repository at this point in the history
  • Loading branch information
igormcoelho committed Aug 14, 2019
1 parent 37646d0 commit dc84504
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions neo/Network/P2P/Payloads/Witness.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public virtual UInt160 ScriptHash

void ISerializable.Deserialize(BinaryReader reader)
{
InvocationScript = reader.ReadVarBytes(1024);
VerificationScript = reader.ReadVarBytes(512);
// This is designed to allow a MultiSig 10/10 (around 1000 bytes)
// Invocation = 10 * 64 + 10 = 650
InvocationScript = reader.ReadVarBytes(650);
// Verification = 10 * 33 = 330 ~ 350
VerificationScript = reader.ReadVarBytes(350);
}

void ISerializable.Serialize(BinaryWriter writer)
Expand Down

0 comments on commit dc84504

Please sign in to comment.