Browse Source

Fixed regtest.

idb-fix
Just Wonder 5 years ago
parent
commit
32e8a383d0
  1. 4
      src/chainparams.cpp
  2. 2
      src/qt/test/rpcnestedtests.cpp

4
src/chainparams.cpp

@ -331,9 +331,9 @@ public: @@ -331,9 +331,9 @@ public:
nDefaultPort = 19444;
nPruneAfterHeight = 1000;
genesis = CreateGenesisBlockTest(1296688602, 0, 0x207fffff, 1, 50 * COIN);
genesis = CreateGenesisBlockTest(1582959692, 0, 0x207fffff, 1, 50 * COIN);
consensus.hashGenesisBlock = genesis.GetHash();
assert(consensus.hashGenesisBlock == uint256S("0x5d5ac209e9ebebf459c7258347cc5cfa65f85414d6615669ce5b9b20448a89cc"));
assert(consensus.hashGenesisBlock == uint256S("0x913ef11843ce0d4905bfdbd73c8e57bc9b35619dfada60474e64040b351b9941"));
assert(genesis.hashMerkleRoot == uint256S("0xb4db37fbc5c9ce5396b7d14dba94460cbcb4cf16e932b3cb6aece2244babf5b9"));
vFixedSeeds.clear(); //!< Regtest mode doesn't have any fixed seeds.

2
src/qt/test/rpcnestedtests.cpp

@ -73,7 +73,7 @@ void RPCNestedTests::rpcNestedTests() @@ -73,7 +73,7 @@ void RPCNestedTests::rpcNestedTests()
QVERIFY(result == result2);
RPCConsole::RPCExecuteCommandLine(result, "getblock(getbestblockhash())[tx][0]", &filtered);
QVERIFY(result == "b21d4680875c0e472b7dbf3dbab2aaeb2dbbb5fa8b154f978b5ea0706d1fd5b9");
QVERIFY(result == "e6104a982da24d09ccf867aba92abbd31b2ede9da636941367709c5ef24d3330");
QVERIFY(filtered == "getblock(getbestblockhash())[tx][0]");
RPCConsole::RPCParseCommandLine(result, "importprivkey", false, &filtered);

Loading…
Cancel
Save