knief

package
v0.0.0-...-ff7f851 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChannelName = "mychannel"
View Source
var DataLoc = "/home/ubuntu/fabric-dev/fabric-samples/test-network/blkstorage/production/orderer"

Functions

func AlterAllStringInBlock

func AlterAllStringInBlock(b common.Block, old string, new string) ([]byte, error)

func AlterBlockWithTxBytes

func AlterBlockWithTxBytes(b common.Block, txbytes []byte, loc int) ([]byte, error)

func AlterBlockstorageForce

func AlterBlockstorageForce(FileName string, oldtx []byte, newtx []byte) error

func AlterTxEnvelop

func AlterTxEnvelop(tx common.Envelope, old string, new string) ([]byte, error)

func ChangeDevToABC

func ChangeDevToABC(tx common.Envelope) ([]byte, error)

this is a function to alter the "change car9 to Dev" to the "change car9 to ABC"

func DeserializeBlock

func DeserializeBlock(blk []byte) (*common.Block, error)

func ExtractDataFromBlock

func ExtractDataFromBlock(block *common.Block) (*common.BlockData, error)

func ExtractEnvelope

func ExtractEnvelope(block *common.Block, index int) (*common.Envelope, error)

func ExtractEnvelopesFromBlock

func ExtractEnvelopesFromBlock(block *common.Block) (*[]common.Envelope, uint64, error)

func ExtractHeaderFromBlock

func ExtractHeaderFromBlock(block *common.Block) (*common.BlockHeader, error)

helper function

func ExtractMetaDataFromBlock

func ExtractMetaDataFromBlock(block *common.Block) (*common.BlockMetadata, error)

func GetBlockFromNumber

func GetBlockFromNumber(fac blockledger.Factory, num uint64) (*common.Block, error)

func GetEnvelopeFromBlock

func GetEnvelopeFromBlock(data []byte) (*common.Envelope, error)

func GetFactory

func GetFactory() (blockledger.Factory, string, error)

func GetLedgerHeight

func GetLedgerHeight(fac blockledger.Factory) uint64

func IsStringInBlock

func IsStringInBlock(b common.Block, s string) (bool, error)

func IsStringInEnv

func IsStringInEnv(tx common.Envelope, s string) (bool, error)

func SerializeBlock

func SerializeBlock(block *common.Block) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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