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

Add getrawsnapshot RPC #880

Merged

Conversation

kostyantyn
Copy link
Member

In functional tests we use p2p interface to retrieve the snapshot
before broadcasting to other nodes. It works fine but now we want to
extend tests and broadcast the valid snapshot but which is not
part of the finalized epoch. The issue is that from p2p we can't
receive the non-finalized snapshot to simulate this scenario
and it's needed in the #852

Having an RPC command to retrieve any available snapshot
will help us to test the sync after we introduced commits

Signed-off-by: Kostiantyn Stepaniuk kostia@thirdhash.com

In functional tests we use p2p interface to retrieve the snapshot
before broadcasting to other nodes. It works fine but now we want to
extend tests and broadcast the valid snapshot but which is not
part of finalized epoch. The issue is that from p2p we can't
receive the non-finalized snapshot to simulate this scenario.

Having an RPC command to retrieve any available snapshot
will help us to extend fast sync tests.

Signed-off-by: Kostiantyn Stepaniuk <kostia@thirdhash.com>
@kostyantyn kostyantyn added the rpc label Apr 2, 2019
@kostyantyn kostyantyn requested a review from frolosofsky April 2, 2019 14:00
@frolosofsky frolosofsky requested a review from a team April 2, 2019 14:16
Copy link
Member

@Gnappuraz Gnappuraz left a comment

Choose a reason for hiding this comment

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

utACK 9554954

Copy link
Member

@scravy scravy left a comment

Choose a reason for hiding this comment

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

utACK 9554954

Copy link
Member

@frolosofsky frolosofsky left a comment

Choose a reason for hiding this comment

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

utACK 9554954

@frolosofsky frolosofsky merged commit e8f7575 into dtr-org:master Apr 3, 2019
@frolosofsky frolosofsky deleted the allow_to_retrieve_snapshot_via_rpc branch April 3, 2019 06:33
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.

4 participants