Skip to content

Transaction optimization#2290

Merged
shargon merged 9 commits intoneo-project:masterfrom
shargon:verify-optimizations
Feb 4, 2021
Merged

Transaction optimization#2290
shargon merged 9 commits intoneo-project:masterfrom
shargon:verify-optimizations

Conversation

@shargon
Copy link
Member

@shargon shargon commented Feb 3, 2021

  • Witnesses length are checked during verification against Signers.
  • GetScriptHashesForVerifying was called twice during VerifyStateDependent.
  • if (hashes.Length != witnesses.Length) was already called during VerifyStateIndependent.
  • added if (net_fee < 0) return VerifyResult.InsufficientFunds; because if we doesn't have funds for pay the size fee, we don't need to execute the verification.

@shargon shargon requested a review from erikzhang February 3, 2021 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants