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

Problem: (CRO-280) chain-abci init panics with raw genesis hash rather than hex-encoded#478

Merged
bors[bot] merged 1 commit intocrypto-com:masterfrom
linfeng-crypto:cro-143
Oct 17, 2019
Merged

Problem: (CRO-280) chain-abci init panics with raw genesis hash rather than hex-encoded#478
bors[bot] merged 1 commit intocrypto-com:masterfrom
linfeng-crypto:cro-143

Conversation

@linfeng-crypto
Copy link
Copy Markdown
Contributor

Solution:

  1. encode the raw hash data into string
  2. if the raw hash is None, use "None"
  3. make the log into a single line
  4. use "{}" instead of "{:?}" in string format

@tomtau tomtau changed the title Problem: (CRO-280) chain-abci init panics with raw genesis hash rather than he… Problem: (CRO-280) chain-abci init panics with raw genesis hash rather than hex-encoded Oct 17, 2019
Copy link
Copy Markdown
Contributor

@tomtau tomtau left a comment

Choose a reason for hiding this comment

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

a small formatting issue (should be fixable with cargo fmt): https://travis-ci.org/crypto-com/chain/jobs/598970683#L1549

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 17, 2019

Codecov Report

Merging #478 into master will decrease coverage by 0.04%.
The diff coverage is 15.38%.

@@            Coverage Diff            @@
##           master    #478      +/-   ##
=========================================
- Coverage   65.55%   65.5%   -0.05%     
=========================================
  Files         117     117              
  Lines       13516   13525       +9     
=========================================
  Hits         8860    8860              
- Misses       4656    4665       +9
Impacted Files Coverage Δ
chain-abci/src/app/app_init.rs 69.34% <15.38%> (-2.08%) ⬇️
client-core/src/synchronizer/auto_synchronizer.rs 53.19% <0%> (-0.71%) ⬇️

@tomtau
Copy link
Copy Markdown
Contributor

tomtau commented Oct 17, 2019

@linfeng-crypto looks ok, just squash the commit

@tomtau
Copy link
Copy Markdown
Contributor

tomtau commented Oct 17, 2019

bors r+

bors bot added a commit that referenced this pull request Oct 17, 2019
478: Problem: (CRO-280) chain-abci init panics with raw genesis hash rather than hex-encoded r=tomtau a=linfeng-crypto

Solution:
1. encode the raw hash data into string 
2. if the raw hash is None, use "None"
3. make the log into a single line
4. use "{}" instead of "{:?}" in string format

479: Problem: HW-mode SGX tests not executed in CI (CRO-204) r=tomtau a=tomtau

Solution: added additional drone pipeline that executes the basic tx-validation test in HW mode

482: Problem: (CRO-493) Compilation fails with sled 0.29.1 r=tomtau a=devashishdxt

Solution: Updated sled to latest version and made all the required changes

Co-authored-by: linfeng.yuan <linfeng@crypto.com>
Co-authored-by: Tomas Tauber <2410580+tomtau@users.noreply.github.com>
Co-authored-by: Devashish Dixit <devashish@crypto.com>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Oct 17, 2019

Build failed (retrying...)

bors bot added a commit that referenced this pull request Oct 17, 2019
478: Problem: (CRO-280) chain-abci init panics with raw genesis hash rather than hex-encoded r=tomtau a=linfeng-crypto

Solution:
1. encode the raw hash data into string 
2. if the raw hash is None, use "None"
3. make the log into a single line
4. use "{}" instead of "{:?}" in string format

Co-authored-by: linfeng.yuan <linfeng@crypto.com>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Oct 17, 2019

Build succeeded

@bors bors bot merged commit 4fa451e into crypto-com:master Oct 17, 2019
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