@@ -219,7 +219,7 @@ BOOST_FIXTURE_TEST_CASE(block_reward_reallocation, TestChainBRRBeforeActivationS
219219 BOOST_CHECK_EQUAL (VersionBitsTipState (consensus_params, deployment_id), ThresholdState::STARTED);
220220 BOOST_CHECK_EQUAL (VersionBitsTipStatistics (consensus_params, deployment_id).threshold , threshold (0 ));
221221 // Next block should be signaling by default
222- const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, m_node, Params ()).CreateNewBlock (coinbasePubKey);
222+ const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, *m_node. mempool , m_node, Params ()).CreateNewBlock (coinbasePubKey);
223223 const uint32_t bitmask = ((uint32_t )1 ) << consensus_params.vDeployments [deployment_id].bit ;
224224 BOOST_CHECK_EQUAL (::ChainActive ().Tip ()->nVersion & bitmask, 0 );
225225 BOOST_CHECK_EQUAL (pblocktemplate->block .nVersion & bitmask, bitmask);
@@ -286,7 +286,7 @@ BOOST_FIXTURE_TEST_CASE(block_reward_reallocation, TestChainBRRBeforeActivationS
286286 deterministicMNManager->UpdatedBlockTip (::ChainActive ().Tip ());
287287 BOOST_ASSERT (deterministicMNManager->GetListAtChainTip ().HasMN (tx.GetHash ()));
288288 auto masternode_payment = GetMasternodePayment (::ChainActive ().Height (), GetBlockSubsidy (::ChainActive ().Tip ()->nBits , ::ChainActive ().Height (), consensus_params), 2500 );
289- const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, m_node, Params ()).CreateNewBlock (coinbasePubKey);
289+ const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, *m_node. mempool , m_node, Params ()).CreateNewBlock (coinbasePubKey);
290290 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , masternode_payment);
291291 }
292292
@@ -297,7 +297,7 @@ BOOST_FIXTURE_TEST_CASE(block_reward_reallocation, TestChainBRRBeforeActivationS
297297 {
298298 LOCK (cs_main);
299299 auto masternode_payment = GetMasternodePayment (::ChainActive ().Height (), GetBlockSubsidy (::ChainActive ().Tip ()->nBits , ::ChainActive ().Height (), consensus_params), 2500 );
300- const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, m_node, Params ()).CreateNewBlock (coinbasePubKey);
300+ const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, *m_node. mempool , m_node, Params ()).CreateNewBlock (coinbasePubKey);
301301 BOOST_CHECK_EQUAL (pblocktemplate->block .vtx [0 ]->GetValueOut (), 13748571607 );
302302 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , masternode_payment);
303303 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , 6874285801 ); // 0.4999999998
@@ -312,7 +312,7 @@ BOOST_FIXTURE_TEST_CASE(block_reward_reallocation, TestChainBRRBeforeActivationS
312312 }
313313 LOCK (cs_main);
314314 auto masternode_payment = GetMasternodePayment (::ChainActive ().Height (), GetBlockSubsidy (::ChainActive ().Tip ()->nBits , ::ChainActive ().Height (), consensus_params), 2500 );
315- const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, m_node, Params ()).CreateNewBlock (coinbasePubKey);
315+ const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, *m_node. mempool , m_node, Params ()).CreateNewBlock (coinbasePubKey);
316316 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , masternode_payment);
317317 }
318318 }
@@ -321,7 +321,7 @@ BOOST_FIXTURE_TEST_CASE(block_reward_reallocation, TestChainBRRBeforeActivationS
321321 // Reward split should reach ~60/40 after reallocation is done
322322 LOCK (cs_main);
323323 auto masternode_payment = GetMasternodePayment (::ChainActive ().Height (), GetBlockSubsidy (::ChainActive ().Tip ()->nBits , ::ChainActive ().Height (), consensus_params), 2500 );
324- const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, m_node, Params ()).CreateNewBlock (coinbasePubKey);
324+ const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, *m_node. mempool , m_node, Params ()).CreateNewBlock (coinbasePubKey);
325325 BOOST_CHECK_EQUAL (pblocktemplate->block .vtx [0 ]->GetValueOut (), 10221599170 );
326326 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , masternode_payment);
327327 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , 6132959502 ); // 0.6
@@ -335,15 +335,15 @@ BOOST_FIXTURE_TEST_CASE(block_reward_reallocation, TestChainBRRBeforeActivationS
335335 }
336336 LOCK (cs_main);
337337 auto masternode_payment = GetMasternodePayment (::ChainActive ().Height (), GetBlockSubsidy (::ChainActive ().Tip ()->nBits , ::ChainActive ().Height (), consensus_params), 2500 );
338- const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, m_node, Params ()).CreateNewBlock (coinbasePubKey);
338+ const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, *m_node. mempool , m_node, Params ()).CreateNewBlock (coinbasePubKey);
339339 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , masternode_payment);
340340 }
341341
342342 {
343343 // Reward split should reach ~60/40 after reallocation is done
344344 LOCK (cs_main);
345345 auto masternode_payment = GetMasternodePayment (::ChainActive ().Height (), GetBlockSubsidy (::ChainActive ().Tip ()->nBits , ::ChainActive ().Height (), consensus_params), 2500 );
346- const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, m_node, Params ()).CreateNewBlock (coinbasePubKey);
346+ const auto pblocktemplate = BlockAssembler (*sporkManager, *governance, *m_node. mempool , m_node, Params ()).CreateNewBlock (coinbasePubKey);
347347 BOOST_CHECK_EQUAL (pblocktemplate->block .vtx [0 ]->GetValueOut (), 9491484944 );
348348 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , masternode_payment);
349349 BOOST_CHECK_EQUAL (pblocktemplate->voutMasternodePayments [0 ].nValue , 5694890966 ); // 0.6
0 commit comments