Documentation ¶
Index ¶
- Constants
- func BuildGetBlockByNumberProposal(creator []byte, signer *ecdsa.PrivateKey, channel string, number uint64) (*pb.SignedProposal, error)
- func BuildGetChainInfoProposal(creator []byte, signer *ecdsa.PrivateKey, channel string) (*pb.SignedProposal, error)
- func BuildQueryTxProposal(creator []byte, signer *ecdsa.PrivateKey, channel, txID string) (*pb.SignedProposal, error)
- func GetBlockByNumber(peerClient *endorser.PeerClient, channel string, number uint64, creator []byte, ...) (*common.Block, error)
- func GetChainInfo(peerClient *endorser.PeerClient, channel string, creator []byte, ...) (*common.BlockchainInfo, error)
- func GetHeight(peerClient *endorser.PeerClient, channel string, creator []byte, ...) (uint64, error)
- func InitRetracer(config RetraceConf) *retracer
- func UnmarshalBlockFromProposalResponse(response *pb.ProposalResponse) (*common.Block, error)
- func UnmarshalChainInfoFromProposalResponse(response *pb.ProposalResponse) (*common.BlockchainInfo, error)
- type ChaincodeEventInfo
- type RetraceConf
Constants ¶
View Source
const RETRACE_FILE_NAME = "./retrace.json"
Variables ¶
This section is empty.
Functions ¶
func BuildGetBlockByNumberProposal ¶
func BuildGetBlockByNumberProposal(creator []byte, signer *ecdsa.PrivateKey, channel string, number uint64) (*pb.SignedProposal, error)
func BuildGetChainInfoProposal ¶
func BuildGetChainInfoProposal(creator []byte, signer *ecdsa.PrivateKey, channel string) (*pb.SignedProposal, error)
func BuildQueryTxProposal ¶
func BuildQueryTxProposal(creator []byte, signer *ecdsa.PrivateKey, channel, txID string) (*pb.SignedProposal, error)
func GetBlockByNumber ¶
func GetBlockByNumber(peerClient *endorser.PeerClient, channel string, number uint64, creator []byte, signer *ecdsa.PrivateKey) (*common.Block, error)
func GetChainInfo ¶
func GetChainInfo(peerClient *endorser.PeerClient, channel string, creator []byte, signer *ecdsa.PrivateKey) (*common.BlockchainInfo, error)
func GetHeight ¶
func GetHeight(peerClient *endorser.PeerClient, channel string, creator []byte, signer *ecdsa.PrivateKey) (uint64, error)
func InitRetracer ¶
func InitRetracer(config RetraceConf) *retracer
func UnmarshalBlockFromProposalResponse ¶
func UnmarshalBlockFromProposalResponse(response *pb.ProposalResponse) (*common.Block, error)
func UnmarshalChainInfoFromProposalResponse ¶
func UnmarshalChainInfoFromProposalResponse(response *pb.ProposalResponse) (*common.BlockchainInfo, error)
Types ¶
type ChaincodeEventInfo ¶
type RetraceConf ¶
Click to show internal directories.
Click to hide internal directories.