Browse Source
bugfix: use enumerate instead of len reviewed estimation of transaction sizes estimates are still a bit conservative with room for improvement; signatures could still save up to one byte each if using low-r values. python-bitcointx==1.1.2-dev already supports grinding for low-r values so when it's stable and referenced version is updated, this should be reviewed again so as to utilize that benefit. added utility method `estimate_extra_bytes` the purpose of this method is for the computation of extra bytes when the coinjoin or direct send output type is different from that of the wallet updated tests to reflect new transaction size computation p2pkh transactions are now 1 byte larger for the inputs hence the change amount should be less 4 * 30 sats. add private keys for utxos that we may not be tracking some transactions (e.g. opt-in rbf) may require signing with private keys for utxos that we may have stopped tracking. this commit will search through all inputs and for those we own and retrieve their private keys so we can sign with them. added support for p2wsh output scripts in refactored the estimation of the transaction size when outputs of a different type is the target Previously, a different method was employed which was kind of kludgy considering the fact that the `extra_bytes` parameter is really for `OP_RETURN` outputs. This method modifies the `estimate_tx_size` method to accept an optional extra parameter called `outtype` which is used to estimate the correct transaction size if the target output is different from that of the wallet. added missing import added a note about preserving the order of wallet type constants Fix bug with timelocked addrs in receive payjoin Previously there would be a crash if the wallet receiving a payjoin had a timelocked UTXO.master
9 changed files with 125 additions and 38 deletions
Loading…
Reference in new issue