EEMplekei / BlockChat

A blockchain from scratch
0 stars 0 forks source link

16 proof of stake next block validator a different approach #23

Closed ntua-el19001 closed 8 months ago

ntua-el19001 commented 8 months ago

In this branch we have implemented the new approach in the Proof of Stake protocol. In this approach all nodes that, want to participate in "mining" (i.e validators in our case) stake an amount in a current block for the next block. Besides in this branch we have integrate the fees logic. From the beginning of a new block we know the validator, each transaction (except stakes) corresponds to two transaction -the original one and a transaction for fee-.