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

Function GenGenesisBlockKey

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

Source from the content-addressed store, hash-verified

45)
46
47func GenGenesisBlockKey() *pool.ByteBuffer {
48 key := keyPool.Get()
49 key.WriteByte(byte(SYS_GENESIS_BLOCK))
50 return key
51}
52
53func GenBestBlockHeaderKey() *pool.ByteBuffer {
54 key := keyPool.Get()

Callers 1

PersistBlockMethod · 0.85

Calls 2

WriteByteMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected