Skip to content

Commit

Permalink
Merge pull request #2725 from IntersectMBO/workaround_collateral_dbsy…
Browse files Browse the repository at this point in the history
…nc_check

fix(dbsync): filter tx collaterals by Lovelace
  • Loading branch information
mkoura authored Nov 1, 2024
2 parents 20a2ab7 + 5704308 commit 77600b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cardano_node_tests/utils/dbsync_check_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ def check_tx_collaterals(
*tx_raw_output.script_withdrawals,
)
]
tx_collaterals = set(itertools.chain.from_iterable(tx_collaterals_nested))
tx_collaterals_flat = set(itertools.chain.from_iterable(tx_collaterals_nested))
# TODO: support multi-assets in collateral inputs
tx_collaterals = {r for r in tx_collaterals_flat if r.coin == clusterlib.DEFAULT_COIN}
db_collaterals = {utxorecord2utxodata(utxorecord=r) for r in response.collaterals}

assert (
Expand Down

0 comments on commit 77600b6

Please sign in to comment.