(moves)
| 300 | |
| 301 | |
| 302 | def dedupe_moves(moves): |
| 303 | move_set = {} |
| 304 | deduped_moves = [] |
| 305 | for move in moves: |
| 306 | # Dupes only pertain to onchain moves? |
| 307 | if 'utxo_txid' not in move: |
| 308 | deduped_moves.append(move) |
| 309 | continue |
| 310 | |
| 311 | outpoint = '{}:{};{}'.format(move['utxo_txid'], move['vout'], move['txid'] if 'txid' in move else 'xx') |
| 312 | if outpoint not in move_set: |
| 313 | deduped_moves.append(move) |
| 314 | move_set[outpoint] = move |
| 315 | return deduped_moves |
| 316 | |
| 317 | |
| 318 | def inspect_check_actual(txids, channel_id, actual, exp): |
no outgoing calls
no test coverage detected