Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

I just implemented the blockchain following this tutorial :

Building A Blockchain In .NET Core - Basic Blockchain[^]

Now the problem is that everytime i re-run my web application , the data is lost, therefore i need something that will store the whole blockchain

What I have tried:

i found etherum dapp with metamask but I do not think that this is the best solution.

Someone know a better what or what can i do to store my whole blockchain somewhere and get the data back.

Thanks
Posted
Updated 20-Apr-19 8:07am
Comments
[no name] 20-Apr-19 12:34pm    
Probably one of those "don't delete my data when I quit my app" settings in the property window for the data ...
Joe Doe234 20-Apr-19 13:45pm    
i will check it out , didnt now it was possible
Dave Kreskowiak 20-Apr-19 13:55pm    
How about asking the guy who wrote the blog post?

There is a discussion forum at the bottom of the post.

1 solution

I don't see anything that "serializes" the blockchain; the code you lifted does it all in memory only; that's why it's not persisted.

You'll have to write your own serializer / deserializer; synchronizer; embezzler; etc.
 
Share this answer
 
v2
Comments
Joe Doe234 23-Apr-19 4:36am    
can you help me with writing my won serialer/deserializer etc ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900