Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Problem: dev-utils generates incorrect app hash #703

Merged
merged 1 commit into from
Dec 19, 2019

Conversation

yihuang
Copy link
Collaborator

@yihuang yihuang commented Dec 19, 2019

Solution:

  • dev-utils use genesis_time from genesis.json, rather than dev-utils.json
  • Remove genesis_time field from dev-utils.json

Solution:
- dev-utils use `genesis_time` from `genesis.json`, rather than `dev-utils.json`
- Remove `genesis_time` field from `dev-utils.json`
@codecov
Copy link

codecov bot commented Dec 19, 2019

Codecov Report

Merging #703 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #703      +/-   ##
=========================================
+ Coverage   70.08%   70.1%   +0.01%     
=========================================
  Files         131     131              
  Lines       16597   16592       -5     
=========================================
- Hits        11632   11631       -1     
+ Misses       4965    4961       -4
Impacted Files Coverage Δ
dev-utils/src/commands/genesis_dev_config.rs 0% <ø> (ø) ⬆️
dev-utils/src/commands/genesis_command.rs 0% <0%> (ø) ⬆️
dev-utils/src/commands/init_command.rs 0% <0%> (ø) ⬆️
chain-core/src/tx/fee/mod.rs 87.68% <0%> (-0.5%) ⬇️

@tomtau
Copy link
Contributor

tomtau commented Dec 19, 2019

bors r+

bors bot added a commit that referenced this pull request Dec 19, 2019
703: Problem: dev-utils generates incorrect app hash r=tomtau a=yihuang

Solution:
- dev-utils use `genesis_time` from `genesis.json`, rather than `dev-utils.json`
- Remove `genesis_time` field from `dev-utils.json`


704: Problem (CRO-668): app hash keep changing on every empty block r=tomtau a=yihuang

Solution:
- Fix the bug: `last_distribution_time` not updated after rewards distribution.
- Added unit testing to prevent this happen again.


Co-authored-by: yihuang <yi.codeplayer@gmail.com>
@bors
Copy link
Contributor

bors bot commented Dec 19, 2019

@bors bors bot merged commit 93e8f94 into crypto-com:master Dec 19, 2019
@yihuang yihuang deleted the CRO-666 branch December 19, 2019 08:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants