Skip to content

Join Peer By Snapshot #214

@Tubar2

Description

@Tubar2

Is your proposal related to a problem?

I have recently implemented the methods for creating, canceling and listing snapshot requests from peers, however there is no support for joining a peer using this snapshot.

Describe the solution you'd like

I would like to implement a JoinPeerBySnapshot method that receives a snapshot and joins a given peer to the channel, using it.

Scenario:
Given I have a snapshot
When I call `JoinPeerBySnapshot`
Then the peer joins the channel

Additional context

It would be interesting to test this feature using the e2e test. Since the test-network uses the fabric-samples test-network I'm not sure how to proceed.

I thought it could be something along the lines of:

  1. Start test-network with a second peer form org1:peer1.org1.example.com
  2. Create Channel using the e2e test
  3. Join peer0.org1 to mychannel
  4. Create Snapshot with peer0.org1
  5. Join peer1.org1 using Snapshot

The rest of the test would be the same

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions