nooschain / chain/mempool / addTransaction
Function: addTransaction()
addTransaction(
transaction,database?):Promise<void>
Defined in: chain/mempool.ts:57
Adds a new transaction to the mempool by inserting it into the transactions table with a status of "pending" and adding an entry to the mempool_transactions table.
Parameters
transaction
The transaction to add to the mempool.
database?
ChainDatabase = db
The database instance to use for the operation.
Returns
Promise<void>