v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks
src/wallet/test/wallet_tests.cpp
Before: src/wallet/test/wallet_tests.cpp · After: src/wallet/test/wallet_tests.cpp
File metadata
index 54f453623e938b9a9db081ad9e85ae485eab778a..b592c27badf4e0648481d5fde8f7adcc7bf67464 100644
Download original patch · Release notes
Diff rows 1–14 of 14. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/wallet/test/wallet_tests.cpp
CHANGED
|
@@ -579,7 +579,13 @@ BOOST_FIXTURE_TEST_CASE(wallet_descriptor_test, BasicTestingSetup)
|
|
| 579 |
//! wallet rescan and notifications are immediately synced, to verify the wallet
|
| 580 |
//! must already have a handler in place for them, and there's no gap after
|
| 581 |
//! rescanning where new transactions in new blocks could be lost.
|
| 582 |
-
BOOST_FIXTURE_TEST_CASE(CreateWallet, TestChain100Setup)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 583 |
{
|
| 584 |
m_args.ForceSetArg("-unsafesqlitesync", "1");
|
| 585 |
// Create new wallet with known key and unload it.
|
|
|
|
| 579 |
//! wallet rescan and notifications are immediately synced, to verify the wallet
|
| 580 |
//! must already have a handler in place for them, and there's no gap after
|
| 581 |
//! rescanning where new transactions in new blocks could be lost.
|
| 582 |
+
// This notification fixture deliberately pays raw public keys to its wallet.
|
| 583 |
+
struct BarePubkeyChain100Setup : TestChain100Setup {
|
| 584 |
+
BarePubkeyChain100Setup()
|
| 585 |
+
: TestChain100Setup{ChainType::REGTEST, {.extra_args = {"-permitbarepubkey=1"}}} {}
|
| 586 |
+
};
|
| 587 |
+
|
| 588 |
+
BOOST_FIXTURE_TEST_CASE(CreateWallet, BarePubkeyChain100Setup)
|
| 589 |
{
|
| 590 |
m_args.ForceSetArg("-unsafesqlitesync", "1");
|
| 591 |
// Create new wallet with known key and unload it.
|