-
Notifications
You must be signed in to change notification settings - Fork 3
Transaction speed #1
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
base: master
Are you sure you want to change the base?
Conversation
|
||
func speedControl(t interface{}, speed string) (*feeCalculator, int) { | ||
var f feeCalculator | ||
var gaz int |
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.
gaz -> gasPrice
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.
done
typed := t.(responses.TokenFeeResponse) | ||
switch speed { | ||
case "1": | ||
gaz = typed.GasLimit * 10 / 8 |
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.
GasLimit -> GasPrice.
GasLimit it's a max amount of gas that may be used during transaction execution
case responses.EthereumFeeResponse: | ||
typed := t.(responses.EthereumFeeResponse) | ||
switch speed { | ||
case "1": |
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.
slow / average / fast
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.
done
No description provided.