Skip to content

Commit

Permalink
test discount info are present in liquid
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta authored and shesek committed Jan 20, 2025
1 parent 77c23ee commit f87e908
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ fn test_rest() -> Result<()> {
vout["scriptpubkey_address"].as_str() == Some(&addr1.to_string())
&& vout["value"].as_u64() == Some(119123000)
}));
#[cfg(feature = "liquid")]
{
assert_eq!(res["discount_vsize"].as_u64().unwrap(), 228);
assert_eq!(res["discount_weight"].as_u64().unwrap(), 912);
}

// Test GET /tx/:txid/status
let res = get_json(&format!("/tx/{}/status", txid1_confirmed))?;
Expand Down

0 comments on commit f87e908

Please sign in to comment.