@@ -173,7 +173,7 @@ pub async fn run_manual_seal<B, BI, CB, E, C, TP, SC, CS, CIDP, P>(
173173 SC : SelectChain < B > + ' static ,
174174 TP : TransactionPool < Block = B > ,
175175 CIDP : CreateInherentDataProviders < B , ( ) > ,
176- P : Send + Sync + ' static ,
176+ P : codec :: Encode + Send + Sync + ' static ,
177177{
178178 while let Some ( command) = commands_stream. next ( ) . await {
179179 match command {
@@ -231,7 +231,7 @@ pub async fn run_instant_seal<B, BI, CB, E, C, TP, SC, CIDP, P>(
231231 SC : SelectChain < B > + ' static ,
232232 TP : TransactionPool < Block = B > ,
233233 CIDP : CreateInherentDataProviders < B , ( ) > ,
234- P : Send + Sync + ' static ,
234+ P : codec :: Encode + Send + Sync + ' static ,
235235{
236236 // instant-seal creates blocks as soon as transactions are imported
237237 // into the transaction pool.
@@ -281,7 +281,7 @@ pub async fn run_instant_seal_and_finalize<B, BI, CB, E, C, TP, SC, CIDP, P>(
281281 SC : SelectChain < B > + ' static ,
282282 TP : TransactionPool < Block = B > ,
283283 CIDP : CreateInherentDataProviders < B , ( ) > ,
284- P : Send + Sync + ' static ,
284+ P : codec :: Encode + Send + Sync + ' static ,
285285{
286286 // Creates and finalizes blocks as soon as transactions are imported
287287 // into the transaction pool.
@@ -459,7 +459,8 @@ mod tests {
459459 needs_justification: false ,
460460 bad_justification: false ,
461461 is_new_best: true ,
462- }
462+ } ,
463+ proof_size: 0
463464 }
464465 ) ;
465466 // assert that there's a new block in the db.
@@ -549,7 +550,8 @@ mod tests {
549550 needs_justification: false ,
550551 bad_justification: false ,
551552 is_new_best: true ,
552- }
553+ } ,
554+ proof_size: created_block. proof_size
553555 }
554556 ) ;
555557 // assert that there's a new block in the db.
@@ -625,7 +627,8 @@ mod tests {
625627 needs_justification: false ,
626628 bad_justification: false ,
627629 is_new_best: true ,
628- }
630+ } ,
631+ proof_size: 0
629632 }
630633 ) ;
631634 // assert that there's a new block in the db.
@@ -711,7 +714,8 @@ mod tests {
711714 needs_justification: false ,
712715 bad_justification: false ,
713716 is_new_best: true
714- }
717+ } ,
718+ proof_size: 0
715719 }
716720 ) ;
717721
0 commit comments