aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge #15408: Remove unused TransactionError constantsMarcoFalke2019-02-221-6/+4
|\ | | | | | | | | | | | | | | | | | | | | | | fa9b60c842 Remove unused TransactionError constants (MarcoFalke) Pull request description: Fixup to #14978, which introduced a bunch of unused enum values, such as `UNKNOWN_ERROR`, `ERROR_COUNT` and `TRANSACTION_ERR_LAST`. None of those have a meaning in the context of an `enum class`, where the compiler can infer if all cases have been covered in a switch-case. Also, move the global `::maxTxFee` back to the rpc caller, so it can be set on a per call basis (in the future). Tree-SHA512: 7f1e2d795f1c1278ecd54ddab2b92c2a862f3c637b482d1d008208925befa1c9dd4b3c4bb1bfcbc5ca4b66a41004aaf01ea96ea95236f944250b8a6cf99ff173
| * Remove unused TransactionError constantsMarcoFalke2019-02-141-6/+4
| |
* | Move PSBT UTXO fetching to a separate methodAndrew Chow2019-02-161-0/+14
| |
* | Figure out what is missing during signingAndrew Chow2019-02-161-4/+16
| | | | | | | | | | | | | | When signing an input, figure out what was requested for but was unable to be found and store it in a SignatureData. Return this information in SignPSBTInput.
* | Implement joinpsbts RPC and testsAndrew Chow2019-02-161-0/+20
|/ | | | | Adds a joinpsbts RPC which combines multiple distinct PSBTs into one PSBT.
* Factor out combine / finalize / extract PSBT helpersGlenn Willen2019-02-111-0/+49
| | | | | | Refactor the new CombinePSBT, FinalizePSBT, and FinalizeAndExtractPSBT general-purpose functions out of the combinepsbt and finalizepsbt RPCs, for use in the GUI code.
* Remove op== on PSBTs; check compatibility in MergeGlenn Willen2019-02-111-1/+8
| | | | | | Remove the op== on PartiallySignedTransaction, which only checks that the CTransactions are equal. Instead, check this directly in Merge, and return false if the CTransactions are not equal (so the PSBTs cannot be merged.)
* Move PSBT definitions and code to separate filesGlenn Willen2019-02-111-0/+227
Move non-wallet PSBT code to src/psbt.{h,cpp}, and PSBT wallet code to src/wallet/psbtwallet.{h,cpp}. This commit contains only code movement (and adjustments to includes and Makefile.am.)