MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / calcBlockPartKey

Function calcBlockPartKey

store/store.go:438–440  ·  view source on GitHub ↗
(height int64, partIndex int)

Source from the content-addressed store, hash-verified

436}
437
438func calcBlockPartKey(height int64, partIndex int) []byte {
439 return []byte(fmt.Sprintf("P:%v:%v", height, partIndex))
440}
441
442func calcBlockCommitKey(height int64) []byte {
443 return []byte(fmt.Sprintf("C:%v", height))

Callers 4

LoadBlockPartMethod · 0.85
PruneBlocksMethod · 0.85
saveBlockPartMethod · 0.85
TestLoadBlockPartFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestLoadBlockPartFunction · 0.68