Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewTTL (0.06 sec)

  1. pkg/ledger/smt.go

    // duration for old nodes.
    func newSMT(hash func(data ...[]byte) []byte, updateCache cache.ExpiringCache, retentionDuration time.Duration) *smt {
    	if updateCache == nil {
    		updateCache = cache.NewTTL(forever, time.Second)
    	}
    	s := &smt{
    		hash:              hash,
    		trieHeight:        len(hash([]byte("height"))) * 8, // hash any string to get output length
    		retentionDuration: retentionDuration,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top