Skip to content

Commit dbfd375

Browse files
committed
fixup! config service
Signed-off-by: Angelo De Caro <[email protected]>
1 parent f835a08 commit dbfd375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/fabric/core/generic/committer/committer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (c *Committer) IsFinal(ctx context.Context, txID string) error {
172172
case driver.HasDependencies:
173173
logger.Debugf("Tx [%s] is unknown with deps [%v]", txID, deps)
174174
if len(deps) == 0 {
175-
return c.Finality.IsFinal(txID, c.Network.PickPeer(driver.PeerForFinality).Address)
175+
return c.Finality.IsFinal(txID, c.Network.ConfigService().PickPeer(driver.PeerForFinality).Address)
176176
}
177177
for _, id := range deps {
178178
logger.Debugf("Check finality of dependant transaction [%s]", id)
@@ -191,7 +191,7 @@ func (c *Committer) IsFinal(ctx context.Context, txID string) error {
191191
if logger.IsEnabledFor(zapcore.DebugLevel) {
192192
logger.Debugf("Tx [%s] is unknown with no deps, remote check [%d][%s]", txID, iter, debug.Stack())
193193
}
194-
peer := c.Network.PickPeer(driver.PeerForFinality).Address
194+
peer := c.Network.ConfigService().PickPeer(driver.PeerForFinality).Address
195195
err := c.Finality.IsFinal(txID, peer)
196196
if err == nil {
197197
logger.Debugf("Tx [%s] is final, remote check on [%s]", txID, peer)

0 commit comments

Comments
 (0)