EEMplekei / BlockChat

A blockchain from scratch
0 stars 0 forks source link

Change view_last_block to return genesis block #11

Closed ntua-el19096 closed 8 months ago

ntua-el19096 commented 8 months ago

Calls like "get_chain" and "get_chain_length" return the genesis block. view_last_block when called when only genesis block is on the chain returns "Could not get transactions from block". Change it to return the genesis block