Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/psbt_wallet_tests.cpp
Show All 11 Lines | |||||
#include <test/util/setup_common.h> | #include <test/util/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_FIXTURE_TEST_SUITE(psbt_wallet_tests, WalletTestingSetup) | BOOST_FIXTURE_TEST_SUITE(psbt_wallet_tests, WalletTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(psbt_updater_test) { | BOOST_AUTO_TEST_CASE(psbt_updater_test) { | ||||
auto spk_man = m_wallet.GetLegacyScriptPubKeyMan(); | auto spk_man = m_wallet.GetOrCreateLegacyScriptPubKeyMan(); | ||||
LOCK2(m_wallet.cs_wallet, spk_man->cs_KeyStore); | LOCK2(m_wallet.cs_wallet, spk_man->cs_KeyStore); | ||||
// Create prevtxs and add to wallet | // Create prevtxs and add to wallet | ||||
CDataStream s_prev_tx1( | CDataStream s_prev_tx1( | ||||
ParseHex("020000000158e87a21b56daf0c23be8e7070456c336f7cbaa5c8757924f54" | ParseHex("020000000158e87a21b56daf0c23be8e7070456c336f7cbaa5c8757924f54" | ||||
"5887bb2abdd7501000000171600145f275f436b09a8cc9a2eb2a2f528485c" | "5887bb2abdd7501000000171600145f275f436b09a8cc9a2eb2a2f528485c" | ||||
"68a56323feffffff02d8231f1b0100000017a914aed962d6654f9a2b36608" | "68a56323feffffff02d8231f1b0100000017a914aed962d6654f9a2b36608" | ||||
"eb9d64d2b260db4f1118700c2eb0b0000000017a914f6539307e3a48d1e01" | "eb9d64d2b260db4f1118700c2eb0b0000000017a914f6539307e3a48d1e01" | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |