Skip to content

Commit

Permalink
core:transaction.go fix a bug reserve dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzi committed May 19, 2018
1 parent fa612bf commit 4c505e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ func submitTx(tx *Transaction, block *Block, ws WorldState,
// if reset failed, the tx should be given back
return true, err
}

// reserve dependency
ws.GetOrCreateUserAccount(tx.to.address)
}

if err := tx.recordGas(gas, ws); err != nil {
Expand Down

0 comments on commit 4c505e6

Please sign in to comment.