Documentation ¶
Index ¶
- Variables
- func AlterAllStringInBlock(b common.Block, old string, new string) ([]byte, error)
- func AlterBlockWithTxBytes(b common.Block, txbytes []byte, loc int) ([]byte, error)
- func AlterBlockstorageForce(FileName string, oldtx []byte, newtx []byte) error
- func AlterTxEnvelop(tx common.Envelope, old string, new string) ([]byte, error)
- func ChangeDevToABC(tx common.Envelope) ([]byte, error)
- func DeserializeBlock(blk []byte) (*common.Block, error)
- func ExtractDataFromBlock(block *common.Block) (*common.BlockData, error)
- func ExtractEnvelope(block *common.Block, index int) (*common.Envelope, error)
- func ExtractEnvelopesFromBlock(block *common.Block) (*[]common.Envelope, uint64, error)
- func ExtractHeaderFromBlock(block *common.Block) (*common.BlockHeader, error)
- func ExtractMetaDataFromBlock(block *common.Block) (*common.BlockMetadata, error)
- func GetBlockFromNumber(fac blockledger.Factory, num uint64) (*common.Block, error)
- func GetEnvelopeFromBlock(data []byte) (*common.Envelope, error)
- func GetFactory() (blockledger.Factory, string, error)
- func GetLedgerHeight(fac blockledger.Factory) uint64
- func IsStringInBlock(b common.Block, s string) (bool, error)
- func IsStringInEnv(tx common.Envelope, s string) (bool, error)
- func SerializeBlock(block *common.Block) ([]byte, error)
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 AlterBlockWithTxBytes ¶
func AlterBlockstorageForce ¶
func AlterTxEnvelop ¶
func ChangeDevToABC ¶
this is a function to alter the "change car9 to Dev" to the "change car9 to ABC"
func ExtractDataFromBlock ¶
func ExtractEnvelope ¶
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 GetFactory ¶
func GetFactory() (blockledger.Factory, string, error)
func GetLedgerHeight ¶
func GetLedgerHeight(fac blockledger.Factory) uint64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.