Skip to content

Support tendermint 0.31 - #217

Merged
troggy merged 11 commits into
masterfrom
tendermint31
Mar 28, 2019
Merged

troggy merged 11 commits into
masterfrom
tendermint31

Conversation

@pinkiebell

@pinkiebell pinkiebell commented Mar 21, 2019 •

Copy link
Copy Markdown
Contributor

A few small changes.

  • Fix create_empty_blocks and make sure we do not
    submit duplicate validator (pubKey) entries to abci.
  • abci.commit returns maybe a wrong appHash,
    because returning nothing does not give empty blocks anymore
  • Add a little timeout of 300ms to the period handler,
    this fixes a race condition if period submission is fast (from
    blockHandler)

Related #184

@codecov

codecov Bot commented Mar 21, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #217 into master will increase coverage by 0.32%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #217      +/-   ##
==========================================
+ Coverage   91.54%   91.86%   +0.32%     
==========================================
  Files          58       58              
  Lines         769      787      +18     
  Branches      136      141       +5     
==========================================
+ Hits          704      723      +19     
  Misses         58       58              
+ Partials        7        6       -1
Impacted Files Coverage Δ
src/api/methods/getAddress.js 0% <ø> (ø) ⬆️
src/period/index.js 100% <100%> (ø) ⬆️
src/bridgeState.js 68% <0%> (-0.92%) ⬇️
src/txHelpers/submitPeriod.js 89.36% <0%> (+10.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d86376f...07945f6. Read the comment docs.

@troggy

troggy commented Mar 26, 2019

Copy link
Copy Markdown
Member

@pinkiebell added a small fix.. please take a look

Comment thread src/utils/cleanupLotion.js Outdated
await rimraf(path.join(configPath, 'config.toml'));
await rimraf(path.join(configPath, 'genesis.json'));
fs.mkdirSync(dataPath);
await writeFile(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't tendermint takes care of that? 🤔

@troggy troggy Mar 26, 2019 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with --fresh we want to drop everything but the key. If we leave only priv_validator_key.json, tendermint will complain about missing state file.

It wasn't an issue before because of different priv_validator format (no separate state file)

pinkiebell and others added 8 commits March 26, 2019 18:58
A few small changes.

Fix create_empty_blocks and make sure we do not
submit duplicate validator (pubKey) entries to abci.

Related #184
- `abci.commit` returns *maybe* a wrong appHash,
  because returning nothing does not give empty blocks anymore
- Add a little timeout of 300ms to the period handler,
  this fixes a race condition if period submission is fast (from
  blockHandler)
@troggy
troggy merged commit a326d04 into master Mar 28, 2019
@troggy

troggy commented Mar 28, 2019

Copy link
Copy Markdown
Member

🤞

@troggy
troggy deleted the tendermint31 branch March 28, 2019 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants