Skip to content

Commit c422e37

Browse files
committed
style: apply clang format for new changes
1 parent 425b427 commit c422e37

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

src/test/block_reward_reallocation_tests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ struct TestChainBRRBeforeActivationSetup : public TestChainSetup
3636
{
3737
// Force fast DIP3 activation
3838
TestChainBRRBeforeActivationSetup() :
39-
TestChainSetup(497, {"-dip3params=30:50",
40-
"-testactivationheight=brr@1000",
41-
"-testactivationheight=v20@1200",
39+
TestChainSetup(497, {"-dip3params=30:50", "-testactivationheight=brr@1000", "-testactivationheight=v20@1200",
4240
"-vbparams=mn_rr:0:999999999999:0:20:16:12:5:1"})
4341
{
4442
}

src/test/evo_deterministicmns_tests.cpp

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -814,43 +814,46 @@ void FuncVerifyDB(TestChainSetup& setup)
814814

815815
BOOST_AUTO_TEST_SUITE(evo_dip3_activation_tests)
816816

817-
struct TestChainDIP3BeforeActivationSetup : public TestChainSetup
818-
{
819-
TestChainDIP3BeforeActivationSetup() : TestChainSetup(430) {}
817+
struct TestChainDIP3BeforeActivationSetup : public TestChainSetup {
818+
TestChainDIP3BeforeActivationSetup() :
819+
TestChainSetup(430)
820+
{
821+
}
820822
};
821823

822-
struct TestChainDIP3Setup : public TestChainDIP3BeforeActivationSetup
823-
{
824+
struct TestChainDIP3Setup : public TestChainDIP3BeforeActivationSetup {
824825
TestChainDIP3Setup()
825826
{
826827
// Activate DIP3 here
827828
CreateAndProcessBlock({}, coinbaseKey);
828829
}
829830
};
830831

831-
struct TestChainV19BeforeActivationSetup : public TestChainSetup
832-
{
832+
struct TestChainV19BeforeActivationSetup : public TestChainSetup {
833833
TestChainV19BeforeActivationSetup();
834834
};
835835

836-
struct TestChainV19Setup : public TestChainV19BeforeActivationSetup
837-
{
836+
struct TestChainV19Setup : public TestChainV19BeforeActivationSetup {
838837
TestChainV19Setup()
839838
{
840839
// Activate V19
841840
for (int i = 0; i < 5; ++i) {
842841
CreateAndProcessBlock({}, coinbaseKey);
843842
}
844-
bool v19_just_activated{DeploymentActiveAfter(m_node.chainman->ActiveChain().Tip(), Params().GetConsensus(), Consensus::DEPLOYMENT_V19) &&
845-
!DeploymentActiveAt(*m_node.chainman->ActiveChain().Tip(), Params().GetConsensus(), Consensus::DEPLOYMENT_V19)};
843+
bool v19_just_activated{DeploymentActiveAfter(m_node.chainman->ActiveChain().Tip(), Params().GetConsensus(),
844+
Consensus::DEPLOYMENT_V19) &&
845+
!DeploymentActiveAt(*m_node.chainman->ActiveChain().Tip(), Params().GetConsensus(),
846+
Consensus::DEPLOYMENT_V19)};
846847
assert(v19_just_activated);
847848
}
848849
};
849850

850851
// 5 blocks earlier
851-
TestChainV19BeforeActivationSetup::TestChainV19BeforeActivationSetup() : TestChainSetup(894)
852+
TestChainV19BeforeActivationSetup::TestChainV19BeforeActivationSetup() :
853+
TestChainSetup(894)
852854
{
853-
bool v19_active{DeploymentActiveAfter(m_node.chainman->ActiveChain().Tip(), Params().GetConsensus(), Consensus::DEPLOYMENT_V19)};
855+
bool v19_active{DeploymentActiveAfter(m_node.chainman->ActiveChain().Tip(), Params().GetConsensus(),
856+
Consensus::DEPLOYMENT_V19)};
854857
assert(!v19_active);
855858
}
856859

0 commit comments

Comments
 (0)