I am trying to create a blockchain based cryptocurrancy in c#. I have my blockchain class built but I realize on big problem with the current implementation. The blockchain is stored in memory in a List>. The problem I see with this is that the length of the list is a 32 bit signed integer. This is a problem if the chain get too big. Is there a way of making a List<> that has a maximum length of 9,223,372,036,854,775,807
The current way of storing the blockchain is by initializing
static Dictionary<string, Socket[]> connections = new Dictionary<string, Socket[]>();
and adding a new Dictionary for every block