We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ea307a commit 66110dcCopy full SHA for 66110dc
src/transaction.rs
@@ -2471,6 +2471,14 @@ mod tests {
2471
assert_eq!(tx.discount_weight(), 1302);
2472
assert_eq!(tx.discount_vsize(), 326);
2473
2474
+ let tx: Transaction = hex_deserialize!(include_str!("../tests/data/2in3out_tx.hex"));
2475
+ assert_eq!(tx.input.len(), 2);
2476
+ assert_eq!(tx.output.len(), 3);
2477
+ assert_eq!(tx.weight(), 10300);
2478
+ assert_eq!(tx.vsize(), 2575);
2479
+ assert_eq!(tx.discount_weight(), 1302);
2480
+ assert_eq!(tx.discount_vsize(), 326);
2481
+
2482
let tx: Transaction = hex_deserialize!(include_str!("../tests/data/2in3out_tx2.hex"));
2483
assert_eq!(tx.input.len(), 2);
2484
assert_eq!(tx.output.len(), 3);
0 commit comments