hyperledger / hyperledger/fabric-admin-sdk

Join Peer By Snapshot

Open
#214 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
36
Forks
28
Avg merge
26m
Merged PRs (30d)
2

Description

### 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.