Documentation
¶
Index ¶
Constants ¶
View Source
const ( TxStatus_Success = 0 TxStatus_Fail = 1 )
Variables ¶
View Source
var ChainProxy_Impls = map[string]func() ChainClient{}
Functions ¶
Types ¶
type ChainBlock ¶
type ChainBlock struct {
Height int64 `json:",string"`
Hash string `json:",omitempty"`
PreviousHash string
TimeStamp time.Time `json:",omitempty"`
Transactions []*ChainTransaction `json:"-"`
TxEvents []*ChainTxEvents `json:"-"`
}
ChainBlock represent a block concept for fabric-stype blocks Notice an transactions which is not accepted (i.e. no contribution to world-status) MUST NOT be put in Transactions field but one ChainTxEvents corresponding to this failed tx, with Status field is non-zero, can be put in TxEvents field
type ChainInfo ¶
type ChainInfo interface {
GetChain() (*Chain, error)
GetBlock(int64) (*ChainBlock, error)
GetTransaction(string) (*ChainTransaction, error)
GetTxEvent(string) ([]*ChainTxEvents, error)
}
type ChainTransaction ¶
type ChainTransaction struct {
Height int64 `json:",string"`
TxID, Chaincode, Method string
CreatedFlag bool
TxArgs [][]byte `json:"-"`
}
ChainTransaction for tx
type ChainTxEvents ¶
ChainTxEvents for events
type RpcClient ¶
Source Files
¶
- chain_proxy.go
- rpc_client.go
Click to show internal directories.
Click to hide internal directories.