File tree Expand file tree Collapse file tree 3 files changed +355
-87
lines changed Expand file tree Collapse file tree 3 files changed +355
-87
lines changed Original file line number Diff line number Diff line change @@ -835,6 +835,12 @@ impl NakamotoBlockHeader {
835
835
public_key_bytes. copy_from_slice ( & public_key. to_bytes_compressed ( ) [ ..] ) ;
836
836
837
837
let ( signer, signer_index) = signers_by_pk. get ( & public_key_bytes) . ok_or_else ( || {
838
+ warn ! (
839
+ "Found an invalid public key. Reward set has {} signers. Chain length {}. Signatures length {}" ,
840
+ signers. len( ) ,
841
+ self . chain_length,
842
+ self . signer_signature. len( ) ,
843
+ ) ;
838
844
ChainstateError :: InvalidStacksBlock ( format ! (
839
845
"Public key {} not found in the reward set" ,
840
846
public_key. to_hex( )
Original file line number Diff line number Diff line change @@ -324,6 +324,12 @@ impl TestSigners {
324
324
. map ( |s| s. signing_key . to_vec ( ) )
325
325
. collect :: < Vec < _ > > ( ) ;
326
326
327
+ info ! (
328
+ "TestSigners: Signing Nakamoto block. TestSigners has {} signers. Reward set has {} signers." ,
329
+ test_signers_by_pk. len( ) ,
330
+ reward_set_keys. len( ) ,
331
+ ) ;
332
+
327
333
let mut signatures = Vec :: with_capacity ( reward_set_keys. len ( ) ) ;
328
334
329
335
let mut missing_keys = 0 ;
You can’t perform that action at this time.
0 commit comments