-
Notifications
You must be signed in to change notification settings - Fork 293
feat: added bumpfee rpc #226
base: master
Are you sure you want to change the base?
Conversation
tcharding
left a comment
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.
ACK e4a5f71
|
Looks good, left one comment regarding the FeeRate type. |
|
Thanks for the review guys. @stevenroose I updated the PR according to your comment |
|
Thanks @tcharding. Sorry for the slow response, I was on holiday. I updated the PR now. I think this PR is ready to merge now - could someone merge please? |
|
Actually the tests are failing because
These changes make it very difficult to provide a uniform interface that works in all versions of bitcoin core. I would propose to only support |
I'm don't feel confident to answer this, will wait for @stevenroose for ideas. |
It should be possible to write a custom deserializer using a stub struct that has both field optionally and then build the real return struct from that? I think we do that in some other methods. |
The problem is not to build the return struct - the problem is that these 2 versions of the rpc behave differently. What we'd need to do in version 0.18, is to convert the |
This adds the bumpfee rpc. Since versions < 21 interpret the fee_rate field differently, the serialization got slightly more complicated.