@faustbrian/node-transaction-pool
v1.0.0
Published
An implementation of a transaction pool for node.js
Downloads
5
Readme
You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.
@faustbrian/node-transaction-pool
Installation
pnpm install @faustbrian/node-transaction-pool
Usage
import { Transaction, TransactionPool } from "@faustbrian/node-transaction-pool";
const transactionPool = new TransactionPool();
const transaction = new Transaction(1, 1, 1);
console.log(subject.size()) // 0
subject.push(transaction);
console.log(subject.size()) // 1
subject.pull(transaction.id());
console.log(subject.size()) // 0
License
This is an open-sourced software licensed under the AGPL-3.0-or-later.