Skip to content

Commit 5510f0b

Browse files
committed
Fix test build due to failed merge
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 7479356 commit 5510f0b

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

stacks-signer/src/signerdb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ impl SignerDb {
735735

736736
/// Return the last accepted block the signer (highest stacks height). It will tie break a match based on which was more recently signed.
737737
pub fn get_signer_last_accepted_block(&self) -> Result<Option<BlockInfo>, DBError> {
738-
let query = "SELECT block_info FROM blocks WHERE json_extract(block_info, '$.state') IN (?1, ?2) ORDER BY stacks_height DESC, json_extract(block_info, '$.signed_group') DESC, json_extract(block_info, '$.signed_self') DESC LIMIT 1";
738+
let query = "SELECT block_info FROM blocks WHERE state IN (?1, ?2) ORDER BY stacks_height DESC, signed_group DESC, signed_self DESC LIMIT 1";
739739
let args = params![
740740
&BlockState::GloballyAccepted.to_string(),
741741
&BlockState::LocallyAccepted.to_string()

testnet/stacks-node/src/tests/signer/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
672672
self.get_latest_block_response(slot_id)
673673
.as_block_accepted()
674674
.expect("Latest block response from slot #{slot_id} isn't a block acceptance")
675+
.clone()
675676
}
676677

677678
/// Get /v2/info from the node

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9833,10 +9833,7 @@ fn no_reorg_due_to_successive_block_validation_ok() {
98339833
let rl2_commits_before = rl2_commits.load(Ordering::SeqCst);
98349834

98359835
info!("------------------------- Pause Block Validation Submission of N+1'-------------------------");
9836-
TEST_STALL_BLOCK_VALIDATION_SUBMISSION
9837-
.lock()
9838-
.unwrap()
9839-
.replace(true);
9836+
TEST_STALL_BLOCK_VALIDATION_SUBMISSION.set(true);
98409837

98419838
info!("------------------------- Start Miner 2's Tenure-------------------------");
98429839
let burn_height_before = get_burn_height();
@@ -9929,10 +9926,7 @@ fn no_reorg_due_to_successive_block_validation_ok() {
99299926
sleep_ms(5_000);
99309927

99319928
info!("------------------------- Unpause Block Validation Submission and Response for N+1' -------------------------");
9932-
TEST_STALL_BLOCK_VALIDATION_SUBMISSION
9933-
.lock()
9934-
.unwrap()
9935-
.replace(false);
9929+
TEST_STALL_BLOCK_VALIDATION_SUBMISSION.set(false);
99369930

99379931
info!("------------------------- Confirm N+1 is Accepted ------------------------");
99389932
wait_for(30, || {

0 commit comments

Comments
 (0)