Giter Club home page Giter Club logo

Comments (8)

zura35 avatar zura35 commented on August 30, 2024

Hi @llwinner would you let me know which branch you are running on? Thanks!

from callisto.

zura35 avatar zura35 commented on August 30, 2024

On the other hand, as I looked up the repository, it might be an expected condition? There are two possible places that would INSERT INTO validator:

  1. in staking.HandleGenesis(...), it will save validators details to both validator and validator_info tables which will only be triggered upon genesis file parsed
  2. in staking.HandleBlock(...), it will save validators details to validator and validator_status which will be done upon worker receiving new blocks

Did you run bdjuno parse genesis-file before starting or can you purge the database, run the genesis parse command and check if validators have been persister after the parsing? Thanks!

from callisto.

llwinner avatar llwinner commented on August 30, 2024

@zura35 Thanks for your reply, my bdjuno branch is chains/cosmos/mainnet
My cosmos version is 0.46.7
image
I used ignite to create an empty chain, there were no transactions
Before I started the database, I run bdjuno parse genesis-file. There were no outputs after I run bdjuno parse genesis-file.

from callisto.

zura35 avatar zura35 commented on August 30, 2024

Hi @llwinner I think this is expected to not be able to fetch any validators upon genesis file parsed

I have tried to initiate a new chain with ignite scaffold chain example, and this is the genesis file created from the serve command:
Screenshot 2023-09-18 at 1 23 48 PM

Please see if this answer your question 🙏

from callisto.

llwinner avatar llwinner commented on August 30, 2024

@zura35 My genesis.json is the same
image
My empty chain has run for several days, block height was 18381, but still not get the validator data...

from callisto.

zura35 avatar zura35 commented on August 30, 2024

Hi @llwinner yes, the genesis file contains the details of you genesis block, as yours is the same as mine, this explains why you have empty validator_info from point 1 stated here

Going back to your original question where you see 0 active validators but a few rows in the validator table, you can actually look up the validator_status table to see if they are jailed 🙏

from callisto.

nsonanh avatar nsonanh commented on August 30, 2024

Hi, I have the same problem, none of the validators are jailed but they are not displayed. Average block time is also 0.

from callisto.

nsonanh avatar nsonanh commented on August 30, 2024

@llwinner FYI I have fixed it by updating the config.yml file with more modules:

...
    modules:
        - messages
        - auth
        - bank
        - consensus
        - feegrant
        - gov
        - mint
        - modules
        - pricefeed
        - staking
        - slashing
        - distribution
        - daily refetch
        - wasm
...

Now it's showing validators and average block time:
image

from callisto.

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.