(moves)
| 323 | |
| 324 | |
| 325 | def dedupe_moves(moves): |
| 326 | move_set = {} |
| 327 | deduped_moves = [] |
| 328 | for move in moves: |
| 329 | # Dupes only pertain to onchain moves? |
| 330 | if 'utxo' not in move: |
| 331 | deduped_moves.append(move) |
| 332 | continue |
| 333 | |
| 334 | outpoint = '{};{}'.format(move['utxo'], move['spending_txid'] if 'spending_txid' in move else 'xx') |
| 335 | if outpoint not in move_set: |
| 336 | deduped_moves.append(move) |
| 337 | move_set[outpoint] = move |
| 338 | return deduped_moves |
| 339 | |
| 340 | |
| 341 | def inspect_check_actual(txids, channel_id, actual, exp): |
no outgoing calls
no test coverage detected