mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-08 06:35:25 +01:00
102faad81Factor out combine / finalize / extract PSBT helpers (Glenn Willen)78b9893d0Remove op== on PSBTs; check compatibility in Merge (Glenn Willen)bd0dbe876Switch away from exceptions in refactored tx code (Glenn Willen)c6c3d42a7Move PSBT definitions and code to separate files (Glenn Willen)81cd95884Factor BroadcastTransaction out of sendrawtransaction (Glenn Willen)c734aaa15Split DecodePSBT into Base64 and Raw versions (Glenn Willen)162ffefd2Add pf_invalid arg to std::string DecodeBase{32,64} (Glenn Willen) Pull request description: * Move most PSBT definitions into psbt.h. * Move most PSBT RPC utilities into psbt.{h,cpp}. * Move wallet-touching PSBT RPC utilities (FillPSBT) into wallet/psbtwallet.{h,cpp}. * Switch exceptions from JSONRPCError() to new PSBTException class. * Split DecodePSBT into DecodeBase64PSBT (old behavior) and DecodeRawPSBT. * Add one new version of DecodeBase64 utility in strencodings.h (and corresponding DecodeBase32 for completeness). * Factor BroadcastTransaction utility function out of sendrawtransaction RPC handler in rpc/rawtransaction.cpp Note: For those keeping score at home wondering why refactor, this is in anticipation of (and developed in parallel with) a change to actually introduce GUI use of all this stuff, which is already under development and working-ish. Tree-SHA512: 2197c448e657421f430943025357597e7b06c4c377d5d4b2622b9edea52a7193c48843dd731abb3a88ac4023a9c88d211991e0a9b740c22f2e1cbe72adefe390