internal

package
v0.0.0-...-e171dc0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHeader

func BuildHeader(creator []byte, channelHeader *common.ChannelHeader, nonce []byte) (*common.Header, error)

BuildHeader ...

func ComputeTxID

func ComputeTxID(nonce []byte, creator []byte) (string, error)

ComputeTxID computes a transaction ID from a given nonce and creator ID

func CreateSeekGenesisBlockRequest

func CreateSeekGenesisBlockRequest(channelName string, creator []byte) []byte

CreateSeekGenesisBlockRequest creates a seek request for block 0 on the specified channel. This request is sent to the ordering service to request blocks

func GenerateRandomNonce

func GenerateRandomNonce() ([]byte, error)

GenerateRandomNonce generates a random nonce

func GetLastConfigFromBlock

func GetLastConfigFromBlock(block *common.Block) (*common.LastConfig, error)

GetLastConfigFromBlock returns the LastConfig data from the given block

func MarshalOrPanic

func MarshalOrPanic(pb proto.Message) []byte

MarshalOrPanic serializes a protobuf message and panics if this operation fails.

func NewNewestSeekPosition

func NewNewestSeekPosition() *ab.SeekPosition

NewNewestSeekPosition returns a SeekPosition that requests the newest block

func NewSpecificSeekPosition

func NewSpecificSeekPosition(index uint64) *ab.SeekPosition

NewSpecificSeekPosition returns a SeekPosition that requests the block at the given index

Types

This section is empty.

Directories

Path Synopsis
Package txnproc provides functionality for processing fabric transactions.
Package txnproc provides functionality for processing fabric transactions.

Jump to

Keyboard shortcuts

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