Skip to content

Commit f87e908

Browse files
RCasattashesek
authored andcommitted
test discount info are present in liquid
1 parent 77c23ee commit f87e908

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/rest.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ fn test_rest() -> Result<()> {
4040
vout["scriptpubkey_address"].as_str() == Some(&addr1.to_string())
4141
&& vout["value"].as_u64() == Some(119123000)
4242
}));
43+
#[cfg(feature = "liquid")]
44+
{
45+
assert_eq!(res["discount_vsize"].as_u64().unwrap(), 228);
46+
assert_eq!(res["discount_weight"].as_u64().unwrap(), 912);
47+
}
4348

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

0 commit comments

Comments
 (0)