Skip to content

Commit

Permalink
Merge pull request #5493 from stacks-network/feat/miner-tenure-extend
Browse files Browse the repository at this point in the history
Miner changes for time-based tenure extends
  • Loading branch information
obycode authored Dec 3, 2024
2 parents 040ef2d + de1881b commit 061da00
Show file tree
Hide file tree
Showing 9 changed files with 1,201 additions and 851 deletions.
4 changes: 2 additions & 2 deletions stackslib/src/chainstate/nakamoto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2452,7 +2452,7 @@ impl NakamotoChainState {
db_handle: &mut SortitionHandleConn,
staging_db_tx: &NakamotoStagingBlocksTx,
headers_conn: &Connection,
reward_set: RewardSet,
reward_set: &RewardSet,
obtain_method: NakamotoBlockObtainMethod,
) -> Result<bool, ChainstateError> {
test_debug!("Consider Nakamoto block {}", &block.block_id());
Expand Down Expand Up @@ -2522,7 +2522,7 @@ impl NakamotoChainState {
return Ok(false);
};

let signing_weight = match block.header.verify_signer_signatures(&reward_set) {
let signing_weight = match block.header.verify_signer_signatures(reward_set) {
Ok(x) => x,
Err(e) => {
warn!("Received block, but the signer signatures are invalid";
Expand Down
2 changes: 1 addition & 1 deletion stackslib/src/net/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ impl Relayer {
sort_handle,
&staging_db_tx,
headers_conn,
reward_set,
&reward_set,
obtained_method,
)?;
staging_db_tx.commit()?;
Expand Down
3 changes: 2 additions & 1 deletion testnet/stacks-node/src/nakamoto_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ use crate::run_loop::RegisteredKey;
pub mod miner;
pub mod peer;
pub mod relayer;
pub mod sign_coordinator;
pub mod signer_coordinator;
pub mod stackerdb_listener;

use self::peer::PeerThread;
use self::relayer::{RelayerDirective, RelayerThread};
Expand Down
482 changes: 260 additions & 222 deletions testnet/stacks-node/src/nakamoto_node/miner.rs

Large diffs are not rendered by default.

Loading

0 comments on commit 061da00

Please sign in to comment.