-
Notifications
You must be signed in to change notification settings - Fork 137
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 fee inclusive transactions #657
Conversation
Sorry for the delay. This feature ended up being a lot more work than I expected! 😅 |
Once again, thanks for putting all of this together, and I can see all of the effort put into updating the unit and integration tests (which is where most of the work is). This all looks solidly put together and a very good example of the kind of PR I love to see as a first contribution to the project. My only real comment is do we really need to break the API? If the |
You are absolutely right. I think I had my wires crossed with another project, when I thought optional args weren't allowed in the API. I've revised it to use optional args now, so it should no longer be a breaking API change 🎉. Thanks for catching that! |
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.
All looks great now, thanks again for this!
Hi, I'm wondering if this is part of any release? My 5.0.1 complains
after grin-wallet send -d <address> max |
@marekyggdrasil I don't think there's been a release done after this was merged. Most of the work on grin-wallet was work specific for grin-gui. My guess is that there are still some things to test on the GUI end which is perhaps why there was no release yet. |
…mblewimble#657) * Add amount_includes_fee option in TX building * Add --amount_includes_fee CLI option * Implement send 'max' amount
This feature consists of three commits:
send
command via new flag:--amount_includes_fee
I've added tests for all three commits as well as functionally tested with real coins in a real wallet.
@yeastplume @phyro as written today, I think this incurs a breaking API change. I tried to come up with an approach that would be backwards compatible, but I kept having to resort to hacks and abuse of other args to make it happen... I decided it would be better to implement this logic "properly" for now, and see how bad the pushback is for making a breaking change to the API 😬. Please let me know your thoughts.
Resolves #601.