我实际上正在和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.