Skip to content

bitcoin-wallet: Consider unconfirmed parent fees during PSBT fee estimation#977

Open
xn1xn1 wants to merge 3 commits into
eigenwallet:masterfrom
xn1xn1:master
Open

bitcoin-wallet: Consider unconfirmed parent fees during PSBT fee estimation#977
xn1xn1 wants to merge 3 commits into
eigenwallet:masterfrom
xn1xn1:master

Conversation

@xn1xn1
Copy link
Copy Markdown

@xn1xn1 xn1xn1 commented May 3, 2026

Closes #456.

@binarybaron
Copy link
Copy Markdown

binarybaron commented May 3, 2026

thank you for the contribution!

please disclose the extend to which this was LLM generated.

@xn1xn1 xn1xn1 force-pushed the master branch 3 times, most recently from 83e19fd to f0d5114 Compare May 3, 2026 19:43
@xn1xn1
Copy link
Copy Markdown
Author

xn1xn1 commented May 3, 2026

thank you for the contribution!

please disclose the extend to which this was LLM generated.

Hi there. I did use Claude (and gpt5) with adaptive thinking to generate some barebones pseudocode which I used to work on further, as I'm not familiar with this code base. I rechecked and reviewed the output multiple times though. Let me know if there are any issues. If this repo is strictly no AI, then feel free to close this pull request.

Comment thread bitcoin-wallet/src/wallet.rs
Comment thread bitcoin-wallet/src/wallet.rs Outdated
Comment thread bitcoin-wallet/src/wallet.rs Outdated
@xn1xn1
Copy link
Copy Markdown
Author

xn1xn1 commented May 5, 2026

Can squash once you review the new commit.

@binarybaron
Copy link
Copy Markdown

Have you tested this manually ?

@xn1xn1
Copy link
Copy Markdown
Author

xn1xn1 commented May 5, 2026

Have you tested this manually ?

I did before making some minor change, looks like I misplaced a semicolon. I did now, sorry. 😓

@binarybaron
Copy link
Copy Markdown

@Einliterflasche Review would be good here.

@binarybaron
Copy link
Copy Markdown

bugbot run

@Einliterflasche
Copy link
Copy Markdown

Einliterflasche commented May 8, 2026

We need a testcase for this. In the regtest environment, broadcast a tx with low fee and then check if the child tx has increased the fee accordingly.

@xn1xn1
Copy link
Copy Markdown
Author

xn1xn1 commented May 8, 2026

We need a testcase for this. In the regtest environment, broadcast a tx with low fee and then check if the child tx has increased the fee accordingly.

And where should that testcase be?

@Einliterflasche
Copy link
Copy Markdown

The bitcoin test harness is in swap/tests/harness atm. For now you can just add another test case in swap/tests. You don't need the setup_harness function, I think, as we don't need an alice / bob instance to test a Bitcoin transaction. But you can use it if it's easier. At some point we should move the Bitocin harness to it's own crate

@xn1xn1
Copy link
Copy Markdown
Author

xn1xn1 commented May 11, 2026

@Einliterflasche Can you have a look at the test?

Comment thread swap/tests/child_fee_accounts_for_unconfirmed_parent.rs Outdated
Comment thread swap/tests/child_fee_accounts_for_unconfirmed_parent.rs Outdated
Comment thread swap/tests/child_fee_accounts_for_unconfirmed_parent.rs Outdated
@Einliterflasche
Copy link
Copy Markdown

I just remembered that we have a test directory exclusively for the bitcoin wallet, the tests will fit there better. See #846.

@xn1xn1
Copy link
Copy Markdown
Author

xn1xn1 commented May 12, 2026

I just remembered that we have a test directory exclusively for the bitcoin wallet, the tests will fit there better. See #846.

Yes, thanks for merging. I didn't bring that up before because I thought it wasn't ready.

@xn1xn1 xn1xn1 force-pushed the master branch 3 times, most recently from e837b27 to 775026f Compare May 12, 2026 16:33
@xn1xn1
Copy link
Copy Markdown
Author

xn1xn1 commented May 15, 2026

@Einliterflasche Mind having a quick look at the newest commit ?

@xn1xn1
Copy link
Copy Markdown
Author

xn1xn1 commented May 18, 2026

@Einliterflasche Hey, would you mind looking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[0.25 XMR] Take fee of unconfirmed parent into consideration when deciding fee

3 participants