-
Notifications
You must be signed in to change notification settings - Fork 24
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: add advanced rbf guide #237
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Gregory Hill <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
# use those to create a new transaction | ||
rawtx=$(bitcoin-cli createrawtransaction $rawinputs $rawoutputs) | ||
# fund that tx with a better fee rate | ||
fundedtx=$(bitcoin-cli fundrawtransaction $rawtx "{\"changeAddress\": \"$CHANGE_ADDRESS\", \"feeRate\": $FEE_RATE}" | jq -r .hex) |
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.
You are counting on all addresses in the wallet to have been registered to the parachain, which is most cases will be true, but it's still a risky assumption. If e.g. a non-empty wallet was used when first starting the vault this would not hold (we do tell vaults not to do this.. but still)
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.
Theft reporting was removed here, addresses are no longer required to be registered.
@gregdhill could you address the comments so we can merge this please? |
Signed-off-by: Gregory Hill <[email protected]>
Signed-off-by: Gregory Hill [email protected]
Until we have programmatic support (and even after) we should have some documentation for Replace-By-Fee (RBF) to demonstrate how Vaults may increase fees to prevent liquidation after significant Bitcoin mempool congestion.
See also: https://github.com/BlockchainCommons/Learning-Bitcoin-from-the-Command-Line/blob/master/05_2_Resending_a_Transaction_with_RBF.md
UPDATE: automatic RBF functionality was implemented here