Commit Graph

2618 Commits

Author SHA1 Message Date
Brice Dobry
441b7edf60 Merge pull request #4556 from stacks-network/feat/config-start-block
feat: add config parameters for burn block start
2024-03-22 18:57:52 +00:00
Brice Dobry
5f8a6737e9 Merge pull request #4578 from stacks-network/fix-nakamoto-neon-mode
fix: allow `nakamoto-neon` mode
2024-03-22 17:30:37 +00:00
Brice Dobry
3bbcd92252 Merge branch 'next' into feat/config-start-block 2024-03-22 12:32:45 -04:00
Brice Dobry
6bbe6db67a chore: add clarifying comment per PR feedback 2024-03-22 11:56:21 -04:00
Jude Nelson
25311e4bda Merge pull request #4394 from stacks-network/feat/nakamoto-block-download-api
Feat/nakamoto block download API
2024-03-22 15:41:17 +00:00
Brice Dobry
6319d3bf0c fix: epoch 1.0 start height check 2024-03-22 10:05:32 -04:00
Brice Dobry
215f2aa6b8 fix: allow nakamoto-neon mode 2024-03-22 08:28:28 -04:00
Brice Dobry
140385c1df Merge pull request #4577 from stacks-network/feat/nakamoto-xenon
feat: make nakamoto mode the default
2024-03-21 22:11:02 +00:00
Jude Nelson
78b76f33a9 Merge branch 'feat/nakamoto-block-download-api' into feat/nakamoto-block-downloader 2024-03-21 17:05:22 -04:00
Brice Dobry
c96cb17f32 feat: make nakamoto mode the default
This enables nakamoto for xenon and mainnet modes, not just for
"nakamoto-neon".
2024-03-21 16:15:29 -04:00
Jude Nelson
b773422afc Merge branch 'feat/nakamoto-block-download-api' into feat/nakamoto-block-downloader 2024-03-21 14:53:45 -04:00
Jude Nelson
274e754aae Merge branch 'feat/nakamoto-block-download-api' into feat/nakamoto-block-downloader 2024-03-21 14:52:58 -04:00
Brice Dobry
5d4f8cd296 Merge branch 'develop' into merge-develop 2024-03-21 13:10:21 -04:00
Jacinta Ferrant
09255694ad Add missing line break
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-21 11:53:40 -04:00
Jacinta Ferrant
c6844d078c Add context to affirmation overrides xenon function
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-21 11:53:40 -04:00
Jacinta Ferrant
87f22b4897 Open writeable database connection to burnchain db
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-21 11:53:40 -04:00
Jacinta Ferrant
c21c1ca0d5 Make affirmation overrides an optional and test it default adds them for xenon
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-21 11:53:40 -04:00
Jacinta Ferrant
6d34791ddd Add affirmation overrides config option and add default xenon ones necessary to sync from genesis
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-21 11:53:38 -04:00
saralab
284945bcfe Merge pull request #4561 from stacks-network/feat/2.5-no-microblocks
Disable Microblocks in Epoch 2.5
2024-03-21 14:34:15 +00:00
Aaron Blankstein
cb219c9424 chore: merge artifacts 2024-03-20 22:15:13 -05:00
Aaron Blankstein
07527ae758 Merge branch 'next' into feat/miner-coordinator 2024-03-20 17:46:30 -05:00
Brice Dobry
657bc00f12 chore: expose start_bitcoind errors 2024-03-20 12:14:24 -04:00
Brice Dobry
fe74b14b70 feat: validate burn block start height against epoch start heights
Epoch 1.0 must be before the start block and epoch 2.0 must be equal to
the start block.
2024-03-20 11:52:32 -04:00
Aaron Blankstein
c9a97cbc29 chore: fix comment 2024-03-20 10:14:13 -05:00
Brice Dobry
6c9010c002 fix: handle burn chain flapping
This test (from Jude) can reproduce the problematic behavior when
the burnchain flaps between two branches.

- We get blocks at height 211 - 213
- Then we get a fork, with different blocks at 211-213, as well as 214
  and 215.
- We then flap back to the original fork, so it goes back to the common
  ancestor, 210, and tries to download 211-215
- When it gets block 211, it is already in the database, so it fails,
  cancelling the download of the rest of the blocks, leaving 214 and 215
  in this branch not stored
- Then we try to store 216, but its parent 215 is not stored yet, so we
  cannot continue.

The fix for this is to ignore attempts to store duplicate blocks.
2024-03-20 10:17:34 -04:00
Aaron Blankstein
c50a93088d refactor: address PR review comments 2024-03-19 20:33:52 -05:00
Brice Dobry
b214f23103 chore: ensure bitcoin indexer gets the correct starting height 2024-03-19 18:15:57 -04:00
Aaron Blankstein
4c1b5c56de feat: disable microblocks in epoch 2.5 2024-03-19 16:03:18 -05:00
Hank Stoever
7f3cf56188 feat: update integration tests, verify success 2024-03-19 11:27:27 -07:00
Aaron Blankstein
2bde48c42b chore: fix rustc warns, cleanup events logs on /new_blocks event, invert unconditional mine check in neon_node 2024-03-19 09:49:18 -05:00
Aaron Blankstein
605d94bb9c Merge branch 'next' into feat/miner-coordinator 2024-03-19 09:26:09 -05:00
Hank Stoever
7de226811c Merge remote-tracking branch 'origin/next' into feat/stacking-burnops-include-signer-key 2024-03-19 06:20:55 -07:00
jferrant
0e9cf5dc1b Merge pull request #4549 from stacks-network/feat/signers-subscribe-to-burn-blocks
Feat/signers subscribe to burn blocks
2024-03-18 19:57:14 +00:00
Aaron Blankstein
17fe25d425 Merge branch 'next' into feat/miner-coordinator 2024-03-18 14:19:03 -05:00
Brice Dobry
1e6b1cce8e feat: add config parameters for burn block start 2024-03-18 13:51:15 -04:00
Jeff Bencin
d615a8b8b8 Merge branch stacks/next into multisig-order-independence 2024-03-18 13:04:26 -04:00
Aaron Blankstein
9297a7010a refactor: signer set parsing 2024-03-18 11:58:31 -05:00
Jeff Bencin
957ecd9a4c Merge commit cab1a11b5 into multisig-order-independence 2024-03-18 10:56:58 -04:00
Jeff Bencin
1cb66b7a15 Merge commit 577b118 into multisig-order-independence 2024-03-18 10:55:41 -04:00
Aaron Blankstein
b4439f0cd3 refactor: use RPC interface for stackerdb chunk writes (with explicit loopback socket), use mutex for send-side of stacker db event channel 2024-03-18 09:49:57 -05:00
Matthew Little
373c082ed5 chore: fix integration test 2024-03-18 13:14:31 +01:00
Matthew Little
8b49d0fb02 Merge branch 'next' into fix/rewarded_addresses-json-serialization 2024-03-18 11:27:19 +01:00
Aaron Blankstein
ac0c0873b2 cleanup sortdb invocations, remove unused structs, comments 2024-03-17 22:38:06 -05:00
Aaron Blankstein
9c19e9bab9 add rustdocs for StackerDBChannel 2024-03-16 13:13:05 -05:00
Aaron Blankstein
af5e626fda Merge remote-tracking branch 'origin/next' into feat/miner-coordinator 2024-03-16 12:50:08 -05:00
Jacinta Ferrant
53587bf6a0 Fix test calculations of block height
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-15 21:56:20 -04:00
Jacinta Ferrant
e89d1af4c9 Subscribe signer to new Burn block events
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-15 21:56:19 -04:00
Jude Nelson
f81e5e9e1a Merge branch 'next' into feat/nakamoto-block-downloader 2024-03-15 17:32:20 -04:00
Jude Nelson
e77f96e695 chore: cargo fmt 2024-03-15 17:31:50 -04:00
Jeff Bencin
3c9b3c4ec8 Merge commit f8c676073 into multisig-order-independence 2024-03-15 15:32:30 -04:00