2021-03-18 23:47:40 +07:00
|
|
|
import logger from '../logger';
|
2022-10-10 22:13:04 +00:00
|
|
|
import { MempoolBlock, TransactionExtended, TransactionStripped, MempoolBlockWithTransactions, MempoolBlockDelta, TransactionSet, Ancestor } from '../mempool.interfaces';
|
2020-05-24 16:29:30 +07:00
|
|
|
import { Common } from './common';
|
2021-03-18 05:52:46 +00:00
|
|
|
import config from '../config';
|
2020-02-16 22:15:07 +07:00
|
|
|
|
|
|
|
class MempoolBlocks {
|
2020-06-08 02:08:51 +07:00
|
|
|
private mempoolBlocks: MempoolBlockWithTransactions[] = [];
|
2022-05-31 21:36:42 +00:00
|
|
|
private mempoolBlockDeltas: MempoolBlockDelta[] = [];
|
2020-02-16 22:15:07 +07:00
|
|
|
|
|
|
|
constructor() {}
|
|
|
|
|
|
|
|
public getMempoolBlocks(): MempoolBlock[] {
|
2020-06-08 02:08:51 +07:00
|
|
|
return this.mempoolBlocks.map((block) => {
|
|
|
|
return {
|
|
|
|
blockSize: block.blockSize,
|
|
|
|
blockVSize: block.blockVSize,
|
|
|
|
nTx: block.nTx,
|
|
|
|
totalFees: block.totalFees,
|
|
|
|
medianFee: block.medianFee,
|
|
|
|
feeRange: block.feeRange,
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public getMempoolBlocksWithTransactions(): MempoolBlockWithTransactions[] {
|
2020-02-16 22:15:07 +07:00
|
|
|
return this.mempoolBlocks;
|
|
|
|
}
|
|
|
|
|
2022-05-31 21:36:42 +00:00
|
|
|
public getMempoolBlockDeltas(): MempoolBlockDelta[] {
|
2022-06-02 01:29:03 +04:00
|
|
|
return this.mempoolBlockDeltas;
|
2022-05-31 21:36:42 +00:00
|
|
|
}
|
|
|
|
|
2020-02-23 19:16:50 +07:00
|
|
|
public updateMempoolBlocks(memPool: { [txid: string]: TransactionExtended }): void {
|
2020-02-16 22:15:07 +07:00
|
|
|
const latestMempool = memPool;
|
2020-02-23 19:16:50 +07:00
|
|
|
const memPoolArray: TransactionExtended[] = [];
|
2020-02-16 22:15:07 +07:00
|
|
|
for (const i in latestMempool) {
|
|
|
|
if (latestMempool.hasOwnProperty(i)) {
|
|
|
|
memPoolArray.push(latestMempool[i]);
|
|
|
|
}
|
|
|
|
}
|
2021-03-18 23:47:40 +07:00
|
|
|
const start = new Date().getTime();
|
|
|
|
|
|
|
|
// Clear bestDescendants & ancestors
|
|
|
|
memPoolArray.forEach((tx) => {
|
|
|
|
tx.bestDescendant = null;
|
|
|
|
tx.ancestors = [];
|
|
|
|
tx.cpfpChecked = false;
|
|
|
|
if (!tx.effectiveFeePerVsize) {
|
|
|
|
tx.effectiveFeePerVsize = tx.feePerVsize;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// First sort
|
2020-02-16 22:15:07 +07:00
|
|
|
memPoolArray.sort((a, b) => b.feePerVsize - a.feePerVsize);
|
2021-03-18 23:47:40 +07:00
|
|
|
|
|
|
|
// Loop through and traverse all ancestors and sum up all the sizes + fees
|
|
|
|
// Pass down size + fee to all unconfirmed children
|
|
|
|
let sizes = 0;
|
|
|
|
memPoolArray.forEach((tx, i) => {
|
2021-04-10 21:26:05 +04:00
|
|
|
sizes += tx.weight;
|
2021-03-18 23:47:40 +07:00
|
|
|
if (sizes > 4000000 * 8) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
Common.setRelativesAndGetCpfpInfo(tx, memPool);
|
|
|
|
});
|
|
|
|
|
|
|
|
// Final sort, by effective fee
|
|
|
|
memPoolArray.sort((a, b) => b.effectiveFeePerVsize - a.effectiveFeePerVsize);
|
|
|
|
|
|
|
|
const end = new Date().getTime();
|
|
|
|
const time = end - start;
|
|
|
|
logger.debug('Mempool blocks calculated in ' + time / 1000 + ' seconds');
|
|
|
|
|
2022-05-31 21:36:42 +00:00
|
|
|
const { blocks, deltas } = this.calculateMempoolBlocks(memPoolArray, this.mempoolBlocks);
|
2022-06-02 01:29:03 +04:00
|
|
|
this.mempoolBlocks = blocks;
|
|
|
|
this.mempoolBlockDeltas = deltas;
|
2020-02-16 22:15:07 +07:00
|
|
|
}
|
|
|
|
|
2022-06-02 01:29:03 +04:00
|
|
|
private calculateMempoolBlocks(transactionsSorted: TransactionExtended[], prevBlocks: MempoolBlockWithTransactions[]):
|
|
|
|
{ blocks: MempoolBlockWithTransactions[], deltas: MempoolBlockDelta[] } {
|
2020-06-08 02:08:51 +07:00
|
|
|
const mempoolBlocks: MempoolBlockWithTransactions[] = [];
|
2022-05-31 21:36:42 +00:00
|
|
|
const mempoolBlockDeltas: MempoolBlockDelta[] = [];
|
2021-08-14 03:24:31 +03:00
|
|
|
let blockWeight = 0;
|
2020-02-16 22:15:07 +07:00
|
|
|
let blockSize = 0;
|
2020-02-23 19:16:50 +07:00
|
|
|
let transactions: TransactionExtended[] = [];
|
2020-02-16 22:15:07 +07:00
|
|
|
transactionsSorted.forEach((tx) => {
|
2021-10-05 04:11:13 +04:00
|
|
|
if (blockWeight + tx.weight <= config.MEMPOOL.BLOCK_WEIGHT_UNITS
|
|
|
|
|| mempoolBlocks.length === config.MEMPOOL.MEMPOOL_BLOCKS_AMOUNT - 1) {
|
2021-08-14 03:24:31 +03:00
|
|
|
blockWeight += tx.weight;
|
2020-02-16 22:15:07 +07:00
|
|
|
blockSize += tx.size;
|
|
|
|
transactions.push(tx);
|
|
|
|
} else {
|
2021-08-14 03:24:31 +03:00
|
|
|
mempoolBlocks.push(this.dataToMempoolBlocks(transactions, blockSize, blockWeight, mempoolBlocks.length));
|
|
|
|
blockWeight = tx.weight;
|
2020-06-08 18:55:53 +07:00
|
|
|
blockSize = tx.size;
|
|
|
|
transactions = [tx];
|
2020-02-16 22:15:07 +07:00
|
|
|
}
|
|
|
|
});
|
|
|
|
if (transactions.length) {
|
2021-08-14 03:24:31 +03:00
|
|
|
mempoolBlocks.push(this.dataToMempoolBlocks(transactions, blockSize, blockWeight, mempoolBlocks.length));
|
2020-02-16 22:15:07 +07:00
|
|
|
}
|
2022-10-10 22:13:04 +00:00
|
|
|
|
2022-05-31 21:36:42 +00:00
|
|
|
// Calculate change from previous block states
|
|
|
|
for (let i = 0; i < Math.max(mempoolBlocks.length, prevBlocks.length); i++) {
|
2022-06-02 01:29:03 +04:00
|
|
|
let added: TransactionStripped[] = [];
|
|
|
|
let removed: string[] = [];
|
2022-05-31 21:36:42 +00:00
|
|
|
if (mempoolBlocks[i] && !prevBlocks[i]) {
|
2022-06-02 01:29:03 +04:00
|
|
|
added = mempoolBlocks[i].transactions;
|
2022-05-31 21:36:42 +00:00
|
|
|
} else if (!mempoolBlocks[i] && prevBlocks[i]) {
|
2022-06-02 01:29:03 +04:00
|
|
|
removed = prevBlocks[i].transactions.map(tx => tx.txid);
|
2022-05-31 21:36:42 +00:00
|
|
|
} else if (mempoolBlocks[i] && prevBlocks[i]) {
|
2022-06-02 01:29:03 +04:00
|
|
|
const prevIds = {};
|
|
|
|
const newIds = {};
|
2022-05-31 21:36:42 +00:00
|
|
|
prevBlocks[i].transactions.forEach(tx => {
|
2022-06-02 01:29:03 +04:00
|
|
|
prevIds[tx.txid] = true;
|
|
|
|
});
|
2022-05-31 21:36:42 +00:00
|
|
|
mempoolBlocks[i].transactions.forEach(tx => {
|
2022-06-02 01:29:03 +04:00
|
|
|
newIds[tx.txid] = true;
|
|
|
|
});
|
2022-05-31 21:36:42 +00:00
|
|
|
prevBlocks[i].transactions.forEach(tx => {
|
2022-06-02 01:29:03 +04:00
|
|
|
if (!newIds[tx.txid]) {
|
|
|
|
removed.push(tx.txid);
|
|
|
|
}
|
|
|
|
});
|
2022-05-31 21:36:42 +00:00
|
|
|
mempoolBlocks[i].transactions.forEach(tx => {
|
2022-06-02 01:29:03 +04:00
|
|
|
if (!prevIds[tx.txid]) {
|
|
|
|
added.push(tx);
|
|
|
|
}
|
|
|
|
});
|
2022-05-31 21:36:42 +00:00
|
|
|
}
|
|
|
|
mempoolBlockDeltas.push({
|
|
|
|
added,
|
|
|
|
removed
|
2022-06-02 01:29:03 +04:00
|
|
|
});
|
2022-05-31 21:36:42 +00:00
|
|
|
}
|
2022-10-10 22:13:04 +00:00
|
|
|
|
2022-05-31 21:36:42 +00:00
|
|
|
return {
|
|
|
|
blocks: mempoolBlocks,
|
|
|
|
deltas: mempoolBlockDeltas
|
2022-06-02 01:29:03 +04:00
|
|
|
};
|
2020-02-16 22:15:07 +07:00
|
|
|
}
|
|
|
|
|
2022-10-10 22:13:04 +00:00
|
|
|
/*
|
|
|
|
* Build projected mempool blocks using an approximation of the transaction selection algorithm from Bitcoin Core
|
|
|
|
* (see BlockAssembler in https://github.com/bitcoin/bitcoin/blob/master/src/node/miner.cpp)
|
|
|
|
*
|
|
|
|
* templateLimit: number of blocks to build using the full algo,
|
|
|
|
* remaining blocks up to blockLimit will skip the expensive updateDescendants step
|
|
|
|
*
|
|
|
|
* blockLimit: number of blocks to build in total. Excess transactions will be ignored.
|
|
|
|
*/
|
|
|
|
public makeBlockTemplates(mempool: { [txid: string]: TransactionExtended }, templateLimit: number = Infinity, blockLimit: number = Infinity): MempoolBlockWithTransactions[] {
|
|
|
|
const start = new Date().getTime();
|
|
|
|
const txSets: { [txid: string]: TransactionSet } = {};
|
|
|
|
const mempoolArray: TransactionExtended[] = Object.values(mempool);
|
|
|
|
|
|
|
|
mempoolArray.forEach((tx) => {
|
|
|
|
tx.bestDescendant = null;
|
|
|
|
tx.ancestors = [];
|
|
|
|
tx.cpfpChecked = false;
|
|
|
|
tx.effectiveFeePerVsize = tx.feePerVsize;
|
|
|
|
txSets[tx.txid] = {
|
|
|
|
fee: 0,
|
|
|
|
weight: 1,
|
|
|
|
score: 0,
|
|
|
|
children: [],
|
|
|
|
available: true,
|
|
|
|
modified: false,
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
// Build relatives graph & calculate ancestor scores
|
|
|
|
mempoolArray.forEach((tx) => {
|
|
|
|
this.setRelatives(tx, mempool, txSets);
|
|
|
|
});
|
|
|
|
|
|
|
|
// Sort by descending ancestor score
|
|
|
|
const byAncestor = (a, b): number => this.sortByAncestorScore(a, b, txSets);
|
|
|
|
mempoolArray.sort(byAncestor);
|
|
|
|
|
|
|
|
// Build blocks by greedily choosing the highest feerate package
|
|
|
|
// (i.e. the package rooted in the transaction with the best ancestor score)
|
|
|
|
const blocks: MempoolBlockWithTransactions[] = [];
|
|
|
|
let blockWeight = 4000;
|
|
|
|
let blockSize = 0;
|
|
|
|
let transactions: TransactionExtended[] = [];
|
|
|
|
let modified: TransactionExtended[] = [];
|
|
|
|
let overflow: TransactionExtended[] = [];
|
|
|
|
let failures = 0;
|
|
|
|
while ((mempoolArray.length || modified.length) && blocks.length < blockLimit) {
|
|
|
|
const simpleMode = blocks.length >= templateLimit;
|
|
|
|
let anyModified = false;
|
|
|
|
// Select best next package
|
|
|
|
let nextTx;
|
|
|
|
if (mempoolArray.length && (!modified.length || txSets[mempoolArray[0].txid]?.score > txSets[modified[0].txid]?.score)) {
|
|
|
|
nextTx = mempoolArray.shift();
|
|
|
|
if (txSets[nextTx?.txid]?.modified) {
|
|
|
|
nextTx = null;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
nextTx = modified.shift();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (nextTx && txSets[nextTx.txid]?.available) {
|
|
|
|
const nextTxSet = txSets[nextTx.txid];
|
|
|
|
// Check if the package fits into this block
|
|
|
|
if (nextTxSet && blockWeight + nextTxSet.weight < config.MEMPOOL.BLOCK_WEIGHT_UNITS) {
|
|
|
|
blockWeight += nextTxSet.weight;
|
|
|
|
// sort txSet by dependency graph (equivalent to sorting by ascending ancestor count)
|
2022-10-18 21:03:21 +00:00
|
|
|
const sortedTxSet = [...nextTx.ancestors.sort((a, b) => {
|
2022-10-10 22:13:04 +00:00
|
|
|
return (mempool[a.txid]?.ancestors?.length || 0) - (mempool[b.txid]?.ancestors?.length || 0);
|
2022-10-18 21:03:21 +00:00
|
|
|
}), nextTx];
|
|
|
|
sortedTxSet.forEach((ancestor, i, arr) => {
|
2022-10-10 22:13:04 +00:00
|
|
|
const tx = mempool[ancestor.txid];
|
|
|
|
const txSet = txSets[ancestor.txid];
|
|
|
|
if (txSet.available) {
|
|
|
|
txSet.available = false;
|
|
|
|
tx.effectiveFeePerVsize = nextTxSet.fee / (nextTxSet.weight / 4);
|
|
|
|
tx.cpfpChecked = true;
|
|
|
|
if (i < arr.length - 1) {
|
|
|
|
tx.bestDescendant = {
|
|
|
|
txid: arr[i + 1].txid,
|
|
|
|
fee: arr[i + 1].fee,
|
|
|
|
weight: arr[i + 1].weight,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
transactions.push(tx);
|
|
|
|
blockSize += tx.size;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// remove these as valid package ancestors for any remaining descendants
|
|
|
|
if (!simpleMode) {
|
|
|
|
sortedTxSet.forEach(tx => {
|
|
|
|
anyModified = this.updateDescendants(tx, tx, mempool, txSets, modified);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
failures = 0;
|
|
|
|
} else {
|
|
|
|
// hold this package in an overflow list while we check for smaller options
|
|
|
|
txSets[nextTx.txid].modified = true;
|
|
|
|
overflow.push(nextTx);
|
|
|
|
failures++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// this block is full
|
|
|
|
const outOfTransactions = !mempoolArray.length && !modified.length;
|
|
|
|
const exceededPackageTries = failures > 1000 && blockWeight > (config.MEMPOOL.BLOCK_WEIGHT_UNITS - 4000);
|
|
|
|
const exceededSimpleTries = failures > 0 && simpleMode;
|
|
|
|
if (outOfTransactions || exceededPackageTries || exceededSimpleTries) {
|
|
|
|
// construct this block
|
|
|
|
blocks.push(this.dataToMempoolBlocks(transactions, blockSize, blockWeight, blocks.length));
|
|
|
|
// reset for the next block
|
|
|
|
transactions = [];
|
|
|
|
blockSize = 0;
|
|
|
|
blockWeight = 4000;
|
|
|
|
|
|
|
|
// 'overflow' packages didn't fit in this block, but are valid candidates for the next
|
|
|
|
if (overflow.length) {
|
|
|
|
modified = modified.concat(overflow);
|
|
|
|
overflow = [];
|
|
|
|
anyModified = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// re-sort modified list if necessary
|
|
|
|
if (anyModified) {
|
|
|
|
modified = modified.filter(tx => txSets[tx.txid]?.available).sort(byAncestor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const end = new Date().getTime();
|
|
|
|
const time = end - start;
|
|
|
|
logger.debug('Mempool templates calculated in ' + time / 1000 + ' seconds');
|
|
|
|
|
|
|
|
return blocks;
|
|
|
|
}
|
|
|
|
|
|
|
|
private sortByAncestorScore(a, b, txSets): number {
|
|
|
|
return txSets[b.txid]?.score - txSets[a.txid]?.score;
|
|
|
|
}
|
|
|
|
|
|
|
|
private setRelatives(tx: TransactionExtended, mempool: { [txid: string]: TransactionExtended }, txSets: { [txid: string]: TransactionSet }): { [txid: string]: Ancestor } {
|
|
|
|
let ancestors: { [txid: string]: Ancestor } = {};
|
|
|
|
tx.vin.forEach((parent) => {
|
|
|
|
const parentTx = mempool[parent.txid];
|
|
|
|
const parentTxSet = txSets[parent.txid];
|
|
|
|
if (parentTx && parentTxSet) {
|
|
|
|
ancestors[parentTx.txid] = parentTx;
|
|
|
|
if (!parentTxSet.children) {
|
|
|
|
parentTxSet.children = [tx.txid];
|
|
|
|
} else {
|
|
|
|
parentTxSet.children.push(tx.txid);
|
|
|
|
}
|
|
|
|
if (!parentTxSet.score) {
|
|
|
|
ancestors = {
|
|
|
|
...ancestors,
|
|
|
|
...this.setRelatives(parentTx, mempool, txSets),
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
tx.ancestors = Object.values(ancestors).map(ancestor => {
|
|
|
|
return {
|
|
|
|
txid: ancestor.txid,
|
|
|
|
fee: ancestor.fee,
|
|
|
|
weight: ancestor.weight
|
|
|
|
};
|
|
|
|
});
|
|
|
|
let totalFees = tx.fee;
|
|
|
|
let totalWeight = tx.weight;
|
|
|
|
tx.ancestors.forEach(ancestor => {
|
|
|
|
totalFees += ancestor.fee;
|
|
|
|
totalWeight += ancestor.weight;
|
|
|
|
});
|
|
|
|
txSets[tx.txid].fee = totalFees;
|
|
|
|
txSets[tx.txid].weight = totalWeight;
|
|
|
|
txSets[tx.txid].score = this.calcAncestorScore(tx, totalFees, totalWeight);
|
|
|
|
|
|
|
|
return ancestors;
|
|
|
|
}
|
|
|
|
|
|
|
|
private calcAncestorScore(tx: TransactionExtended, ancestorFees: number, ancestorWeight: number): number {
|
|
|
|
return Math.min(tx.fee / tx.weight, ancestorFees / ancestorWeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
// walk over remaining descendants, removing the root as a valid ancestor & updating the ancestor score
|
|
|
|
// returns whether any descendants were modified
|
|
|
|
private updateDescendants(
|
|
|
|
root: TransactionExtended,
|
|
|
|
tx: TransactionExtended,
|
|
|
|
mempool: { [txid: string]: TransactionExtended },
|
|
|
|
txSets: { [txid: string]: TransactionSet },
|
|
|
|
modified: TransactionExtended[],
|
|
|
|
): boolean {
|
|
|
|
let anyModified = false;
|
|
|
|
const txSet = txSets[tx.txid];
|
|
|
|
if (txSet.children) {
|
|
|
|
txSet.children.forEach(childId => {
|
|
|
|
const child = mempool[childId];
|
2022-10-18 21:03:21 +00:00
|
|
|
if (child && child.ancestors) {
|
2022-10-10 22:13:04 +00:00
|
|
|
const ancestorIndex = child.ancestors.findIndex(a => a.txid === root.txid);
|
|
|
|
if (ancestorIndex > -1) {
|
|
|
|
// remove tx as ancestor
|
|
|
|
child.ancestors.splice(ancestorIndex, 1);
|
|
|
|
const childTxSet = txSets[childId];
|
|
|
|
childTxSet.fee -= root.fee;
|
|
|
|
childTxSet.weight -= root.weight;
|
|
|
|
childTxSet.score = this.calcAncestorScore(child, childTxSet.fee, childTxSet.weight);
|
|
|
|
anyModified = true;
|
|
|
|
|
|
|
|
if (!childTxSet.modified) {
|
|
|
|
childTxSet.modified = true;
|
|
|
|
modified.push(child);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-18 21:03:21 +00:00
|
|
|
// recursively update grandchildren
|
|
|
|
if (child) {
|
|
|
|
anyModified = this.updateDescendants(root, child, mempool, txSets, modified) || anyModified;
|
|
|
|
}
|
2022-10-10 22:13:04 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
return anyModified;
|
|
|
|
}
|
|
|
|
|
2020-05-24 16:29:30 +07:00
|
|
|
private dataToMempoolBlocks(transactions: TransactionExtended[],
|
2021-08-14 03:24:31 +03:00
|
|
|
blockSize: number, blockWeight: number, blocksIndex: number): MempoolBlockWithTransactions {
|
2020-03-20 02:07:12 +07:00
|
|
|
let rangeLength = 4;
|
2020-02-16 22:15:07 +07:00
|
|
|
if (blocksIndex === 0) {
|
|
|
|
rangeLength = 8;
|
|
|
|
}
|
|
|
|
if (transactions.length > 4000) {
|
2020-03-20 02:07:12 +07:00
|
|
|
rangeLength = 6;
|
2020-02-16 22:15:07 +07:00
|
|
|
} else if (transactions.length > 10000) {
|
|
|
|
rangeLength = 8;
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
blockSize: blockSize,
|
2021-08-14 03:24:31 +03:00
|
|
|
blockVSize: blockWeight / 4,
|
2020-02-16 22:15:07 +07:00
|
|
|
nTx: transactions.length,
|
2020-03-17 21:53:20 +07:00
|
|
|
totalFees: transactions.reduce((acc, cur) => acc + cur.fee, 0),
|
2021-03-18 23:47:40 +07:00
|
|
|
medianFee: Common.percentile(transactions.map((tx) => tx.effectiveFeePerVsize), config.MEMPOOL.RECOMMENDED_FEE_PERCENTILE),
|
2020-05-24 16:29:30 +07:00
|
|
|
feeRange: Common.getFeesInRange(transactions, rangeLength),
|
2020-06-08 02:08:51 +07:00
|
|
|
transactionIds: transactions.map((tx) => tx.txid),
|
2022-05-30 17:29:30 +00:00
|
|
|
transactions: transactions.map((tx) => Common.stripTransaction(tx)),
|
2020-02-16 22:15:07 +07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default new MempoolBlocks();
|