EEMplekei / BlockChat

A blockchain from scratch
0 stars 0 forks source link

Modify /get_chain endpoint to show more info #33

Closed ntua-el19001 closed 8 months ago

ntua-el19001 commented 8 months ago

Add to response of /get_chain endpoint more info such as sum of transactions' amount and the amount of fees that the validator has earned from this block.

ntua-el19848 commented 8 months ago

fixed in branch 30

ntua-el19848 commented 8 months ago

need another check to add the transaction.amount in total_fees to validator in block.py (get_total_fees) only if

transaction.type_of_transaction != TransactionType.INITIAL