Skip to content

Commit

Permalink
Merge pull request #651 from GeorgeTsagk/update-account-rpc-fix
Browse files Browse the repository at this point in the history
accounts: fix service check in UpdateAccounts call
  • Loading branch information
guggero authored Oct 11, 2023
2 parents 8d7c53b + 89a494d commit 13bea90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (s *InterceptorService) UpdateAccount(accountID AccountID, accountBalance,

// As this function updates account balances, we require that the
// service is running before we execute it.
if s.isRunningUnsafe() {
if !s.isRunningUnsafe() {
// This case can only happen if the service is disabled while
// we we're processing a request.
return nil, ErrAccountServiceDisabled
Expand Down

0 comments on commit 13bea90

Please sign in to comment.