"github.com/golang/groupcache/lru"
+ cfg "github.com/vapor/config"
"github.com/vapor/consensus"
dbm "github.com/vapor/database/leveldb"
chainjson "github.com/vapor/encoding/json"
)
//NewRegistry create new registry
-func NewRegistry(db dbm.DB, chain *protocol.Chain) *Registry {
+func NewRegistry(db dbm.DB, chain *protocol.Chain, config *cfg.Config) *Registry {
initNativeAsset()
return &Registry{
+ config: config,
db: db,
chain: chain,
cache: lru.New(maxAssetCache),
// Registry tracks and stores all known assets on a blockchain.
type Registry struct {
+ config *cfg.Config
+
db dbm.DB
chain *protocol.Chain