tylermzeller / pychain

An experimental blockchain in Python
MIT License
0 stars 0 forks source link

Transaction fees #5

Closed tylermzeller closed 6 years ago

tylermzeller commented 6 years ago

Users should be able to specify a fee to miners. An initial implementation could include a default fee in every transaction. Fees are implicitly calculated (i.e. don't show up in the tx as a new field) by input total - output total. The fee amount then gets added to the coinbase reward that the miner includes in the block.

Later implementations should allow a user to adjust the fee themselves.

tylermzeller commented 6 years ago

Default fees added in 708f4eb

tylermzeller commented 6 years ago

Fees now calculated by miners and added to coinbase abcfceb

tylermzeller commented 6 years ago

Fees now properly functioning in 12eb9c7