diff --git a/pkg/core/blockchain_state.go b/pkg/core/blockchain_state.go index b2f868013..db13408f8 100644 --- a/pkg/core/blockchain_state.go +++ b/pkg/core/blockchain_state.go @@ -19,8 +19,9 @@ type BlockChainState struct { // NewBlockChainState creates blockchain state with it's memchached store. func NewBlockChainState(store *storage.MemCachedStore) *BlockChainState { + tmpStore := storage.NewMemCachedStore(store) return &BlockChainState{ - store: store, + store: tmpStore, unspentCoins: make(UnspentCoins), spentCoins: make(SpentCoins), accounts: make(Accounts),