Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 3,011 Lines • ▼ Show 20 Lines | #endif | ||||
BanMan *banman = node.banman.get(); | BanMan *banman = node.banman.get(); | ||||
node.scheduler->scheduleEvery( | node.scheduler->scheduleEvery( | ||||
[banman] { | [banman] { | ||||
banman->DumpBanlist(); | banman->DumpBanlist(); | ||||
return true; | return true; | ||||
}, | }, | ||||
DUMP_BANS_INTERVAL); | DUMP_BANS_INTERVAL); | ||||
// Register local proof if available | |||||
if (g_avalanche->getLocalProof() && !g_avalanche->registerLocalProof()) { | |||||
// TODO: try to get a better error message. | |||||
return InitError(_("Invalid proof")); | |||||
deadalnix: That error message is not clear enough. Why is the checking happens there anyways? | |||||
} | |||||
// Start Avalanche's event loop. | // Start Avalanche's event loop. | ||||
g_avalanche->startEventLoop(*node.scheduler); | g_avalanche->startEventLoop(*node.scheduler); | ||||
return true; | return true; | ||||
} | } |
That error message is not clear enough. Why is the checking happens there anyways?