• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vocdoni / vocdoni-node / 9108516493
61%
main: 63%

Build:
Build:
LAST BUILD BRANCH: fix-voconed-url
DEFAULT BRANCH: main
Ran 16 May 2024 07:59AM UTC
Jobs 2
Files 185
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2024 07:50AM UTC coverage: 60.998% (+0.03%) from 60.971%
9108516493

Pull #1307

github

altergui
refactor genesis package

* don't pass genesisBytes as arg on SetNode, NewVochain, newTendermint, etc

* notably, now cometbft has it's own datadir separate from our state,
  allowing to wipe cometbft data without wiping our state.

* drop genesis.AutoUpdateGenesis
* instead of comparing local and hardcoded genesis Hash, compare ChainID
  to decide wether to wipe out just cometbft, whole datadir, or do nothing
* cmd/node: add flags to override genesis ChainID, InitialHeight and AppHash
* cmd/node: add flag to schedule an EndOfChain

* move SeedNodes from genesis into config package (DefaultSeedNodes)
* add config consts: DefaultCometBFTPath and DefaultGenesisPath

* testsuite: use genesis.go instead of hardcoded genesis.json
    this increases the code coverage of testsuite and helps
    developing refactors of genesis.go
* now testsuite network is `test` (instead of `dev`)

* app.genesisDoc is now populated during newTendermint, instead of
  pulling from app.NodeClient.Genesis, since it's needed during Info() handshake

* cometbft: removed redundant app.State.SetHeight(lastHeight) during Info()

* cometbft: now Info() supports doing a chain bump, if genesis InitialHeight > lastHeight
* cometbft: now ProcessProposal supports stopping the current chain at height config.Forks.EndOfChain

* genesis: remove copypasted types, use upstream comettypes directly
* genesis: deduplicate ConsensusParams literals using DefaultBlockParams, etc
* genesis: remove useless hardcoded StateSyncParams
* genesis: add a simple unit test TestSaveAsAndLoad
Pull Request #1307: refactor genesis handling to allow changing ChainID

141 of 241 new or added lines in 11 files covered. (58.51%)

14 existing lines in 7 files now uncovered.

15990 of 26214 relevant lines covered (61.0%)

37416.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 integration - 9108516493.1 16 May 2024 07:59AM UTC 0
51.26
GitHub Action Run
2 unit - 9108516493.2 16 May 2024 07:59AM UTC 0
48.31
GitHub Action Run
Source Files on build 9108516493
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #1307
  • PR Base - main (#9060551363)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc