Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction optimization #2290

Merged
merged 9 commits into from
Feb 4, 2021
Merged

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
src/neo/Wallets/Wallet.cs Outdated Show resolved Hide resolved
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