File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
testnet/stacks-node/src/tests Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ jobs:
134
134
- tests::nakamoto_integrations::utxo_check_on_startup_panic
135
135
- tests::nakamoto_integrations::utxo_check_on_startup_recover
136
136
- tests::nakamoto_integrations::v3_signer_api_endpoint
137
+ - tests::nakamoto_integrations::signer_chainstate
137
138
# TODO: enable these once v1 signer is supported by a new nakamoto epoch
138
139
# - tests::signer::v1::dkg
139
140
# - tests::signer::v1::sign_request_rejected
Original file line number Diff line number Diff line change @@ -482,11 +482,12 @@ impl SortitionsView {
482
482
if signed_over_time + tenure_last_block_proposal_timeout. as_secs ( )
483
483
> get_epoch_time_secs ( )
484
484
{
485
+ // The last locally accepted block is not timed out, return it
485
486
return Ok ( Some ( local_info) ) ;
486
487
}
487
488
}
488
489
}
489
-
490
+ // The last locally accepted block is timed out, get the last globally accepted block
490
491
signer_db
491
492
. get_last_globally_accepted_block ( consensus_hash)
492
493
. map_err ( |e| ClientError :: InvalidResponse ( e. to_string ( ) ) )
Original file line number Diff line number Diff line change @@ -6543,10 +6543,10 @@ fn signer_chainstate() {
6543
6543
valid : Some ( true ) ,
6544
6544
signed_over : true ,
6545
6545
proposed_time : get_epoch_time_secs ( ) ,
6546
- signed_self : None ,
6547
- signed_group : None ,
6546
+ signed_self : Some ( get_epoch_time_secs ( ) ) ,
6547
+ signed_group : Some ( get_epoch_time_secs ( ) ) ,
6548
6548
ext : ExtraBlockInfo :: None ,
6549
- state : BlockState :: Unprocessed ,
6549
+ state : BlockState :: GloballyAccepted ,
6550
6550
} )
6551
6551
. unwrap ( ) ;
6552
6552
You can’t perform that action at this time.
0 commit comments