-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PoC/Bitcoin/Utxo] Correctly Consider Fees for UTXO Selection (#3667)
* change utxo selection logic for tw_utxo::Compiler * small cleanup * update selected utxos, init input_selection test module * expand tests for change output generation * handle change output correctly in fee estimation, expand tests * calculate the effective fee rate, not the theoretical * add extra sanity checks * add input_selection_select_ascending test * test for empty inputs and outputs, extend error variant * additional comments and sanity checks * simplify transaction builder for BRC20, update tests * update reveal transaction signing in BRC20 builder * remove weight and fee_estimate checks in tw_utxo, plan for later * extra check for error * add input_selection_insufficient_inputs test * scrap the BitcoinPlanBuilder * remove utils module * cargo fmt * calculate the effective fee after setting the change output, if enabled * add UseAll selection tests, check for 'effective' fee * remove fee_estimate.rs, covered in input_selection.rs * use consts for alice and bob info * do extra checks in compile_impl * update change amount correctly in the native Transaction type before calculating sighash * build index of private keys AFTER selecting UTXOs * cargo fmt * [BRC20]: Take Inscription amount as a string * [BRC20]: Take Inscription amount as a string in C++ * [BRC20]: Add a test for BitcoinV2 bridge through the legacy `SigningInput` --------- Co-authored-by: Satoshi Otomakan <satoshiotomakan8@gmail.com>
- Loading branch information
1 parent
b65adc4
commit 43bf58c
Showing
27 changed files
with
1,159 additions
and
1,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
pub mod legacy; | ||
pub mod plan_builder; | ||
pub mod signer; | ||
pub mod transactions; | ||
mod utils; |
Oops, something went wrong.