Built a bitcoin block constructor using typescript.
Bitcoin miners construct blocks by selecting a set of transactions from their mempool. Each transaction in the mempool:
- Includes a fee, which is collected by the miner if that transaction is included in a block.
- Has a weight, indicating the size of the transaction.
- May have one or more parent transactions, which are also in the mempool.
The miner selects an ordered list of transactions with a combined weight below the maximum block weight. Transactions with parent transactions in the mempool may be included in the list, but only if all of their parents appear before them in the list.
$ npm install
$ npm run dev
$ npm run build
$ npm run start
$ npm test