()
| 23 | |
| 24 | #[tokio::test] |
| 25 | async fn test_validate_invalid_previous_output() { |
| 26 | let (esplora, mut data, peg_in_outpoint) = setup_and_create_graphs().await; |
| 27 | |
| 28 | let changed_outpoint = OutPoint { |
| 29 | txid: peg_in_outpoint.txid, |
| 30 | vout: peg_in_outpoint.vout + 1, |
| 31 | }; |
| 32 | |
| 33 | let deposit_tx = data.peg_in_graphs[1].peg_in_deposit_transaction.tx_mut(); |
| 34 | deposit_tx.input[0].previous_output = changed_outpoint; |
| 35 | |
| 36 | let result = BitVMClient::validate_data(&esplora, &data).await; |
| 37 | |
| 38 | assert!(!result); |
| 39 | } |
| 40 | |
| 41 | #[tokio::test] |
| 42 | async fn test_validate_invalid_script_sig() { |
nothing calls this directly
no test coverage detected