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

Function GenBestBlockHeaderKey

validator/db/key_prefix.go:53–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func GenBestBlockHeaderKey() *pool.ByteBuffer {
54 key := keyPool.Get()
55 key.WriteByte(byte(SYS_BEST_BLOCK_HEADER))
56 return key
57}
58
59func GenDataTransactionKey(hash common.Uint256) *pool.ByteBuffer {
60 key := keyPool.Get()

Callers 1

PersistBlockMethod · 0.85

Calls 2

WriteByteMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected