Skip to content

Commit 388a033

Browse files
authored
upgrade go and dependencies (#651)
Signed-off-by: Arne Rutjes <[email protected]> Signed-off-by: Angelo De Caro <[email protected]>
1 parent bba8f00 commit 388a033

File tree

12 files changed

+1843
-605
lines changed

12 files changed

+1843
-605
lines changed

deps.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SPDX-License-Identifier: Apache-2.0
99
package deps
1010

1111
import (
12+
_ "github.com/IBM/idemix/tools/idemixgen"
1213
_ "github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb"
1314
_ "github.com/hyperledger/fabric/core/ledger/pvtdatastorage"
1415
_ "github.com/hyperledger/fabric/orderer/common/server"

go.mod

Lines changed: 199 additions & 168 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 1600 additions & 394 deletions
Large diffs are not rendered by default.

integration/fsc/pingpong/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -487,19 +487,19 @@ fsc:
487487
id: initiator
488488
path: ./../../crypto/peerOrganizations/fsc.example.com/peers/initiator.fsc.example.com/msp/signcerts/initiator.fsc.example.com-cert.pem
489489
addresses:
490-
Listen: 127.0.0.1:20000
491-
P2P: 127.0.0.1:20001
492-
View: 127.0.0.1:20000
490+
Listen: 127.0.0.1:20000
491+
P2P: 127.0.0.1:20001
492+
View: 127.0.0.1:20000
493493
- name: responder
494494
domain: fsc.example.com
495495
identity:
496496
id: responder
497497
path: ./../../crypto/peerOrganizations/fsc.example.com/peers/responder.fsc.example.com/msp/signcerts/responder.fsc.example.com-cert.pem
498498
addresses:
499-
# GRPC Server listening address
500-
Listen: 127.0.0.1:20002
501-
# P2P listening address
502-
P2P: 127.0.0.1:20003
503-
# View Service listening address (usually the same as Listen)
504-
View: 127.0.0.1:20002
505-
````
499+
# GRPC Server listening address
500+
Listen: 127.0.0.1:20002
501+
# P2P listening address
502+
P2P: 127.0.0.1:20003
503+
# View Service listening address (usually the same as Listen)
504+
View: 127.0.0.1:20002
505+
````

integration/fsc/pingpong/testdata/fsc/nodes/responder.0/core.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ fsc:
125125
identity:
126126
path: ./../../crypto/peerOrganizations/fsc.example.com/peers/initiator.fsc.example.com/msp/signcerts/initiator.fsc.example.com-cert.pem
127127
addresses:
128-
P2P: 127.0.0.1:21001
128+
P2P: 127.0.0.1:21001
129129
aliases:
130130
- alice
131-
132-

integration/nwo/fabric/network/checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (n *Network) CheckTopologyFabricPeers() {
171171
ports[portName] = n.Context.ReservePort()
172172
}
173173
n.Context.SetPortsByPeerID(n.Prefix, p.ID(), ports)
174-
n.Context.SetHostByPeerID(n.Prefix, p.ID(), "0.0.0.0")
174+
n.Context.SetHostByPeerID(n.Prefix, p.ID(), "127.0.0.1")
175175
}
176176
}
177177

integration/nwo/fabric/network/network_support.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (n *Network) AddOrg(o *topology.Organization, peers ...*topology.Peer) {
6060
ports[portName] = n.Context.ReservePort()
6161
}
6262
n.Context.SetPortsByPeerID(n.Prefix, p.ID(), ports)
63-
n.Context.SetHostByPeerID(n.Prefix, p.ID(), "0.0.0.0")
63+
n.Context.SetHostByPeerID(n.Prefix, p.ID(), "127.0.0.1")
6464
n.Peers = append(n.Peers, p)
6565
}
6666

integration/nwo/fsc/fsc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func (p *Platform) CheckTopology() {
343343
ports[portName] = p.Context.ReservePort()
344344
}
345345
p.Context.SetPortsByPeerID("fsc", peer.ID(), ports)
346-
p.Context.SetHostByPeerID("fsc", peer.ID(), "0.0.0.0")
346+
p.Context.SetHostByPeerID("fsc", peer.ID(), "127.0.0.1")
347347
p.Peers = append(p.Peers, peer)
348348
users[orgName] = users[orgName] + 1
349349
userNames[orgName] = append(userNames[orgName], node.Name)

integration/nwo/orion/platform.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ func (p *Platform) writeConfigFile() {
299299
p.nodePort = p.Context.PortsByOrdererID("", OrdererPortID)[Port]
300300
p.peerPort = p.Context.PortsByPeerID("", PeerPortID)[Port]
301301

302-
nodeHost := utils.DefaultString(p.Context.HostByOrdererID("", OrdererPortID), "0.0.0.0")
303-
peerHost := utils.DefaultString(p.Context.HostByPeerID("", PeerPortID), "0.0.0.0")
302+
nodeHost := utils.DefaultString(p.Context.HostByOrdererID("", OrdererPortID), "127.0.0.1")
303+
peerHost := utils.DefaultString(p.Context.HostByPeerID("", PeerPortID), "127.0.0.1")
304304

305305
p.localConfig = &config.LocalConfiguration{
306306
Server: config.ServerConf{

platform/fabric/core/generic/chaincode/chaincode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111
"sync"
1212
"time"
1313

14-
"github.com/ReneKroon/ttlcache/v2"
1514
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/generic/peer"
1615
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/driver"
1716
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/flogging"
1817
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/grpc"
18+
"github.com/jellydator/ttlcache/v2"
1919
)
2020

2121
var logger = flogging.MustGetLogger("fabric-sdk.core.generic.chaincode")

0 commit comments

Comments
 (0)