Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/psbt_wallet_tests.cpp
Show All 24 Lines | CDataStream s_prev_tx1( | ||||
"5887bb2abdd7501000000171600145f275f436b09a8cc9a2eb2a2f528485c" | "5887bb2abdd7501000000171600145f275f436b09a8cc9a2eb2a2f528485c" | ||||
"68a56323feffffff02d8231f1b0100000017a914aed962d6654f9a2b36608" | "68a56323feffffff02d8231f1b0100000017a914aed962d6654f9a2b36608" | ||||
"eb9d64d2b260db4f1118700c2eb0b0000000017a914f6539307e3a48d1e01" | "eb9d64d2b260db4f1118700c2eb0b0000000017a914f6539307e3a48d1e01" | ||||
"36d061f5d1fe19e1a240898765000000"), | "36d061f5d1fe19e1a240898765000000"), | ||||
SER_NETWORK, PROTOCOL_VERSION); | SER_NETWORK, PROTOCOL_VERSION); | ||||
CTransactionRef prev_tx1; | CTransactionRef prev_tx1; | ||||
s_prev_tx1 >> prev_tx1; | s_prev_tx1 >> prev_tx1; | ||||
CWalletTx prev_wtx1(&m_wallet, prev_tx1); | m_wallet.mapWallet.emplace(std::piecewise_construct, | ||||
m_wallet.mapWallet.emplace(prev_wtx1.GetId(), std::move(prev_wtx1)); | std::forward_as_tuple(prev_tx1->GetId()), | ||||
std::forward_as_tuple(&m_wallet, prev_tx1)); | |||||
CDataStream s_prev_tx2( | CDataStream s_prev_tx2( | ||||
ParseHex( | ParseHex( | ||||
"0200000001aad73931018bd25f84ae400b68848be09db706eac2ac18298babee71" | "0200000001aad73931018bd25f84ae400b68848be09db706eac2ac18298babee71" | ||||
"ab656f8b0000000048473044022058f6fc7c6a33e1b31548d481c826c015bd3013" | "ab656f8b0000000048473044022058f6fc7c6a33e1b31548d481c826c015bd3013" | ||||
"5aad42cd67790dab66d2ad243b02204a1ced2604c6735b6393e5b41691dd78b00f" | "5aad42cd67790dab66d2ad243b02204a1ced2604c6735b6393e5b41691dd78b00f" | ||||
"0c5942fb9f751856faa938157dba01feffffff0280f0fa020000000017a9140fb9" | "0c5942fb9f751856faa938157dba01feffffff0280f0fa020000000017a9140fb9" | ||||
"463421696b82c833af241c78c17ddbde493487d0f20a270100000017a91429ca74" | "463421696b82c833af241c78c17ddbde493487d0f20a270100000017a91429ca74" | ||||
"f8a08f81999428185c97b5d852e4063f618765000000"), | "f8a08f81999428185c97b5d852e4063f618765000000"), | ||||
SER_NETWORK, PROTOCOL_VERSION); | SER_NETWORK, PROTOCOL_VERSION); | ||||
CTransactionRef prev_tx2; | CTransactionRef prev_tx2; | ||||
s_prev_tx2 >> prev_tx2; | s_prev_tx2 >> prev_tx2; | ||||
CWalletTx prev_wtx2(&m_wallet, prev_tx2); | m_wallet.mapWallet.emplace(std::piecewise_construct, | ||||
m_wallet.mapWallet.emplace(prev_wtx2.GetId(), std::move(prev_wtx2)); | std::forward_as_tuple(prev_tx2->GetId()), | ||||
std::forward_as_tuple(&m_wallet, prev_tx2)); | |||||
// Add scripts | // Add scripts | ||||
CScript rs1; | CScript rs1; | ||||
CDataStream s_rs1( | CDataStream s_rs1( | ||||
ParseHex("475221029583bf39ae0a609747ad199addd634fa6108559d6c5cd39b4c218" | ParseHex("475221029583bf39ae0a609747ad199addd634fa6108559d6c5cd39b4c218" | ||||
"3f1ab96e07f2102dab61ff49a14db6a7d02b0cd1fbb78fc4b18312b5b4e54" | "3f1ab96e07f2102dab61ff49a14db6a7d02b0cd1fbb78fc4b18312b5b4e54" | ||||
"dae4dba2fbfef536d752ae"), | "dae4dba2fbfef536d752ae"), | ||||
SER_NETWORK, PROTOCOL_VERSION); | SER_NETWORK, PROTOCOL_VERSION); | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |