Skip to content

Commit

Permalink
Merge pull request #617 from radixdlt/balance-changes-no-elements
Browse files Browse the repository at this point in the history
Fixed transient exception on missing balance changes in TransactionBa…
  • Loading branch information
krzlabrdx authored Jan 24, 2024
2 parents 66d077f + 52eb80f commit bf56a45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## 1.3.0
Release Date: _unreleased_

- added support for new transaction types (flash transactions) that are gonna occur on protocol updates.
- moved vm_type to `package_code_history` table from package in `entity` table.
- Added support for new transaction types (flash transactions) that are gonna occur on protocol updates.
- Moved vm_type to `package_code_history` table from package in `entity` table.
- `vm_type`, `code_hash_hex` and `code_hex` are returned as collection (it's allowed after protocol update to have multiple codes per package). Previous properties will return empty strings to keep contract compatibility.
- created new `package_blueprint_aggregate_history` table which will hold pointers to all package blueprints.
- created new `package_code_aggregate_history` table which will hold pointers to all package codes.
- Created new `package_blueprint_aggregate_history` table which will hold pointers to all package blueprints.
- Created new `package_code_aggregate_history` table which will hold pointers to all package codes.

## 1.2.4
Release Date: 4.01.2024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ await Parallel.ForEachAsync(transactions, options, async (transaction, cancellat
throw balanceChangesResult.FailureResponse.OriginalApiException;
}

var balanceChanges = balanceChangesResult.SuccessResponse.CommittedTransactionOutcomes.Single();
var balanceChanges = balanceChangesResult.SuccessResponse.CommittedTransactionOutcomes.FirstOrDefault();

if (balanceChanges == null)
{
return;
}

await _observers.ForEachAsync(x => x.PostHandleOutcomeRequest(transaction.StateVersion, selectedNode.Name));

Expand Down

0 comments on commit bf56a45

Please sign in to comment.