Skip to content

Commit

Permalink
rm comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bogatyr285 committed Jan 31, 2022
1 parent c60042b commit ecffb41
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions proto/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package proto

import (
"fmt"
"log"

"github.com/hyperledger/fabric-protos-go/common"
"github.com/hyperledger/fabric-protos-go/msp"
Expand All @@ -27,17 +26,7 @@ func ParseTransaction(payload *common.Payload, transactionType common.HeaderType

si, err := protoutil.UnmarshalSerializedIdentity(sigHeader.Creator)
if err != nil {
// in some transactions we get some unknown proto message with chaincodes(!?), dont know how to deal with it now
// ---- example
// �
// � 
// _lifecycle�
// "ApproveChaincodeDefinitionForMyOrg
// ^basic1.0JNL
// Jbasic_1.0:770d76a4369f9121d4945c6782dd42c4db7c130c3c7b77b73d9894414b5a3da9
log.Println("[hlf.ptoto.tx-parser] got error, skipping it. transaction creator is not 'msp.SerializedIdentity': ", string(sigHeader.Creator))
err = nil
//return nil, fmt.Errorf("parse transaction creator: %w", err)
return nil, fmt.Errorf("parse transaction creator: %w", err)
}

var actions []*TransactionAction
Expand Down

0 comments on commit ecffb41

Please sign in to comment.