Coder Social home page Coder Social logo

Inspect cosmos-sdk db? about iavl HOT 5 CLOSED

cosmos avatar cosmos commented on May 27, 2024
Inspect cosmos-sdk db?

from iavl.

Comments (5)

arnabmitra avatar arnabmitra commented on May 27, 2024

same? any insight?

from iavl.

cbarraford avatar cbarraford commented on May 27, 2024

For me, one of the devs put a timestamp into the chain (which isn't a good idea). That was the root cause in our case

from iavl.

erikgrinaker avatar erikgrinaker commented on May 27, 2024

Sorry for the late reply here! The Cosmos SDK may not be persisting data to disk, which is why you're seeing an empty database. I believe the default setting only persists every 100,000 heights, so during development you may want to change the pruning settings to persist every block to disk (--pruning nothing or something similar).

For me, one of the devs put a timestamp into the chain

That'll do it - glad to hear you found the problem!

Let us know if changing the pruning settings don't help.

from iavl.

cbarraford avatar cbarraford commented on May 27, 2024

good tip on the pruning. Also, worth noting that setting pruning on cosmos v0.37 is broken! (works in v0.38 though). So you can't have a pruning setting other than default on that version.

from iavl.

alexanderbez avatar alexanderbez commented on May 27, 2024

@cbarraford, 0.37 is marked as broken in the release. See the release notes. It's recommended to use 0.38.x

from iavl.

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.