https://github.com/clary09/summer_of_bitcoin_challenge
Summer of Bitcoin Task
https://github.com/clary09/summer_of_bitcoin_challenge
Last synced: about 2 months ago
JSON representation
Summer of Bitcoin Task
- Host: GitHub
- URL: https://github.com/clary09/summer_of_bitcoin_challenge
- Owner: clary09
- Created: 2021-06-13T09:26:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-13T09:36:12.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T19:43:14.508Z (4 months ago)
- Language: Python
- Homepage:
- Size: 442 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# summer_of_bitcoin_challenge
Bitcoin miners construct blocks by selecting a set of transactions from their mempool. Each transaction in the mempool:
1. includes a fee which is collected by the miner if that transaction is included in a block
2. has a weight , which indicates the size of the transaction
3. may have one or more parent transactions which are also in the mempool### This transaction.py reads a file mempool.csv, with the format:
txid,fee,weight,parent_txids### The output from the program is txids, separated by newlines, which make a valid block, maximizing the fee to the miner.
### The txids are arranged in descending order of their fees.
### The block.text displays the output of the code.