MCPcopy Create free account
hub / github.com/CPChain/chain / Transactions

Method Transactions

types/block.go:417–417  ·  view source on GitHub ↗

TODO: copies

()

Source from the content-addressed store, hash-verified

415// TODO: copies
416
417func (b *Block) Transactions() Transactions { return b.transactions }
418
419func (b *Block) Transaction(hash common.Hash) *Transaction {
420 for _, transaction := range b.transactions {

Callers 15

TestBlockEncodingFunction · 0.95
resetMethod · 0.80
recoverFromBlocksMethod · 0.80
ValidateBodyMethod · 0.80
ProcessMethod · 0.80
SetReceiptsDataFunction · 0.80
insertChainMethod · 0.80
countTransactionsFunction · 0.80
reorgMethod · 0.80
WriteTxLookupEntriesFunction · 0.80
TestBodyStorageFunction · 0.80

Calls

no outgoing calls

Tested by 11

TestBlockEncodingFunction · 0.76
TestBodyStorageFunction · 0.64
TestBlockStorageFunction · 0.64
TestClient_BlockByNumberFunction · 0.64
TestGetBlockBodiesFunction · 0.64
makeBodyFetcherMethod · 0.64
RequestBodiesMethod · 0.64