Skip to content

Commit 878ba76

Browse files
committed
FSC update
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent 13da279 commit 878ba76

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/gin-gonic/gin v1.10.0
1010
github.com/gobuffalo/packr/v2 v2.7.1
1111
github.com/hashicorp/go-uuid v1.0.3
12-
github.com/hyperledger-labs/fabric-smart-client v0.4.1-0.20250214055839-7d5b5ffc30ad
12+
github.com/hyperledger-labs/fabric-smart-client v0.4.1-0.20250214133530-c1156da661a1
1313
github.com/hyperledger-labs/orion-sdk-go v0.2.10
1414
github.com/hyperledger-labs/orion-server v0.2.10
1515
github.com/hyperledger/fabric v1.4.0-rc1.0.20230405174026-695dd57e01c2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,8 @@ github.com/hidal-go/hidalgo v0.0.0-20201109092204-05749a6d73df/go.mod h1:bPkrxDl
10571057
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
10581058
github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc=
10591059
github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8=
1060-
github.com/hyperledger-labs/fabric-smart-client v0.4.1-0.20250214055839-7d5b5ffc30ad h1:tG516lDRzkK45gAG7Md2/ihSJNjpjLKp14iHjqyscBM=
1061-
github.com/hyperledger-labs/fabric-smart-client v0.4.1-0.20250214055839-7d5b5ffc30ad/go.mod h1:EdiA1cY2eOOZjqPlutIlFPkueUMMJOxLoiRH5KwOW1c=
1060+
github.com/hyperledger-labs/fabric-smart-client v0.4.1-0.20250214133530-c1156da661a1 h1:VB5bA7u7CPSXGvNEWrVEj2qRqnrVJq7D+YV1yAu7k20=
1061+
github.com/hyperledger-labs/fabric-smart-client v0.4.1-0.20250214133530-c1156da661a1/go.mod h1:EdiA1cY2eOOZjqPlutIlFPkueUMMJOxLoiRH5KwOW1c=
10621062
github.com/hyperledger-labs/orion-sdk-go v0.2.10 h1:lFgWgxyvngIhWnIqymYGBmtmq9D6uC5d0uLG9cbyh5s=
10631063
github.com/hyperledger-labs/orion-sdk-go v0.2.10/go.mod h1:iN2xZB964AqwVJwL+EnwPOs8z1EkMEbbIg/qYeC7gDY=
10641064
github.com/hyperledger-labs/orion-server v0.2.10 h1:G4zbQEL5Egk0Oj+TwHCZWdTOLDBHOjaAEvYOT4G7ozw=
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
Copyright IBM Corp. All Rights Reserved.
3+
4+
SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
package finality
8+
9+
import (
10+
"context"
11+
12+
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric"
13+
)
14+
15+
type Delivery struct {
16+
*fabric.Delivery
17+
}
18+
19+
func (d *Delivery) ScanBlock(background context.Context, callback fabric.BlockCallback) error {
20+
return d.Delivery.ScanBlock(background, callback)
21+
}

token/services/network/fabric/finality/deliveryflm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (p *deliveryBasedFLMProvider) NewManager(network, channel string) (Listener
108108
flm, err := events.NewListenerManager[TxInfo](
109109
logging.MustGetLogger("token-sdk.network.fabric.finality"),
110110
p.config,
111-
ch.Delivery(),
111+
&Delivery{Delivery: ch.Delivery()},
112112
&DeliveryScanQueryByID{
113113
Delivery: ch.Delivery(),
114114
Ledger: ch.Ledger(),

token/services/network/fabric/lookup/deliveryllm.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"github.com/hyperledger-labs/fabric-token-sdk/token/services/logging"
2424
"github.com/hyperledger-labs/fabric-token-sdk/token/services/network/common/rws/translator"
2525
"github.com/hyperledger-labs/fabric-token-sdk/token/services/network/driver"
26+
finality2 "github.com/hyperledger-labs/fabric-token-sdk/token/services/network/fabric/finality"
2627
"github.com/hyperledger/fabric-protos-go/common"
2728
"github.com/pkg/errors"
2829
"go.opentelemetry.io/otel/trace"
@@ -119,7 +120,7 @@ func (p *deliveryBasedLLMProvider) NewManager(network, channel string) (Listener
119120
flm, err := events.NewListenerManager[KeyInfo](
120121
logging.MustGetLogger("token-sdk.network.fabric.llm"),
121122
p.config,
122-
ch.Delivery(),
123+
&finality2.Delivery{Delivery: ch.Delivery()},
123124
&DeliveryScanQueryByID{
124125
Channel: ch,
125126
},

0 commit comments

Comments
 (0)