MCPcopy Create free account
hub / github.com/BitVM/BitVM / test_validate_invalid_previous_output

Function test_validate_invalid_previous_output

bridge/tests/bridge/client/validate.rs:25–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24#[tokio::test]
25async 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]
42async fn test_validate_invalid_script_sig() {

Callers

nothing calls this directly

Calls 2

setup_and_create_graphsFunction · 0.70
tx_mutMethod · 0.45

Tested by

no test coverage detected