Optimize makeBlockTemplates

This commit is contained in:
Mononaut
2022-10-27 10:21:39 -06:00
parent 6654107edb
commit c81bee048a
5 changed files with 406 additions and 160 deletions

View File

@@ -1,3 +1,4 @@
import logger from '../logger';
import { BlockExtended, TransactionExtended, MempoolBlockWithTransactions } from '../mempool.interfaces';
const PROPAGATION_MARGIN = 180; // in seconds, time since a transaction is first seen after which it is assumed to have propagated to all miners