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

Function GenDataTransactionKey

validator/db/key_prefix.go:59–64  ·  view source on GitHub ↗
(hash common.Uint256)

Source from the content-addressed store, hash-verified

57}
58
59func GenDataTransactionKey(hash common.Uint256) *pool.ByteBuffer {
60 key := keyPool.Get()
61 key.WriteByte(byte(DATA_TRANSACTION))
62 key.Write(hash.ToArray())
63 return key
64}

Callers 2

GetTransactionBytesMethod · 0.85
saveTransactionMethod · 0.85

Calls 4

WriteByteMethod · 0.80
WriteMethod · 0.80
GetMethod · 0.65
ToArrayMethod · 0.65

Tested by

no test coverage detected