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

Function test_validate_invalid_sequence

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

Source from the content-addressed store, hash-verified

52
53#[tokio::test]
54async fn test_validate_invalid_sequence() {
55 let (esplora, mut data, _) = setup_and_create_graphs().await;
56
57 let deposit_tx = data.peg_in_graphs[1].peg_in_deposit_transaction.tx_mut();
58 deposit_tx.input[0].sequence = bitcoin::Sequence(100);
59
60 let result = BitVMClient::validate_data(&esplora, &data).await;
61
62 assert!(!result);
63}
64
65#[tokio::test]
66async fn test_validate_invalid_value() {

Callers

nothing calls this directly

Calls 2

setup_and_create_graphsFunction · 0.70
tx_mutMethod · 0.45

Tested by

no test coverage detected