ledgerutils

package
v0.0.0-...-1340fc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockHash

func GetBlockHash(blockNumber uint64, ledgerClient *ledger.Client) (string, error)

func GetBlockHeight

func GetBlockHeight(ledgerClient *ledger.Client) (uint64, error)

func ProcessBlock

func ProcessBlock(blockNumber uint64, ledgerClient *ledger.Client) (blockResponse *protoCommon.Block, typeInfo string, createdAt time.Time, txsFltr util.TxValidationFlags, err error)

func ProcessEndorserTx

func ProcessEndorserTx(txData []byte) (txId, channelId, creator, creatorOrg string, txRWSet *rwsetutil.TxRwSet, chaincodeName, chaincodeVersion string, err error)

func ProcessTx

func ProcessTx(txData []byte) (txId, channelId, creator, creatorOrg string, tx *peer.Transaction, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL