-
Notifications
You must be signed in to change notification settings - Fork 674
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
Add P-chain fee APIs #3286
Add P-chain fee APIs #3286
Conversation
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.
Changes don't require my re-review.
defer s.vm.ctx.Lock.Unlock() | ||
|
||
reply.State = s.vm.state.GetFeeState() | ||
reply.Price = s.vm.DynamicFeeConfig.MinGasPrice.MulExp( |
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.
Is there shared code that performs this calculation? I'm guessing the price is used somewhere internally, and this is at risk of diverging.
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.
I'm not sure how better to share this... This function takes in 3 params to calculate the price... Any helper would also take in 3 params and just call this function... No?
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.
Will change this in a breakout
Why this should be merged
This PR:
How this works
Adds APIs to the service + client.
How this was tested