Giter Site home page Giter Site logo

testnet's People

Contributors

hdac-hmh avatar hdactech avatar minho-hdac avatar mr-k-validator avatar n0okone avatar russel-vivier avatar yoosah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

testnet's Issues

Issue with "pagination.limit" when querying with Rest-API

Describe the bug
pagination.limit option doesn't work properly in some rest-api
Below is an example for /cosmos/base/tendermint/v1beta1/validatorsets/.
There are currently 125 active validators on the network, but only 100 are queried.

To Reproduce

$ curl -s localhost:1317/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.limit=1
{
  "block_height": "346116",
  "validators": [
    {
      "address": "rizonvalcons10gf5ht2ppn59ldza3lmzntnkph8g4xf4z7d0ju",
      "pub_key": {
        "@type": "/cosmos.crypto.ed25519.PubKey",
        "key": "yJDSb+Rg8F3gv1ToYtcl4bLZCnXvC1bU/JlCb3w9NYI="
      },
      "voting_power": "1004565",
      "proposer_priority": "722908"
    }
  ],
  "pagination": null
}
$ curl -s localhost:1317/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.limit=100 | jq .validators[99]
{
  "address": "rizonvalcons1n0j5gp5waarswz20a033tks68yqttyate6a4yg",
  "pub_key": {
    "@type": "/cosmos.crypto.ed25519.PubKey",
    "key": "+LZpUaNy4A6UP+36TsPGsQc8vsw9sb2d+Ucak/ap3vg="
  },
  "voting_power": "5692",
  "proposer_priority": "-1414328"
}
$ curl -s localhost:1317/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.limit=200 | jq .validators[100]
null

Context & versions
Network: groot-011

$ rizond version --long
name: rizon
server_name: rizond
version: v0.2.3
commit: d119dfc0c8d7a44f12dc4c06b2413936a748f75e
build_tags: Linux
go: go version go1.15.11 linux/amd64

Node died

  • CPU: 8 core
  • memory: 32 G
  • swap: 2G
  • ulimit -n: 1024
  • Logs:
    panic: open /root/.rizon/data/cs.wal: too many open files
    goroutine 63021 [running]:
    github.com/tendermint/tendermint/libs/autofile.(*Group).readGroupInfo(0xc00b0cd760, 0x0, 0x0, 0x0, 0x0)
    /root/go/pkg/mod/github.com/tendermint/[email protected]/libs/autofile/group.go:365 +0x52b
    github.com/tendermint/tendermint/libs/autofile.(*Group).checkTotalSizeLimit(0xc00b0cd760)
    /root/go/pkg/mod/github.com/tendermint/[email protected]/libs/autofile/group.go:274 +0x69
    github.com/tendermint/tendermint/libs/autofile.(*Group).processTicks(0xc00b0cd760)
    /root/go/pkg/mod/github.com/tendermint/[email protected]/libs/autofile/group.go:245 +0x85
    created by github.com/tendermint/tendermint/libs/autofile.(*Group).OnStart
    /root/go/pkg/mod/github.com/tendermint/[email protected]/libs/autofile/group.go:140 +0x68

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.