fabric-protos icon indicating copy to clipboard operation
fabric-protos copied to clipboard

[go binding] peer.TransactionAction#Header

Open davidkhala opened this issue 5 months ago • 1 comments

// TransactionAction binds a proposal to its action.  The type field in the header dictates the type of action to be applied to the ledger.
type TransactionAction struct {
	// The header of the proposal action, which is the proposal header
	Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// The payload of the action as defined by the type in the header For
	// chaincode, it's the bytes of ChaincodeActionPayload
	Payload              []byte   `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	...
}

As documented, the header should be of the proposal header type, which I cannot find which is the type it refers to.

davidkhala avatar Jan 15 '24 12:01 davidkhala

This case is found when I am trying to investigate and parse the lifecycle commit transaction.

davidkhala avatar Jan 15 '24 12:01 davidkhala