Merge pull request #523 from nspcc-dev/fix-interim-block-changes-store

Fix interim block changes store
This commit is contained in:
Roman Khimov 2019-11-27 14:51:29 +03:00 committed by GitHub
commit c5e2b3ce73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -1320,7 +1320,7 @@ func (bc *Blockchain) GetValidators(txes... *transaction.Transaction) ([]*keys.P
return result, nil
}
func processStateTX(chainState *BlockChainState, tx *transaction.StateTX, ) error {
func processStateTX(chainState *BlockChainState, tx *transaction.StateTX) error {
for _, desc := range tx.Descriptors {
switch desc.Type {
case transaction.Account:

View file

@ -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),