apply partial debit before stopping due to blocker

This commit is contained in:
ionutboangiu
2024-09-05 18:07:19 +03:00
committed by Dan Christian Bogos
parent 668f421842
commit 0aa5cf38e8

View File

@@ -411,7 +411,10 @@ func (acc *Account) debitCreditBalance(cd *CallDescriptor, count bool, dryRun bo
}
// check for blocker
if balance.Blocker {
return // don't go to next balances
if cd.GetDuration() != 0 {
return
}
goto COMMIT // don't go to next balances
}
}
}
@@ -444,7 +447,10 @@ func (acc *Account) debitCreditBalance(cd *CallDescriptor, count bool, dryRun bo
}
// check for blocker
if balance.Blocker {
return // don't go to next balances
if cd.GetDuration() != 0 {
return
}
goto COMMIT // don't go to next balances
}
}
}