EEMplekei / BlockChat

A blockchain from scratch
0 stars 0 forks source link

Change proof of stake impementation #7

Closed ntua-el19096 closed 8 months ago

ntua-el19096 commented 8 months ago

Each stake is broadcasted as coins transaction with a special receiver address.

Each node keeps a list of each others' nodes stakes. When executing the transactions for a new block the stake transactions don't update the balance (on the other hand the do update the tempbalance so that one node cannot spend more). When a node sends a new stake in the same round, we overwrite its last stake transaction (so as not to have stake spams in the transactions)

ntua-el19848 commented 8 months ago

Changed direction. Now all the above is implemented. The rest have to be done:

!!! Keep in mind right now: The implementation has be done in a way that the staking is about the current block lottery !!!

ntua-el19848 commented 8 months ago

Fixed by @ntua-el19001 in commit

SHA b88c91de8aee754465660002dc483a550287493e