Skip to content

feat: force small change as fee#649

Merged
quake merged 4 commits into
nervosnetwork:developfrom
blckngm:force-small-fee-as-change
Jul 31, 2023
Merged

feat: force small change as fee#649
quake merged 4 commits into
nervosnetwork:developfrom
blckngm:force-small-fee-as-change

Conversation

@blckngm
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

blckngm commented Jul 31, 2023

@quake PTAL.

Comment thread ckb/src/main/java/org/nervos/ckb/transaction/CkbTransactionBuilder.java Outdated
Co-authored-by: Quake Wang <quake.wang@gmail.com>
@blckngm blckngm force-pushed the force-small-fee-as-change branch from b87a8b9 to 0dba908 Compare July 31, 2023 03:19
@quake quake merged commit e1b1495 into nervosnetwork:develop Jul 31, 2023
@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