-
Notifications
You must be signed in to change notification settings - Fork 236
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
feat: Fee estimate RPC #1659
feat: Fee estimate RPC #1659
Conversation
f6fa5ae
to
82bff49
Compare
82bff49
to
d356fbe
Compare
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.
Need some integration tests for estimate_fee_rate
rpc
There is a basic test case in the rpc_test, what the other cases do you want? |
I would like to have an integration test like this: Generate multiple txs through |
One more question: the |
d356fbe
to
ab3cd05
Compare
Fixed, It's an error during rebase. |
6a5f781
to
29f3962
Compare
29f3962
to
72fb84e
Compare
72fb84e
to
89252b8
Compare
Rebase due to |
bors r=quake, zhangsoledad |
1659: feat: Fee estimate RPC r=quake,zhangsoledad a=jjyr This PR adds a new RPC [estimate_fee_rate](https://github.com/nervosnetwork/ckb/pull/1659/files#diff-622e6d119ac5d43f7eb41cb596159f9fR907). It takes the basic idea from bitcoin's [estimatesmartfee](https://bitcoincore.org/en/doc/0.16.0/rpc/util/estimatesmartfee/), however, we ignore the magic numbers and tricks from the original code. We estimate the tx fee rate by track txs that entered tx pool. See details https://github.com/nervosnetwork/ckb/pull/1659/files#diff-ff03764a87b23e747dadc645fcf8df8bR21 Co-authored-by: jjy <[email protected]>
Build failed
|
bors r=quake, zhangsoledad |
1 similar comment
bors r=quake, zhangsoledad |
Already running a review |
1659: feat: Fee estimate RPC r=quake,zhangsoledad a=jjyr This PR adds a new RPC [estimate_fee_rate](https://github.com/nervosnetwork/ckb/pull/1659/files#diff-622e6d119ac5d43f7eb41cb596159f9fR907). It takes the basic idea from bitcoin's [estimatesmartfee](https://bitcoincore.org/en/doc/0.16.0/rpc/util/estimatesmartfee/), however, we ignore the magic numbers and tricks from the original code. We estimate the tx fee rate by track txs that entered tx pool. See details https://github.com/nervosnetwork/ckb/pull/1659/files#diff-ff03764a87b23e747dadc645fcf8df8bR21 Co-authored-by: jjy <[email protected]>
Build succeeded
|
This PR adds a new RPC estimate_fee_rate. It takes the basic idea from bitcoin's estimatesmartfee, however, we ignore the magic numbers and tricks from the original code.
We estimate the tx fee rate by track txs that entered tx pool. See details https://github.com/nervosnetwork/ckb/pull/1659/files#diff-ff03764a87b23e747dadc645fcf8df8bR21