Giter Site home page Giter Site logo

Comments (6)

davidmurdoch avatar davidmurdoch commented on August 16, 2024

The ganache-cli has is deprecated. Use the ganache package instead. That said, ganache is no longer maintained.

In both packages the --db option saves the blockchain state.

from ganache.

111Seven avatar 111Seven commented on August 16, 2024

When I create the database using ganache/ganache-cli, why my database contains only these files: 000003.txt, CURRENT, LOCK, LOG, MANIFEST-000002.....this behavior is very recent, before this..I used to get several files.....!blockHashes!0x.., !blockLogs!0 and so on...Am I doing something wrong while creating the database...
I am using the command: ganache -h 127.0.0.1 -0 7545 -m "my mnemonic" --db path/to/db --hardfork london

from ganache.

davidmurdoch avatar davidmurdoch commented on August 16, 2024

That change happened in Ganache v7.0.0 back in Jan 20, 2022.

from ganache.

111Seven avatar 111Seven commented on August 16, 2024

oh, thank you for the response. Is it possible to create the database in the old style? If not, is there a way to make the text file in the newer version readable? Once again I appreciate your time..

from ganache.

davidmurdoch avatar davidmurdoch commented on August 16, 2024

Is it possible to create the database in the old style?

No

If not, is there a way to make the text file in the newer version readable?

It's a binary format now. Its only readable by Ganache. If you want to try to read it yourself you could use a leveldb reader like https://fastonosql.com/. But even then the data is packed tightly so it won't be meaningful without proper deserialization (which is built into Ganache).

Your best way forward would be to scrape the DB by calling Ganache's JSON-RPC methods.

from ganache.

111Seven avatar 111Seven commented on August 16, 2024

Okay, thank you for the information!

from ganache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.