MCPcopy Create free account
hub / github.com/LUX-Core/lux / NewBlock

Method NewBlock

src/darksend.cpp:1322–1338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1320}
1321
1322void 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)
1341void CDarkSendPool::CompletedTransaction(bool error, std::string lastMessageNew) {

Callers

nothing calls this directly

Calls 4

GetTimeFunction · 0.85
CheckTimeoutMethod · 0.80
HeightMethod · 0.80

Tested by

no test coverage detected