BlockTemplate: wait for 10 seconds before including new transactions

This commit is contained in:
SChernykh
2021-09-14 12:54:42 +02:00
parent 94adce4045
commit 8aa9e54dc4
5 changed files with 45 additions and 13 deletions

View File

@@ -152,6 +152,8 @@ void ZMQReader::parse(char* data, size_t size)
return;
}
m_tx.time_received = time(nullptr);
for (SizeType i = 0, n = doc.Size(); i < n; ++i) {
const auto& v = doc[i];
if (PARSE(v, m_tx, id) && PARSE(v, m_tx, blob_size) && PARSE(v, m_tx, weight) && PARSE(v, m_tx, fee)) {