MCPcopy Create free account
hub / github.com/DNAProject/DNA / getTransactionKey

Method getTransactionKey

core/store/ledgerstore/block_store.go:472–477  ·  view source on GitHub ↗
(txHash common.Uint256)

Source from the content-addressed store, hash-verified

470}
471
472func (this *BlockStore) getTransactionKey(txHash common.Uint256) []byte {
473 key := bytes.NewBuffer(nil)
474 key.WriteByte(byte(scom.DATA_TRANSACTION))
475 txHash.Serialize(key)
476 return key.Bytes()
477}
478
479func (this *BlockStore) getHeaderKey(blockHash common.Uint256) []byte {
480 data := blockHash.ToArray()

Callers 3

putTransactionMethod · 0.95
loadTransactionMethod · 0.95
ContainTransactionMethod · 0.95

Calls 3

WriteByteMethod · 0.80
SerializeMethod · 0.65
BytesMethod · 0.45

Tested by

no test coverage detected