Documentation ¶
Index ¶
- func GetBlockByHeight(chainId, height int64) *blockchain.Block
- func GetHeaderByHash(hash types.HexBytes) *blockchain.Header
- func GetHeaderByHeight(chainId, height int64) *blockchain.Header
- func GetLastHeader(chainId int64) *blockchain.Header
- func GetReceiptByTxHash(chainId int64, txHash string) *userevent.ReceiptDetail
- func GetVoteResults(chainId int64, hash string) blockchain.Votes
- func SaveReceiptByTxHash(chainId int64, txHash string, detail userevent.ReceiptDetail)
- func SetBlockByHeight(chainId, height int64, block blockchain.Block)
- func SetHeaderByHeight(chainId, height int64, header blockchain.Header) error
- func SetLastHeader(chainId int64, header blockchain.Header) error
- func SetVoteResults(chainId int64, hash string, votes blockchain.Votes)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockByHeight ¶
func GetBlockByHeight(chainId, height int64) *blockchain.Block
func GetHeaderByHash ¶
func GetHeaderByHash(hash types.HexBytes) *blockchain.Header
func GetHeaderByHeight ¶
func GetHeaderByHeight(chainId, height int64) *blockchain.Header
func GetLastHeader ¶
func GetLastHeader(chainId int64) *blockchain.Header
func GetReceiptByTxHash ¶
func GetReceiptByTxHash(chainId int64, txHash string) *userevent.ReceiptDetail
func GetVoteResults ¶
func GetVoteResults(chainId int64, hash string) blockchain.Votes
func SaveReceiptByTxHash ¶
func SaveReceiptByTxHash(chainId int64, txHash string, detail userevent.ReceiptDetail)
func SetBlockByHeight ¶
func SetBlockByHeight(chainId, height int64, block blockchain.Block)
func SetHeaderByHeight ¶
func SetHeaderByHeight(chainId, height int64, header blockchain.Header) error
func SetLastHeader ¶
func SetLastHeader(chainId int64, header blockchain.Header) error
func SetVoteResults ¶
func SetVoteResults(chainId int64, hash string, votes blockchain.Votes)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.