Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miner changes for time-based tenure extends #5493

Merged
merged 51 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
8fe3394
test: add test for tenure-extend upon failed miner
obycode Nov 9, 2024
311ad50
feat: implement tenure-extend after bad sortition winner
obycode Nov 12, 2024
2a4a09b
feat: make signer accept tenure extend on bad sortition
obycode Nov 13, 2024
c294617
Merge branch 'develop' into feat/tenure-extend-no-blocks
obycode Nov 13, 2024
a56a73c
test: add `tenure_extend_after_bad_commit` to yaml file
obycode Nov 14, 2024
6438551
refactor: move the `StackerDBChannel` into the `EventDispatcher`
obycode Nov 14, 2024
4420c82
feat: add an index for block state
obycode Nov 14, 2024
3fa8116
docs: update changelogs
obycode Nov 14, 2024
0b3a2c1
Merge branch 'develop' into feat/tenure-extend-no-blocks
obycode Nov 14, 2024
df8f240
chore: improve comment about checking the parent tenure
obycode Nov 14, 2024
44769cf
test: add unit test for `SignerDb::get_canonical_tip`
obycode Nov 14, 2024
4c7c5aa
chore: remove unnecessary log
obycode Nov 14, 2024
a9acfa0
feat: simplify signerdb migration
obycode Nov 14, 2024
58fda00
chore: cleanup unused
obycode Nov 15, 2024
2178846
refactor: clean up `continue_tenure`
obycode Nov 15, 2024
d8140e0
refactor: `last_block_contains_tenure_change_tx`
obycode Nov 15, 2024
54c88c6
test: additional checks requested in PR review
obycode Nov 15, 2024
ba2faf7
feat: add ability to disable tenure-extend for tests
obycode Nov 15, 2024
965f58b
fix: fix import for test-only feature
obycode Nov 15, 2024
cd5e7cc
refactor: add comments and improve naming
obycode Nov 15, 2024
7f6e5fc
Merge branch 'feat/tenure-extend-no-blocks' into feat/miner-tenure-ex…
obycode Nov 18, 2024
3297863
Merge branch 'feat/time-based-tenure-extend' into feat/miner-tenure-e…
obycode Nov 20, 2024
f0228c9
feat: move sign coordinator logic into its own thread
obycode Nov 21, 2024
04270d7
feat: add timeout and additional checks in `get_block_status`
obycode Nov 22, 2024
eddada4
Merge branch 'feat/time-based-tenure-extend' into feat/miner-tenure-e…
obycode Nov 22, 2024
f92c819
chore: `SignerDBListener` -> `StackerDBListener`
obycode Nov 22, 2024
cf540a5
ifix: resolve merge errors
obycode Nov 22, 2024
aea205b
chore: finish rename
obycode Nov 22, 2024
d173d98
fix: replace the channel receiver when the listener stops
obycode Nov 22, 2024
a21fa4d
feat: shutdown stacker db listener with miner
obycode Nov 25, 2024
ab0807e
chore: return okay when exit is requested
obycode Nov 25, 2024
5d516a8
fix: drop lock in `propose_block`
obycode Nov 26, 2024
1a67a1c
feat: extend tenure based on time
obycode Nov 26, 2024
48c8a10
chore: cleanup
obycode Nov 26, 2024
31b9c0b
Merge branch 'feat/time-based-tenure-extend' into feat/miner-tenure-e…
obycode Nov 26, 2024
8929537
fix: resolve errors after merge
obycode Nov 26, 2024
65c5b70
chore: remove duplicates in CHANGELOGs due to merge
obycode Nov 26, 2024
280d536
fix: merge artifact
obycode Nov 26, 2024
a4d378f
fix: merge artifacts
obycode Nov 26, 2024
379ce66
chore: upgrade debug log to info
obycode Nov 26, 2024
cef0dd4
refactor: move synchronization details into `StackerDBListenerComms`
obycode Nov 27, 2024
0674bf5
Merge branch 'feat/time-based-tenure-extend' into feat/miner-tenure-e…
obycode Nov 27, 2024
ec8b83e
Merge branch 'feat/time-based-tenure-extend' of https://github.com/st…
jferrant Nov 28, 2024
ae9383a
chore: downgrade log to debug
obycode Dec 2, 2024
61911ef
chore: add debug log for stackerdb listener timeout
obycode Dec 3, 2024
69759d4
Merge branch 'feat/time-based-tenure-extend' into feat/miner-tenure-e…
obycode Dec 3, 2024
4d075fe
Merge branch 'feat/time-based-tenure-extend' into feat/miner-tenure-e…
obycode Dec 3, 2024
6e4bcc8
refactor: pass `reward_set` instead of re-loading it
obycode Dec 3, 2024
f2ce342
chore: improve comment on `mined_blocks`
obycode Dec 3, 2024
fdb05d1
fix: missing change for previous refactor
obycode Dec 3, 2024
de1881b
refactor: use `TestFlag`
obycode Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
478 changes: 258 additions & 220 deletions testnet/stacks-node/src/nakamoto_node/miner.rs

Large diffs are not rendered by default.

Loading
Loading