Skip to content

Commit

Permalink
fixup! Deliver reads blocks instead of filtered blocks
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Nov 13, 2024
1 parent e13eec4 commit a2f3d55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform/fabric/core/generic/channelprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ type provider struct {
newLedger LedgerConstructor
newRWSetLoader RWSetLoaderConstructor
newCommitter CommitterConstructor
useFilteredDelivery bool
}

func NewChannelProvider(
Expand All @@ -98,6 +99,7 @@ func NewChannelProvider(
newLedger LedgerConstructor,
newRWSetLoader RWSetLoaderConstructor,
newCommitter CommitterConstructor,
useFilteredDelivery bool,
) *provider {
return &provider{
kvss: kvss,
Expand All @@ -113,6 +115,7 @@ func NewChannelProvider(
newLedger: newLedger,
newRWSetLoader: newRWSetLoader,
newCommitter: newCommitter,
useFilteredDelivery: useFilteredDelivery,
}
}

Expand Down Expand Up @@ -147,7 +150,7 @@ func (p *provider) NewChannel(nw driver.FabricNetworkService, channelName string
nw.LocalMembership().DefaultSigningIdentity(),
p.hasher,
channelConfig.FinalityWaitTimeout(),
true,
p.useFilteredDelivery,
)
if err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions platform/fabric/sdk/dig/generic/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,6 @@ func NewChannelProvider(in struct {
ledger.New,
rwset.NewLoader,
committer.New,
true,
)
}

0 comments on commit a2f3d55

Please sign in to comment.