如何存储blokchain块和retreive数据? [英] How to store blokchain block and retreive data?
问题描述
HI,
我刚刚在本教程后面实现了区块链:
在.NET核心中构建区块链 - 基本区块链 [ ^ ]
现在的问题是,每次我重新运行我的网络应用程序时,数据都会丢失,因此我需要一些能存储整个区块链的东西
我尝试过的事情:
i找到带有metamask的以太网dapp,但我不知道认为这是最好的解决方案。
有人知道我可以做些什么或怎么做才能将我的整个区块链存放到某处并获取数据。
谢谢
我没有看到任何序列化bl的内容ockchain;你解除的代码只在记忆中完成;这就是为什么它不会持久存在。
你必须编写自己的序列化器/解串器;同步;贪污犯;等
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
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.
这篇关于如何存储blokchain块和retreive数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!