As a user, I want the blockchain to use a data structure that is O(1) for appending blocks so that performance doesn't suffer when there are many blocks in the chain.
I used a linked list because it was quick to implement. We can just switch it to a circular doubly linked list and be fine.
As a user, I want the blockchain to use a data structure that is O(1) for appending blocks so that performance doesn't suffer when there are many blocks in the chain.
I used a linked list because it was quick to implement. We can just switch it to a circular doubly linked list and be fine.