MCPcopy Index your code
hub / github.com/chain/Core / add

Method add

core/txdb/cache.go:64–68  ·  view source on GitHub ↗
(block *legacy.Block)

Source from the content-addressed store, hash-verified

62}
63
64func (c *blockCache) add(block *legacy.Block) {
65 c.mu.Lock()
66 c.lru.Add(block.Height, block)
67 c.mu.Unlock()
68}

Callers 15

lookupMethod · 0.95
SaveBlockMethod · 0.80
transactMethod · 0.80
benchMethod · 0.80
payMethod · 0.80
accountTagsMethod · 0.80
assetTagsMethod · 0.80
setupMethod · 0.80
testBatchTransactionMethod · 0.80
ClientMethod · 0.80
pinCertificateMethod · 0.80
buildHttpClientMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by 4

accountTagsMethod · 0.64
assetTagsMethod · 0.64
setupMethod · 0.64
testBatchTransactionMethod · 0.64