@@ -1155,39 +1155,39 @@ pub(crate) mod tests {
1155
1155
1156
1156
let hash7 =
1157
1157
insert_block ( & db, make_authorities ( vec ! [ auth3( ) ] ) , || default_header ( & hash6, 7 ) ) ;
1158
- assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) , ) ;
1158
+ assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) ) ;
1159
1159
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash7) ) , Some ( vec![ auth3( ) ] ) ) ;
1160
1160
let hash8 =
1161
1161
insert_block ( & db, make_authorities ( vec ! [ auth3( ) ] ) , || default_header ( & hash7, 8 ) ) ;
1162
- assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) , ) ;
1162
+ assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) ) ;
1163
1163
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash7) ) , Some ( vec![ auth3( ) ] ) ) ;
1164
1164
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash8) ) , Some ( vec![ auth3( ) ] ) ) ;
1165
1165
let hash6_1 =
1166
1166
insert_block ( & db, make_authorities ( vec ! [ auth4( ) ] ) , || default_header ( & hash6, 7 ) ) ;
1167
- assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) , ) ;
1167
+ assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) ) ;
1168
1168
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash7) ) , Some ( vec![ auth3( ) ] ) ) ;
1169
1169
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash8) ) , Some ( vec![ auth3( ) ] ) ) ;
1170
1170
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1) ) , Some ( vec![ auth4( ) ] ) ) ;
1171
1171
let hash6_1_1 = insert_non_best_block ( & db, make_authorities ( vec ! [ auth5( ) ] ) , || {
1172
1172
default_header ( & hash6_1, 8 )
1173
1173
} ) ;
1174
- assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) , ) ;
1174
+ assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) ) ;
1175
1175
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash7) ) , Some ( vec![ auth3( ) ] ) ) ;
1176
1176
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash8) ) , Some ( vec![ auth3( ) ] ) ) ;
1177
1177
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1) ) , Some ( vec![ auth4( ) ] ) ) ;
1178
1178
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1_1) ) , Some ( vec![ auth5( ) ] ) ) ;
1179
1179
let hash6_1_2 = insert_non_best_block ( & db, make_authorities ( vec ! [ auth6( ) ] ) , || {
1180
1180
default_header ( & hash6_1, 8 )
1181
1181
} ) ;
1182
- assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) , ) ;
1182
+ assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) ) ;
1183
1183
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash7) ) , Some ( vec![ auth3( ) ] ) ) ;
1184
1184
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash8) ) , Some ( vec![ auth3( ) ] ) ) ;
1185
1185
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1) ) , Some ( vec![ auth4( ) ] ) ) ;
1186
1186
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1_1) ) , Some ( vec![ auth5( ) ] ) ) ;
1187
1187
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1_2) ) , Some ( vec![ auth6( ) ] ) ) ;
1188
1188
let hash6_2 =
1189
1189
insert_block ( & db, make_authorities ( vec ! [ auth4( ) ] ) , || default_header ( & hash6_1, 8 ) ) ;
1190
- assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) , ) ;
1190
+ assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) ) ;
1191
1191
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash7) ) , Some ( vec![ auth3( ) ] ) ) ;
1192
1192
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash8) ) , Some ( vec![ auth3( ) ] ) ) ;
1193
1193
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1) ) , Some ( vec![ auth4( ) ] ) ) ;
@@ -1201,7 +1201,7 @@ pub(crate) mod tests {
1201
1201
{
1202
1202
// finalize block hash6_1
1203
1203
db. finalize_header ( BlockId :: Hash ( hash6_1) ) . unwrap ( ) ;
1204
- assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) , ) ;
1204
+ assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) ) ;
1205
1205
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash7) ) , None ) ;
1206
1206
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash8) ) , None ) ;
1207
1207
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1) ) , Some ( vec![ auth4( ) ] ) ) ;
@@ -1210,7 +1210,7 @@ pub(crate) mod tests {
1210
1210
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_2) ) , Some ( vec![ auth4( ) ] ) ) ;
1211
1211
// finalize block hash6_2
1212
1212
db. finalize_header ( BlockId :: Hash ( hash6_2) ) . unwrap ( ) ;
1213
- assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) , ) ;
1213
+ assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6) ) , Some ( vec![ auth1( ) , auth2( ) ] ) ) ;
1214
1214
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash7) ) , None ) ;
1215
1215
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash8) ) , None ) ;
1216
1216
assert_eq ! ( authorities( db. cache( ) , BlockId :: Hash ( hash6_1) ) , Some ( vec![ auth4( ) ] ) ) ;
0 commit comments