Allow fees to be paid with the imported balance in the ImportTx

This commit is contained in:
StephenButtolph 2020-04-01 12:53:33 -04:00
parent c814d42611
commit a26f76de91
1 changed files with 2 additions and 2 deletions

View File

@ -163,11 +163,11 @@ func (tx *ImportTx) SemanticVerify(db database.Database) error {
if err != nil {
return err
}
account, err = account.Remove(0, tx.Nonce)
account, err = account.Add(amount)
if err != nil {
return err
}
account, err = account.Add(amount)
account, err = account.Remove(0, tx.Nonce)
if err != nil {
return err
}