mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 688c61303b into merged_master (Bitcoin PR bitcoin/bitcoin#27907)
This commit is contained in:
commit
7f2c50643f
1 changed files with 4 additions and 1 deletions
|
|
@ -84,6 +84,8 @@ static void WalletCreateTx(benchmark::Bench& bench, const OutputType output_type
|
|||
const auto test_setup = MakeNoLogFileContext<const TestingSetup>();
|
||||
SetMockTime(test_setup->m_node.chainman->GetParams().GenesisBlock().nTime); // ELEMENTS
|
||||
|
||||
// Set clock to genesis block, so the descriptors/keys creation time don't interfere with the blocks scanning process.
|
||||
SetMockTime(test_setup->m_node.chainman->GetParams().GenesisBlock().nTime);
|
||||
CWallet wallet{test_setup->m_node.chain.get(), "", CreateMockableWalletDatabase()};
|
||||
{
|
||||
LOCK(wallet.cs_wallet);
|
||||
|
|
@ -138,7 +140,8 @@ static void WalletCreateTx(benchmark::Bench& bench, const OutputType output_type
|
|||
static void AvailableCoins(benchmark::Bench& bench, const std::vector<OutputType>& output_type)
|
||||
{
|
||||
const auto test_setup = MakeNoLogFileContext<const TestingSetup>();
|
||||
SetMockTime(test_setup->m_node.chainman->GetParams().GenesisBlock().nTime); // ELEMENTS
|
||||
// Set clock to genesis block, so the descriptors/keys creation time don't interfere with the blocks scanning process.
|
||||
SetMockTime(test_setup->m_node.chainman->GetParams().GenesisBlock().nTime);
|
||||
CWallet wallet{test_setup->m_node.chain.get(), "", CreateMockableWalletDatabase()};
|
||||
{
|
||||
LOCK(wallet.cs_wallet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue