P2PServer: added 1 second grace time for stale shares

Only for shares that lag 1 Monero block behind
This commit is contained in:
SChernykh
2021-08-31 09:58:57 +02:00
parent bb8ff24db8
commit 4757cdb8e2
5 changed files with 13 additions and 4 deletions

View File

@@ -51,6 +51,7 @@
#include <string>
#include <algorithm>
#include <atomic>
#include <chrono>
#include <signal.h>
@@ -247,6 +248,8 @@ struct MinerData
uint64_t already_generated_coins;
uint64_t median_timestamp;
std::vector<TxMempoolData> tx_backlog;
std::chrono::system_clock::time_point time_received;
};
struct ChainMain