cl: verify bundle isn't balanced with just one unbalanced partial tx
This commit is contained in:
parent
d6d3dcab12
commit
913064da39
|
@ -119,6 +119,10 @@ mod test {
|
|||
|
||||
let bundle = Bundle::from_witness(bundle_witness.clone());
|
||||
|
||||
assert!(!bundle.is_balanced(
|
||||
-nmo_10_in.balance_blinding - eth_23_in.balance_blinding
|
||||
+ crv_4840_out.balance_blinding
|
||||
));
|
||||
assert_eq!(
|
||||
bundle.balance(),
|
||||
crate::balance::balance(4840, "CRV", crv_4840_out.balance_blinding)
|
||||
|
|
Loading…
Reference in New Issue