Merge pull request #523 from nspcc-dev/fix-interim-block-changes-store
Fix interim block changes store
This commit is contained in:
commit
c5e2b3ce73
2 changed files with 5 additions and 4 deletions
|
@ -1320,7 +1320,7 @@ func (bc *Blockchain) GetValidators(txes... *transaction.Transaction) ([]*keys.P
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func processStateTX(chainState *BlockChainState, tx *transaction.StateTX, ) error {
|
func processStateTX(chainState *BlockChainState, tx *transaction.StateTX) error {
|
||||||
for _, desc := range tx.Descriptors {
|
for _, desc := range tx.Descriptors {
|
||||||
switch desc.Type {
|
switch desc.Type {
|
||||||
case transaction.Account:
|
case transaction.Account:
|
||||||
|
|
|
@ -19,8 +19,9 @@ type BlockChainState struct {
|
||||||
|
|
||||||
// NewBlockChainState creates blockchain state with it's memchached store.
|
// NewBlockChainState creates blockchain state with it's memchached store.
|
||||||
func NewBlockChainState(store *storage.MemCachedStore) *BlockChainState {
|
func NewBlockChainState(store *storage.MemCachedStore) *BlockChainState {
|
||||||
|
tmpStore := storage.NewMemCachedStore(store)
|
||||||
return &BlockChainState{
|
return &BlockChainState{
|
||||||
store: store,
|
store: tmpStore,
|
||||||
unspentCoins: make(UnspentCoins),
|
unspentCoins: make(UnspentCoins),
|
||||||
spentCoins: make(SpentCoins),
|
spentCoins: make(SpentCoins),
|
||||||
accounts: make(Accounts),
|
accounts: make(Accounts),
|
||||||
|
|
Loading…
Reference in a new issue