Some houskeeping:

- fixed testnet checkpoints
- revert testnet mining patch
This commit is contained in:
Holger Schinzel 2016-05-10 09:41:40 +02:00
parent cd651ff6d1
commit 05661617a6
2 changed files with 20 additions and 22 deletions

View File

@ -244,12 +244,11 @@ public:
strDarksendPoolDummyAddress = "y1EZuxhhNMAUofTBEeLqGE1bJrpC2TWRNp"; strDarksendPoolDummyAddress = "y1EZuxhhNMAUofTBEeLqGE1bJrpC2TWRNp";
checkpointData = (CCheckpointData) { checkpointData = (CCheckpointData) {
boost::assign::map_list_of boost::assign::map_list_of
( 261, uint256S("00000c26026d0815a7e2ce4fa270775f61403c040647ff2c3091f99e894a4618")) ( 261, uint256S("00000c26026d0815a7e2ce4fa270775f61403c040647ff2c3091f99e894a4618")),
( 77900, uint256S("00000007e5ec67e2a626c07b7d66673c3dd8df0aed5018ca984b99fba2b71024")) 1423410572, // * UNIX timestamp of last checkpoint block
( 82313, uint256S("000000156a313af1d69fe855609175b276996235e8f4f7da41b10e4a7a750a19")), 264, // * total number of transactions between genesis and last checkpoint
1405699509, // (the tx=... number in the SetBestChain debug.log lines)
201, 500 // * estimated number of transactions per day after checkpoint
500
}; };
} }

View File

@ -408,21 +408,20 @@ void static BitcoinMiner(const CChainParams& chainparams)
throw std::runtime_error("No coinbase script available (mining requires a wallet)"); throw std::runtime_error("No coinbase script available (mining requires a wallet)");
while (true) { while (true) {
// 12.1: testing note -- disabled for now if (chainparams.MiningRequiresPeers()) {
// if (chainparams.MiningRequiresPeers()) { // Busy-wait for the network to come online so we don't waste time mining
// // Busy-wait for the network to come online so we don't waste time mining // on an obsolete chain. In regtest mode we expect to fly solo.
// // on an obsolete chain. In regtest mode we expect to fly solo. do {
// do { bool fvNodesEmpty;
// bool fvNodesEmpty; {
// { LOCK(cs_vNodes);
// LOCK(cs_vNodes); fvNodesEmpty = vNodes.empty();
// fvNodesEmpty = vNodes.empty(); }
// } if (!fvNodesEmpty && !IsInitialBlockDownload())
// if (!fvNodesEmpty && !IsInitialBlockDownload()) break;
// break; MilliSleep(1000);
// MilliSleep(1000); } while (true);
// } while (true); }
// }
// //