diff --git a/src/chainparams.cpp b/src/chainparams.cpp index b43acb9228..ee290020b8 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -478,6 +478,13 @@ class CCustomParams : public CRegTestParams { // Determines type of genesis block consensus.genesis_style = gArgs.GetArg("-con_genesis_style", "elements"); + // Block signing encumberance script, default of 51 aka OP_TRUE + std::vector sign_bytes = ParseHex(gArgs.GetArg("-signblockscript", "51")); + consensus.signblockscript = CScript(sign_bytes.begin(), sign_bytes.end()); + // Default signature size is the size of dummy push, and single 72 byte DER signature + consensus.max_block_signature_size = gArgs.GetArg("-con_max_block_sig_size", 74); + g_signed_blocks = gArgs.GetBoolArg("-con_signed_blocks", false); + // Custom chains connect coinbase outputs to db by default consensus.connect_genesis_outputs = gArgs.GetArg("-con_connect_coinbase", true); diff --git a/src/chainparamsbase.cpp b/src/chainparamsbase.cpp index b3f72dbe18..228d09ee51 100644 --- a/src/chainparamsbase.cpp +++ b/src/chainparamsbase.cpp @@ -28,6 +28,9 @@ void SetupChainParamsBaseOptions() gArgs.AddArg("-con_connect_coinbase", "Connect outputs in genesis block to utxo database.", false, OptionsCategory::ELEMENTS); gArgs.AddArg("-con_blockheightinheader", "Whether the chain includes the block height directly in the header, for easier validation of block height in low-resource environments. (default: true)", false, OptionsCategory::CHAINPARAMS); gArgs.AddArg("-con_genesis_style=