| 1320 | } |
| 1321 | |
| 1322 | void CDarkSendPool::NewBlock() { |
| 1323 | if (fDebug) LogPrintf("CDarkSendPool::NewBlock \n"); |
| 1324 | |
| 1325 | //we we're processing lots of blocks, we'll just leave |
| 1326 | if (GetTime() - lastNewBlock < 10) return; |
| 1327 | lastNewBlock = GetTime(); |
| 1328 | |
| 1329 | darkSendPool.CheckTimeout(); |
| 1330 | |
| 1331 | if (!fEnableDarksend) return; |
| 1332 | |
| 1333 | if (!fMasterNode) { |
| 1334 | //denominate all non-denominated inputs every 25 minutes. |
| 1335 | if (chainActive.Height() % 10 == 0) UnlockCoins(); |
| 1336 | ProcessMasternodeConnections(); |
| 1337 | } |
| 1338 | } |
| 1339 | |
| 1340 | // Darksend transaction was completed (failed or successed) |
| 1341 | void CDarkSendPool::CompletedTransaction(bool error, std::string lastMessageNew) { |
nothing calls this directly
no test coverage detected