mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Add not yet enforced chainparam arguments for signed blocks
This commit is contained in:
parent
7bc578a398
commit
f7c5cf7d92
4 changed files with 14 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue