import (
"sync"
- "github.com/golang/groupcache/lru"
log "github.com/sirupsen/logrus"
"github.com/vapor/config"
"github.com/vapor/protocol/bc"
"github.com/vapor/protocol/bc/types"
"github.com/vapor/protocol/state"
+ "github.com/vapor/common"
)
const maxProcessBlockChSize = 1024
processBlockCh chan *processBlockMsg
consensusNodeManager *consensusNodeManager
- signatureCache *lru.Cache
+ signatureCache *common.Cache
eventDispatcher *event.Dispatcher
cond sync.Cond
orphanManage: NewOrphanManage(),
txPool: txPool,
store: store,
- signatureCache: lru.New(maxSignatureCacheSize),
+ signatureCache: common.NewCache(maxSignatureCacheSize),
eventDispatcher: eventDispatcher,
processBlockCh: make(chan *processBlockMsg, maxProcessBlockChSize),
}