Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Import/Export Simulation Errors #4607

Merged
merged 13 commits into from
Jun 28, 2019
Merged

Conversation

fedekunze
Copy link
Collaborator

@fedekunze fedekunze commented Jun 21, 2019

closes #4535

cc: @npinto

  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.

  • Wrote tests

  • Updated relevant documentation (docs/)

  • Added a relevant changelog entry: clog add [section] [stanza] [message]

  • rereviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@codecov
Copy link

codecov bot commented Jun 21, 2019

Codecov Report

Merging #4607 into master will increase coverage by 0.48%.
The diff coverage is 98.21%.

@@            Coverage Diff            @@
##           master   #4607      +/-   ##
=========================================
+ Coverage   54.11%   54.6%   +0.48%     
=========================================
  Files         260     260              
  Lines       16371   16530     +159     
=========================================
+ Hits         8859    9026     +167     
+ Misses       6866    6858       -8     
  Partials      646     646

@fedekunze fedekunze marked this pull request as ready for review June 24, 2019 15:48
@fedekunze fedekunze requested a review from sabau June 24, 2019 15:49
@fedekunze fedekunze changed the title improve simulation errors R4R: improve simulation errors Jun 24, 2019
@alexanderbez alexanderbez changed the title R4R: improve simulation errors Improve Import/Export Simulation Errors Jun 24, 2019
simapp/sim_test.go Show resolved Hide resolved
simapp/test_util.go Outdated Show resolved Hide resolved
simapp/test_util.go Outdated Show resolved Hide resolved
@fedekunze fedekunze changed the title Improve Import/Export Simulation Errors WIP: Improve Import/Export Simulation Errors Jun 27, 2019
simapp/test_util.go Outdated Show resolved Hide resolved
var (
ValidatorSigningInfoKey = []byte{0x01} // Prefix for signing info
ValidatorMissedBlockBitArrayKey = []byte{0x02} // Prefix for missed block bit array
ValidatorSlashingPeriodKey = []byte{0x03} // Prefix for slashing period
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this key was not being used

@fedekunze fedekunze changed the title WIP: Improve Import/Export Simulation Errors Improve Import/Export Simulation Errors Jun 28, 2019
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

ACK -- although generally I still think this approach is brittle. There has to be a better way :-/

Copy link
Contributor

@alessio alessio left a comment

Choose a reason for hiding this comment

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

Agree with bez here, this looks a tad suboptimal yet a reasonable compromise for the time being.
Nihil instant from me, merging.

@alessio alessio merged commit 4a0fbb3 into master Jun 28, 2019
@alessio alessio deleted the fedekunze/4535-simulation branch June 28, 2019 18:20
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Import/Export Simulation Errors
3 participants