Skip to content
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: force small change as fee #649

Merged
merged 4 commits into from
Jul 31, 2023

Conversation

blckngm
Copy link
Collaborator

@blckngm blckngm commented Jul 21, 2023

Due to existing design/implementation of change output, a change output must not be set when using this feature.

Alternatively, we can change the change output implementation a bit and still add a change output when this option is used but the fee is not that small. WDYT?

Change output is still supported when using forceSmallChangeAsFee.

* Add a potential input for the transaction.
* <p>
* The input may not be actually used if there's already enough capacity for the outputs.
*/
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OT but this is really surprising. Do we want to change this so that these inputs are definitely used?

@blckngm blckngm requested a review from quake July 21, 2023 04:21
@blckngm blckngm changed the title feat: force small fee as change feat: force small change as fee Jul 24, 2023
@blckngm
Copy link
Collaborator Author

blckngm commented Jul 31, 2023

@quake PTAL.

Co-authored-by: Quake Wang <quake.wang@gmail.com>
@quake quake merged commit e1b1495 into nervosnetwork:develop Jul 31, 2023
2 checks passed
@blckngm blckngm deleted the force-small-fee-as-change branch August 1, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants