Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/psbt_wallet_tests.cpp
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | BOOST_AUTO_TEST_CASE(psbt_updater_test) { | ||||
bool complete = true; | bool complete = true; | ||||
BOOST_REQUIRE_EQUAL( | BOOST_REQUIRE_EQUAL( | ||||
m_wallet.FillPSBT(psbtx, complete, SigHashType(), false, true), | m_wallet.FillPSBT(psbtx, complete, SigHashType(), false, true), | ||||
TransactionError::OK); | TransactionError::OK); | ||||
// Get the final tx | // Get the final tx | ||||
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION); | CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION); | ||||
ssTx << psbtx; | ssTx << psbtx; | ||||
std::string final_hex = HexStr(ssTx.begin(), ssTx.end()); | std::string final_hex = HexStr(ssTx); | ||||
BOOST_CHECK_EQUAL( | BOOST_CHECK_EQUAL( | ||||
final_hex, | final_hex, | ||||
"70736274ff0100a0020000000258e87a21b56daf0c23be8e7070456c336f7cbaa5c875" | "70736274ff0100a0020000000258e87a21b56daf0c23be8e7070456c336f7cbaa5c875" | ||||
"7924f545887bb2abdd750000000000ffffffff6b04ec37326fbac8e468a73bf952c887" | "7924f545887bb2abdd750000000000ffffffff6b04ec37326fbac8e468a73bf952c887" | ||||
"7f84f96c3f9deadeab246455e34fe0cd0100000000ffffffff0270aaf0080000000019" | "7f84f96c3f9deadeab246455e34fe0cd0100000000ffffffff0270aaf0080000000019" | ||||
"76a914d85c2b71d0060b09c9886aeb815e50991dda124d88ac00e1f505000000001976" | "76a914d85c2b71d0060b09c9886aeb815e50991dda124d88ac00e1f505000000001976" | ||||
"a91400aea9a2e5f0f876a588df5546e8742d1d87008f88ac000000000001002080f0fa" | "a91400aea9a2e5f0f876a588df5546e8742d1d87008f88ac000000000001002080f0fa" | ||||
"020000000017a9140fb9463421696b82c833af241c78c17ddbde493487010447522102" | "020000000017a9140fb9463421696b82c833af241c78c17ddbde493487010447522102" | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |