func (bc *AtxCache) Add(id types.ATXID, atxHeader *types.ActivationTxHeader) {
	bc.Cache.Add(id, atxHeader)
}
Add adds an activationTxHeader to cache.
package activation
import (
	lru "github.com/hashicorp/golang-lru"
	"github.com/spacemeshos/go-spacemesh/common/types"
	"github.com/spacemeshos/go-spacemesh/log"
)
type AtxCache struct {
	*lru.Cache
}
func NewAtxCache(size int) AtxCache {
	cache, err := lru.New(size)
	if err != nil {
		log.Panic("could not initialize cache ", err)
	}
	return AtxCache{Cache: cache}
}