Add regtest mode with a very large OP_TRUE output

This commit is contained in:
Matt Corallo 2015-06-03 12:47:29 -07:00
parent a31395b5da
commit c3ab6a374a
6 changed files with 43 additions and 9 deletions

View file

@ -247,6 +247,17 @@ public:
genesis.proof = CProof(0x207fffff, 2);
nDefaultPort = 18444;
CMutableTransaction txNew(genesis.vtx[0]);
txNew.vout.resize(2);
txNew.vout[0].nValue = MAX_MONEY / 2;
txNew.vout[1].nValue = MAX_MONEY / 2;
txNew.vout[1].scriptPubKey = CScript() << OP_TRUE;
genesis.vtx[0] = CTransaction(txNew);
CScript scriptDestination(CScript() << OP_TRUE);
genesis.proof = CProof(scriptDestination, CScript()); // genesis block gets a PoW pass
genesis.hashMerkleRoot = genesis.BuildMerkleTree();
hashGenesisBlock = genesis.GetHash();
mapCheckpointsRegtest[0] = hashGenesisBlock;