ganache在哪里存储以太坊区块链

我实际上正在和Ganache一起使用松露做一些开发.

我想知道Ganache在哪里存储区块链,看看我的测试使用了多少数据.它存放在PC上可以访问的地方吗?

我正在使用

> Ubuntu 17.10 64位
> ganache-1.0.1-x86_64

解决方法

TestRPC曾经只是在内存中.他们最近才发布了将区块链写入文件系统的支持.据我所知,内存实现仍然是默认行为.如果要查找区块链文件,可以使用–db选项自行指定位置.

从他们的release page(在v4.0.0下):

Because we backed the TestRPC via the filesystem,this means you can now save your blockchain’s data for later use. That’s right,if you close the TestRPC and reopen it later,say,you can start up right where you left off. You’ll need to use the new –db option (see the README) to tell the TestRPC where you’d like the data saved. You’ll also likely want to use the –mnemonic option to use the same accounts each time.

相关文章

文章浏览阅读903次。文章主要介绍了收益聚合器Beefy协议在币...
文章浏览阅读952次。比特币的主要思路是,构建一个无中心、去...
文章浏览阅读2.5k次。虚拟人从最初的不温不火,到现在步入“...
文章浏览阅读1.3k次,点赞25次,收藏13次。通过调查和分析用...
文章浏览阅读1.7k次。这个智能合约安全系列提供了一个广泛的...
文章浏览阅读1.3k次。本文描述了比特币核心的编译与交互方法...