-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update CalculateNetworkFee #2920
Conversation
@dotnet-policy-service agree company="Belane" |
src/Neo/Wallets/Wallet.cs
Outdated
@@ -596,6 +596,7 @@ public long CalculateNetworkFee(DataCache snapshot, Transaction tx) | |||
uint exec_fee_factor = NativeContract.Policy.GetExecFeeFactor(snapshot); | |||
long networkFee = 0; | |||
int index = -1; | |||
long gas_left = ApplicationEngine.TestModeGas; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be settings.MaxGasInvoke
for consistency with invoke*
RPC calls? Or maybe the minimum of two values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, settings.MaxGasInvoke
is unreachable from the Wallet class, so resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely this can be solved with some API extension, a bit more invasive though.
Likely a bit better this way: nspcc-dev/neo-go#3141 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI @belane, good to see you again.
This is just verification, right?
In this sense, no change in case of resync, yes?
Sometimes need a re-sync is different than being affected by a future re-sync....Just to be sure...aehauhea |
Adjust the calculation of gas used during the verification.