mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-17 20:04:25 -05:00
Add comment.
The weight of our transactions can fluctuate by +-2 wu because our transactions have 2 signatures
This commit is contained in:
parent
e69a2c9111
commit
cfdbacfbb5
@ -415,7 +415,9 @@ mod tests {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Weights fluctuate -+2 wu assuming because of the length of the signatures.
|
// Weights fluctuate -+1 wu because of the length of the signatures.
|
||||||
|
// Some of our transactions have 2 signatures and hence the weight can fluctuate
|
||||||
|
// +-2
|
||||||
fn assert_weight(is_weight: usize, expected_weight: usize, tx_name: &str) {
|
fn assert_weight(is_weight: usize, expected_weight: usize, tx_name: &str) {
|
||||||
assert!(
|
assert!(
|
||||||
is_weight + 1 == expected_weight
|
is_weight + 1 == expected_weight
|
||||||
|
Loading…
Reference in New Issue
Block a user