Skip to content

refactor: handshake block-replay mechanism#460

Merged
shotonoff merged 21 commits intov0.10-devfrom
refactor-handshake-replay
Sep 21, 2022
Merged

refactor: handshake block-replay mechanism#460
shotonoff merged 21 commits intov0.10-devfrom
refactor-handshake-replay

Conversation

@shotonoff
Copy link
Collaborator

@shotonoff shotonoff commented Sep 14, 2022

Issue being fixed or feature implemented

Block replay mechanism was written as a few long functions that complicates reading and supporting.

What was done?

  1. The goal of these changes is to decouple code responsible for a replay from Handshake
  2. Covered new code with unit tests

How Has This Been Tested?

Tests

Breaking Changes

N/A

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shotonoff shotonoff changed the title Refactor handshake replay refactor: handshake replay mechanism Sep 14, 2022
@shotonoff shotonoff changed the title refactor: handshake replay mechanism refactor: handshake block-replay mechanism Sep 14, 2022
@lklimek lklimek mentioned this pull request Sep 16, 2022
5 tasks
Copy link
Collaborator Author

@shotonoff shotonoff left a comment

Choose a reason for hiding this comment

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

made changes by feedback

@shotonoff shotonoff requested a review from lklimek September 19, 2022 13:06
wantNBlocks: 1,
},
{
// tenderdash state at the initial height, replayer does InitChain call to get initial-state form the app
Copy link
Collaborator

Choose a reason for hiding this comment

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

See #461 (comment) for some test scenarios to consider.

@shotonoff shotonoff merged commit 39a6429 into v0.10-dev Sep 21, 2022
@shotonoff shotonoff deleted the refactor-handshake-replay branch September 21, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants