Skip to content

Commit 797abb3

Browse files
authored
added to OSN new handler for fetch a block of channel (hyperledger#5290)
part 2 Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
1 parent dcd0ff3 commit 797abb3

File tree

12 files changed

+544
-62
lines changed

12 files changed

+544
-62
lines changed

cmd/osnadmin/mocks/channel_management.go

Lines changed: 79 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/osnadmin/osnadmin_suite_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type channelManagement interface {
2323
JoinChannel(channelID string, configBlock *cb.Block) (types.ChannelInfo, error)
2424
UpdateChannel(channelID string, configUpdateEnvelope *cb.Envelope) (types.ChannelInfo, error)
2525
RemoveChannel(channelID string) error
26+
FetchBlock(channelID string, blockID string) (*cb.Block, error)
2627
}
2728

2829
func TestOsnadmin(t *testing.T) {

orderer/common/channelparticipation/mocks/channel_management.go

Lines changed: 79 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)