@@ -93,12 +93,11 @@ def run_test(self):
93
93
self .log .info ("Test fee rate histogram when mempool contains 2 transactions (tx1: 5 sat/vB, tx2: 14 sat/vB)" )
94
94
info = node .getmempoolinfo ([1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 ])
95
95
96
- # Verify that tx1 and tx2 are reported in 5 sat/vB and 14 sat/vB in fee rate groups respectively
96
+ # Verify that both tx1 and tx2 are reported in 8 sat/vB fee rate group
97
97
(non_empty_groups , empty_groups , total_fees ) = self .histogram_stats (info ['fee_histogram' ])
98
- assert_equal (2 , non_empty_groups )
99
- assert_equal (13 , empty_groups )
100
- assert_equal (1 , info ['fee_histogram' ]['fee_rate_groups' ]['5' ]['count' ])
101
- assert_equal (1 , info ['fee_histogram' ]['fee_rate_groups' ]['14' ]['count' ])
98
+ assert_equal (1 , non_empty_groups )
99
+ assert_equal (14 , empty_groups )
100
+ assert_equal (2 , info ['fee_histogram' ]['fee_rate_groups' ]['8' ]['count' ])
102
101
assert_equal (total_fees , info ['fee_histogram' ]['total_fees' ])
103
102
104
103
# Unlock the second UTXO which we locked
@@ -110,31 +109,31 @@ def run_test(self):
110
109
self .log .info ("Test fee rate histogram when mempool contains 3 transactions (tx1: 5 sat/vB, tx2: 14 sat/vB, tx3: 6 sat/vB)" )
111
110
info = node .getmempoolinfo ([1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 ])
112
111
113
- # Verify that each of 5, 6 and 14 sat/vB fee rate groups contain one transaction
112
+ # Verify that each of 6, 7 and 8 sat/vB fee rate groups contain one transaction
114
113
(non_empty_groups , empty_groups , total_fees ) = self .histogram_stats (info ['fee_histogram' ])
115
114
assert_equal (3 , non_empty_groups )
116
115
assert_equal (12 , empty_groups )
117
116
118
- for i in ['1' , '2' , '3' , '4' , '7 ' , '8' , ' 9' , '10' , '11' , '12' , '13' , '15' ]:
117
+ for i in ['1' , '2' , '3' , '4' , '5 ' , '9' , '10' , '11' , '12' , '13' , '14 ' , '15' ]:
119
118
assert_equal (0 , info ['fee_histogram' ]['fee_rate_groups' ][i ]['size' ])
120
119
assert_equal (0 , info ['fee_histogram' ]['fee_rate_groups' ][i ]['count' ])
121
120
assert_equal (0 , info ['fee_histogram' ]['fee_rate_groups' ][i ]['fees' ])
122
121
assert_equal (int (i ), info ['fee_histogram' ]['fee_rate_groups' ][i ]['from' ])
123
122
124
- assert_equal (188 , info ['fee_histogram' ]['fee_rate_groups' ]['5' ]['size' ])
125
- assert_equal (1 , info ['fee_histogram' ]['fee_rate_groups' ]['5' ]['count' ])
126
- assert_equal (940 , info ['fee_histogram' ]['fee_rate_groups' ]['5' ]['fees' ])
127
- assert_equal (5 , info ['fee_histogram' ]['fee_rate_groups' ]['5' ]['from' ])
128
-
129
- assert_equal (356 , info ['fee_histogram' ]['fee_rate_groups' ]['6' ]['size' ])
123
+ assert_equal (188 , info ['fee_histogram' ]['fee_rate_groups' ]['6' ]['size' ])
130
124
assert_equal (1 , info ['fee_histogram' ]['fee_rate_groups' ]['6' ]['count' ])
131
- assert_equal (2136 , info ['fee_histogram' ]['fee_rate_groups' ]['6' ]['fees' ])
132
- assert_equal (6 , info ['fee_histogram' ]['fee_rate_groups' ]['6' ]['from' ])
133
-
134
- assert_equal (141 , info ['fee_histogram' ]['fee_rate_groups' ]['14' ]['size' ])
135
- assert_equal (1 , info ['fee_histogram' ]['fee_rate_groups' ]['14' ]['count' ])
136
- assert_equal (1974 , info ['fee_histogram' ]['fee_rate_groups' ]['14' ]['fees' ])
137
- assert_equal (14 , info ['fee_histogram' ]['fee_rate_groups' ]['14' ]['from' ])
125
+ assert_equal (940 , info ['fee_histogram' ]['fee_rate_groups' ]['6' ]['fees' ])
126
+ assert_equal (5 , info ['fee_histogram' ]['fee_rate_groups' ]['6' ]['from' ])
127
+
128
+ assert_equal (356 , info ['fee_histogram' ]['fee_rate_groups' ]['7' ]['size' ])
129
+ assert_equal (1 , info ['fee_histogram' ]['fee_rate_groups' ]['7' ]['count' ])
130
+ assert_equal (2136 , info ['fee_histogram' ]['fee_rate_groups' ]['7' ]['fees' ])
131
+ assert_equal (6 , info ['fee_histogram' ]['fee_rate_groups' ]['7' ]['from' ])
132
+
133
+ assert_equal (141 , info ['fee_histogram' ]['fee_rate_groups' ]['8' ]['size' ])
134
+ assert_equal (1 , info ['fee_histogram' ]['fee_rate_groups' ]['8' ]['count' ])
135
+ assert_equal (1974 , info ['fee_histogram' ]['fee_rate_groups' ]['8' ]['fees' ])
136
+ assert_equal (14 , info ['fee_histogram' ]['fee_rate_groups' ]['8' ]['from' ])
138
137
139
138
assert_equal (total_fees , info ['fee_histogram' ]['total_fees' ])
140
139
0 commit comments