-
Notifications
You must be signed in to change notification settings - Fork 165
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
implement rpc method that fetches fee per mass based on block template #503
Changes from all commits
51f136d
f7769e0
59d0ad9
4b55f18
760b5f0
e9cc805
9343d51
9cfa9a9
9b48383
1d57b03
4a644db
92cd5af
24ded09
4825f57
2650706
e5efcdf
4cd9845
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -851,3 +851,19 @@ message GetDaaScoreTimestampEstimateResponseMessage{ | |
repeated uint64 timestamps = 1; | ||
RPCError error = 1000; | ||
} | ||
|
||
message GetFeeInfoRequestMessage {} | ||
|
||
message GetFeeInfoResponseMessage { | ||
oneof fee_per_mass { | ||
Virtual virtual = 2; // 1 is reserved for `All` | ||
} | ||
uint64 mempool_total_mass = 11; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What would be the usage of total mass from the client side? I'm not sure we want to commit ourselves to such an API. I have another suggestion for a more abstracted response There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. based on this value we can track both: absolute values/relative to bps and block limit. that's more flexible There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wdyt @aspect? |
||
RPCError error = 1000; | ||
} | ||
|
||
message Virtual { | ||
double max = 1; | ||
double median = 2; | ||
double min = 3; | ||
} |
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.
Do these still represent any kind of SLA? If so, please add comments as to what these would mean in terms of time-to-inclusion
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 renamed method.
this value represents max value fee/mass in the current mempool.
I will add some description from internal discussion:
What I came to this:
When the network is overloaded, we need to know, and it will have meaning like:
min from bbt - there's a chance my tx will be included
Something in the middle - likely tx will be included
Max - very likely