Skip to content

Commit

Permalink
fix tx.verify (#2193)
Browse files Browse the repository at this point in the history
Co-authored-by: Tommo-L <luchuan@neo.org>
Co-authored-by: Shargon <shargon@gmail.com>
  • Loading branch information
3 people committed Dec 30, 2020
1 parent bb66fda commit 6c5d44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/Network/P2P/Payloads/Transaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public virtual VerifyResult VerifyStateDependent(StoreView snapshot, Transaction
net_fee -= execFeeFactor * SmartContract.Helper.MultiSignatureContractCost(m, n);
else
{
if (!this.VerifyWitness(null, hashes[i], witnesses[i], net_fee, out long fee))
if (!this.VerifyWitness(snapshot, hashes[i], witnesses[i], net_fee, out long fee))
return VerifyResult.Invalid;
net_fee -= fee;
}
Expand Down

0 comments on commit 6c5d44a

Please sign in to comment.