Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar-client-fabric
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar-client-fabric
Commits
b67da12b
Commit
b67da12b
authored
Jul 13, 2020
by
Alexader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(*): remove unused replace in go.mod
parent
35a7c375
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
28 deletions
+8
-28
client.go
client.go
+6
-4
go.mod
go.mod
+2
-24
go.sum
go.sum
+0
-0
No files found.
client.go
View file @
b67da12b
...
...
@@ -20,13 +20,13 @@ import (
"github.com/hyperledger/fabric/common/util"
"github.com/meshplus/bitxhub-kit/log"
"github.com/meshplus/bitxhub-model/pb"
"github.com/meshplus/pier/pkg/plugins
/client
"
"github.com/meshplus/pier/pkg/plugins"
"github.com/sirupsen/logrus"
)
var
logger
=
log
.
NewWithModule
(
"client"
)
var
_
client
.
Client
=
(
*
Client
)(
nil
)
var
_
plugins
.
Client
=
(
*
Client
)(
nil
)
const
(
GetInnerMetaMethod
=
"getInnerMeta"
// get last index of each source chain executing tx
...
...
@@ -434,10 +434,12 @@ func (h *handler) HandleMessage(deliveries *fab.CCEvent, payload []byte) {
func
main
()
{
plugin
.
Serve
(
&
plugin
.
ServeConfig
{
HandshakeConfig
:
client
.
Handshake
,
HandshakeConfig
:
plugins
.
Handshake
,
Plugins
:
map
[
string
]
plugin
.
Plugin
{
"fabric-plugin"
:
&
client
.
AppchainGRPCPlugin
{
Impl
:
&
Client
{}},
plugins
.
PluginName
:
&
plugins
.
AppchainGRPCPlugin
{
Impl
:
&
Client
{}},
},
GRPCServer
:
plugin
.
DefaultGRPCServer
,
})
logger
.
Println
(
"Plugin server down"
)
}
go.mod
View file @
b67da12b
...
...
@@ -3,13 +3,12 @@ module github.com/meshplus/pier-client-fabric
go 1.13
require (
github.com/hashicorp/go-plugin v1.3.0
github.com/Rican7/retry v0.1.0
github.com/VividCortex/gohistogram v1.0.0 // indirect
github.com/cloudflare/cfssl v0.0.0-20180223231731-4e2dcbde5004
github.com/golang/protobuf v1.4.0
github.com/golangci/golangci-lint v1.23.0 // indirect
github.com/google/certificate-transparency-go v1.1.0 // indirect
github.com/hashicorp/go-plugin v1.3.0
github.com/hyperledger/fabric v2.0.1+incompatible
github.com/hyperledger/fabric-chaincode-go v0.0.0-20200511190512-bcfeb58dd83a
github.com/hyperledger/fabric-lib-go v1.0.0 // indirect
...
...
@@ -17,29 +16,9 @@ require (
github.com/hyperledger/fabric-sdk-go v1.0.0-alpha5
github.com/meshplus/bitxhub-kit v1.0.1-0.20200525112026-df2160653e23
github.com/meshplus/bitxhub-model v1.0.0-rc4.0.20200707045101-18b88b80efb1
github.com/meshplus/pier v1.0.0-rc1.0.20200707085406-951dc93be28b
github.com/meshplus/pier v1.0.0-rc1.0.20200717044435-de24cfbef0f3
github.com/sirupsen/logrus v1.5.0
github.com/spf13/viper v1.6.1
)
replace github.com/golang/protobuf => github.com/golang/protobuf v1.3.2
replace google.golang.org/grpc => google.golang.org/grpc v1.27.1
replace gopkg.in/yaml.v2 => gopkg.in/yaml.v2 v2.2.7
replace golang.org/x/net => golang.org/x/net v0.0.0-20200202094626-16171245cfb2
replace golang.org/x/text => golang.org/x/text v0.3.0
replace golang.org/x/sys => golang.org/x/sys v0.0.0-20200509044756-6aff5f38e54f
replace github.com/spf13/afero => github.com/spf13/afero v1.1.2
replace github.com/spf13/pflag => github.com/spf13/pflag v1.0.5
replace github.com/pelletier/go-toml => github.com/pelletier/go-toml v1.2.0
replace github.com/spf13/jwalterweatherman => github.com/spf13/jwalterweatherman v1.0.0
replace github.com/mholt/archiver => github.com/mholt/archiver v0.0.0-20180417220235-e4ef56d48eb0
\ No newline at end of file
go.sum
View file @
b67da12b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment