yago-123 / chainnet

Blockchain built from scratch
0 stars 0 forks source link

Make validation current position agnostic #52

Open yago-123 opened 1 month ago

yago-123 commented 1 month ago

When we use the validator we make use of functions like GetLastBlock(). This is OK for now, but this should be removed and make use of position based functions, like GetHeaderByHeight.

This is required so that if we need to reestructure the chain, we can make use of validators correctly.