File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
platform/fabric/core/generic/transaction Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import (
1515 "github.com/hyperledger-labs/fabric-smart-client/platform/fabric/protoutil"
1616 cb "github.com/hyperledger/fabric-protos-go-apiv2/common"
1717 pb "github.com/hyperledger/fabric-protos-go-apiv2/peer"
18- "github.com/hyperledger/fabric/core/common/ccprovider"
1918 "github.com/hyperledger/fabric/msp"
2019)
2120
@@ -136,8 +135,13 @@ func UnpackProposal(prop *pb.Proposal) (*UnpackedProposal, error) {
136135 }, nil
137136}
138137
138+ type txParams struct {
139+ ChannelID string
140+ TxID string
141+ }
142+
139143func (up * UnpackedProposal ) Validate (idDeserializer msp.IdentityDeserializer ) error {
140- logger := decorateLogger (logger , & ccprovider. TransactionParams {
144+ logger := decorateLogger (logger , & txParams {
141145 ChannelID : up .ChannelHeader .ChannelId ,
142146 TxID : up .TxID (),
143147 })
@@ -219,7 +223,7 @@ func (up *UnpackedProposal) Validate(idDeserializer msp.IdentityDeserializer) er
219223 return nil
220224}
221225
222- func decorateLogger (logger logging.Logger , txParams * ccprovider. TransactionParams ) logging.Logger {
226+ func decorateLogger (logger logging.Logger , txParams * txParams ) logging.Logger {
223227 return logger .With ("channel" , txParams .ChannelID , "txID" , shorttxid (txParams .TxID ))
224228}
225229
You can’t perform that action at this time.
0 commit comments