Skip to content

Commit

Permalink
f set g_con_elementsmode to always true
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Apr 22, 2021
1 parent 4250452 commit 065a7bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/bitcoin-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ static int CommandLineRawTx(int argc, char* argv[])
if (serialization == "ELEMENTS") {
g_con_elementsmode = true;
} else if (serialization == "BITCOIN") {
g_con_elementsmode = false;
g_con_elementsmode = true;
} else {
PrintExceptionContinue(nullptr, "Invalid serialization argument");
throw;
Expand Down
8 changes: 4 additions & 4 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class CMainParams : public CChainParams {
multi_data_permitted = false;
consensus.has_parent_chain = false;
g_signed_blocks = false;
g_con_elementsmode = false;
g_con_elementsmode = true;
g_con_blockheightinheader = false;
consensus.total_valid_epochs = 0;
consensus.elements_mode = g_con_elementsmode;
Expand Down Expand Up @@ -261,7 +261,7 @@ class CTestNetParams : public CChainParams {
multi_data_permitted = false;
consensus.has_parent_chain = false;
g_signed_blocks = false;
g_con_elementsmode = false;
g_con_elementsmode = true;
g_con_blockheightinheader = false;
consensus.total_valid_epochs = 0;
consensus.elements_mode = g_con_elementsmode;
Expand Down Expand Up @@ -408,7 +408,7 @@ class SigNetParams : public CChainParams {
multi_data_permitted = false;
consensus.has_parent_chain = false;
g_signed_blocks = false; // lol
g_con_elementsmode = false;
g_con_elementsmode = true;
g_con_blockheightinheader = false;
consensus.total_valid_epochs = 0;
consensus.elements_mode = g_con_elementsmode;
Expand Down Expand Up @@ -492,7 +492,7 @@ class CRegTestParams : public CChainParams {
multi_data_permitted = false;
consensus.has_parent_chain = false;
g_signed_blocks = false;
g_con_elementsmode = false;
g_con_elementsmode = true;
consensus.elements_mode = g_con_elementsmode;
g_con_blockheightinheader = false;
consensus.total_valid_epochs = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/primitives/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <assert.h>

bool g_con_elementsmode = false;
bool g_con_elementsmode = true;

std::string COutPoint::ToString() const
{
Expand Down

0 comments on commit 065a7bf

Please sign in to comment.