Giter Club home page Giter Club logo

Comments (2)

sabau avatar sabau commented on August 15, 2024

That's good! the goal of this test was to catch this kind of things.

The tar -xzf lcd_test/testdata/state.tar.gz -C /tmp/contract_tests/ command is completely overriding the .gaiad directory which is wrong.

Luckily that command does not override everything, only files that match their path:
in /tmp/contract_tests/.gaiad/config/:

  • addrbook.json
  • config.toml
  • genesis.json
  • gentx
  • node_key.json
  • priv_validator_key.json

If you try to launch locally the untar command you will see what's inside, some accounts in gaiacli and a validator with his private key in gaiad + a genesis

By changing the config.toml inside the state.tar.gz works, I ran a diff between the two configurations and the only meaningful difference is:

< db_backend = "goleveldb" # new version
---
> # Database backend: leveldb | memdb | cleveldb
> db_backend = "leveldb" # old version

The reason why the config.toml is here is to speed up the tests by reducing the timeouts, if you prefer we can achieve this with a few sed commands and keep generated config.toml

< timeout_propose = "3s"
< timeout_propose_delta = "500ms"
< timeout_prevote = "1s"
< timeout_prevote_delta = "500ms"
< timeout_precommit = "1s"
< timeout_precommit_delta = "500ms"
< timeout_commit = "5s"
---
> timeout_propose = "200ms"
> timeout_propose_delta = "200ms"
> timeout_prevote = "500ms"
> timeout_prevote_delta = "100ms"
> timeout_precommit = "200s"
> timeout_precommit_delta = "200ms"
> timeout_commit = "500ms"

from gaia.

sabau avatar sabau commented on August 15, 2024

Just made a PR for that, I just removed the config.toml from the targz and added few sed to achieve the speedup, the tests itself seems happy again: https://circleci.com/gh/cosmos/gaia/2637

from gaia.

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.