9fa4076b20test: Test merging implicit PSBTv0 with explicit PSBTv0 (w0xlt)1660c18232doc: Release notes for psbtv2 (Ava Chow)470e52a5f8fuzz: Enforce additional version invariants in PSBT fuzzer (Antoine Poinsot)5bd0579c09test: Tests for PSBT AddInput and AddOutput (Ava Chow)b8b6e7f0c2tests: Add PSBT unit test for ComputeTimeLock (Ava Chow)0bc1c2e508tests: Add test vectors from BIP 370 (Ava Chow)e0e4dbdeb5psbt: Change default psbt version to 2 (Ava Chow)bcc1dca77bAdd psbt_version to PSBT RPCs and default to v2 (Ava Chow)ab38c30195Implement PSBTv2 field merging (Ava Chow)93e339e29fImplement PSBTv2 AddInput and AddOutput (Ava Chow)b39c86ae60Allow specifying PSBT version in constructor (Ava Chow)dcc9a3c8dfImplement PSBTv2 in decodepsbt (Ava Chow)5770dbd39fAdd PSBT::ComputeLockTime() (Ava Chow)863cf47b33Update test_framework/psbt.py for PSBTv2 (Ava Chow)925161eaf0Implement PSBTv2 fields de/ser (Ava Chow)d9cf658ee0Restrict joinpsbts to PSBTv0 only (Ava Chow)3da0e16012Replace PSBT.tx with PSBT::GetUnsignedTx and PSBT::GetUniqueID (Ava Chow)c568624ff2psbt: Return std::optional from PrecomputePSBTData (Ava Chow)092de4f1f6Replace PSBT::GetInputUTXO with PSBTInput::GetUTXO (Ava Chow)82c9fe3179psbt: Use PSBTInput and PSBTOutput fields instead of accessing global tx (Ava Chow)95897507e9psbt: AddInput and AddOutput should take only PSBTInput and PSBTOutput (Ava Chow)1b7d323a72Add PSBTInput::GetOutPoint (Ava Chow)543d3e1cdcpsbt: add PSBTv2 global tx fields (Ava Chow)c01c7f068cpsbt: Remove default constructor (Ava Chow)9671aa08c2psbt: add tx input and output fields in PSBTInput and PSBTOutput (Ava Chow)990b084f11Have PSBTInput and PSBTOutput know the PSBT's version (Ava Chow)7eacc21ff6psbt: make PSBT structs into classes (Ava Chow)f926c326bbgui: Store PSBT in std::optional in PSBTOperationsDialog (Ava Chow)1e2d146b47psbt: Refactor duplicate key lookup and size checks (Ava Chow)88384180d3test: PSBTs should roundtrip through RPCs that do nothing (Ava Chow)001877500dtest: construct psbt with unknown field programmatically (David Gumberg)0cb884e6dfpsbt: Fill hash preimages and taproot builder from SignatureData (Ava Chow) Pull request description: BIP 370 PSBTv2 introduces several new fields and different invariants for PSBT. This PR implements those new fields and restructures the PSBT implementation to match PSBTv2 but still remain compatible with PSBTv0. ACKs for top commit: nervana21: re-ACK9fa4076b20theStack: re-ACK9fa4076b20w0xlt: ACK9fa4076b20Tree-SHA512: ab0a5ada4fa5fca27ba9ec9c291a44b30e69d6db11971957572d86c58c71c4caa4557dc25f403e1170ba4fac751306d074cc582defefc6e2fdd37be51c3d9dd0
src/node/
The src/node/ directory contains code that needs to access node state
(state in CChain, CBlockIndex, CCoinsView, CTxMemPool, and similar
classes).
Code in src/node/ is meant to be segregated from code in
src/wallet/ and src/qt/, to ensure wallet and GUI
code changes don't interfere with node operation, to allow wallet and GUI code
to run in separate processes, and to perhaps eventually allow wallet and GUI
code to be maintained in separate source repositories.
As a rule of thumb, code in one of the src/node/,
src/wallet/, or src/qt/ directories should avoid
calling code in the other directories directly, and only invoke it indirectly
through the more limited src/interfaces/ classes.
This directory is at the moment
sparsely populated. Eventually more substantial files like
src/validation.cpp and
src/txmempool.cpp might be moved there.