-
- Downloads
[FAB-8660] Operations and PeerSupport interfaces
This introduces an interface that represents the currently exported
functions of the peer. An instance of the interface is created during
package initialization which delegates to the existing functions.
- References to the peer functions in endorser.Support are replaced with a
reference to the peer singleton.
- CreatePeerServer is renamed to the more idiomatic NewPeerServer as it
is a constructor
- PeerSupportFactory is removed and an instance of PeerSupport is
provided to endorser.SupportImpl and scc.ProviderFactory
Change-Id: I07ae90092be8349bed60686f7b04a5b9ab02382a
Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
Showing
- core/chaincode/chaincode_support_test.go 4 additions, 1 deletioncore/chaincode/chaincode_support_test.go
- core/endorser/endorser.go 10 additions, 0 deletionscore/endorser/endorser.go
- core/endorser/support.go 13 additions, 19 deletionscore/endorser/support.go
- core/peer/peer.go 3 additions, 10 deletionscore/peer/peer.go
- core/peer/peer_impl.go 77 additions, 0 deletionscore/peer/peer_impl.go
- core/peer/peer_test.go 8 additions, 12 deletionscore/peer/peer_test.go
- core/peer/pkg_test.go 6 additions, 8 deletionscore/peer/pkg_test.go
- core/peer/support.go 3 additions, 30 deletionscore/peer/support.go
- core/scc/cscc/configure_test.go 15 additions, 4 deletionscore/scc/cscc/configure_test.go
- core/scc/scc_test.go 15 additions, 10 deletionscore/scc/scc_test.go
- core/scc/sccproviderimpl.go 21 additions, 9 deletionscore/scc/sccproviderimpl.go
- peer/node/start.go 8 additions, 2 deletionspeer/node/start.go
- peer/node/status_test.go 3 additions, 3 deletionspeer/node/status_test.go
Loading
Please register or sign in to comment