mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-21 08:00:52 -04: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
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
assert!(
|
||||
is_weight + 1 == expected_weight
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue