Add not yet enforced chainparam arguments for signed blocks

This commit is contained in:
Gregory Sanders 2018-12-05 20:31:36 +01:00
parent 7bc578a398
commit f7c5cf7d92
4 changed files with 14 additions and 0 deletions

View file

@ -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<unsigned char> 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);