MCPcopy Create free account
hub / github.com/chain/Core / cache

Method cache

protocol/tx.go:51–55  ·  view source on GitHub ↗
(txID bc.Hash, err error)

Source from the content-addressed store, hash-verified

49}
50
51func (c *prevalidatedTxsCache) cache(txID bc.Hash, err error) {
52 c.mu.Lock()
53 c.lru.Add(txID, err)
54 c.mu.Unlock()
55}
56
57func (c *Chain) checkIssuanceWindow(tx *bc.Tx) error {
58 if c.MaxIssuanceWindow == 0 {

Callers 1

ValidateTxMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected