bdk icon indicating copy to clipboard operation
bdk copied to clipboard

Add allow_dust method to TxBuilder

Open terror opened this issue 2 years ago • 4 comments

We needed this for testing our wallet with dust, does this look like a reasonable feature? If so, I'll go ahead and add a test, update the changelog, etc.

terror avatar Jul 29 '22 19:07 terror

Concept ACK! Transactions with below-dust ouputs are non-standard, but still valid, so I think BDK should be able to create them. It could also be useful in some very rare cases, like for creating a notification output to an address.

danielabrozzoni avatar Aug 03 '22 10:08 danielabrozzoni

The code looks good to me, can you please squash all the commits into the first one?

danielabrozzoni avatar Aug 06 '22 10:08 danielabrozzoni

Mh... There are still two commits, and the latest one's message is a bit weird. I'd use interactive git rebases to fix (https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History) - I would reword the first commit to change the message, and drop entirely the second commit

danielabrozzoni avatar Aug 09 '22 11:08 danielabrozzoni

Mh... There are still two commits, and the latest one's message is a bit weird. I'd use interactive git rebases to fix (https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History) - I would reword the first commit to change the message, and drop entirely the second commit

@danielabrozzoni Should be good to go now. PTAL

terror avatar Aug 12 '22 17:08 terror

@rajarshimaitra do you have in mind any other additional test? There's already a test_allow_dust_limit, I can't think of any other that could be useful

danielabrozzoni avatar Aug 24 '22 19:08 danielabrozzoni

Oh no, I just noticed... @terror can you sign your commit? Otherwise I can't merge. If you prefer, I can sign it with my key.

danielabrozzoni avatar Aug 30 '22 15:08 danielabrozzoni

tACK bfd7b2f65debe57edc5d563c071f0bfce592a8d2

danielabrozzoni avatar Aug 31 '22 08:08 danielabrozzoni