Add comment.

The weight of our transactions can fluctuate by +-2 wu because our transactions have 2 signatures
This commit is contained in:
Philipp Hoenisch 2021-05-07 08:26:30 +10:00
parent e69a2c9111
commit cfdbacfbb5
No known key found for this signature in database
GPG Key ID: E5F8E74C672BC666

View File

@ -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