2060 Commits

Author SHA1 Message Date
Jude Nelson
d14666d3f4 chore: explose bitcoin indexer to p2p thread 2023-01-24 10:31:58 -05:00
Jude Nelson
6b967d70b6 chore: export make_bitcoin_indexer() 2023-01-24 10:31:46 -05:00
Jude Nelson
2ae9019834 feat: helper method to create a bitcoin indexer 2023-01-24 10:31:30 -05:00
pavitthrap
149ae7f379 Merge branch 'develop' into feat/synthetic-print-delegate-stx 2023-01-23 15:27:23 -05:00
Jude Nelson
ab5b21c397 fix: fix some failing integration tests 2023-01-20 10:49:52 -05:00
Pavitthra Pandurangan
105700543f ran fmt + fized non-test build 2023-01-19 14:52:30 -05:00
Pavitthra Pandurangan
40ce97bc6b cleaned up tests 2023-01-18 17:07:10 -05:00
Pavitthra Pandurangan
aa102f22be clean up test 2023-01-18 16:52:14 -05:00
Pavitthra Pandurangan
17f194a19e wip, test works except for pox 2023-01-18 15:20:05 -05:00
Jude Nelson
8e97c88b0c fix: use 2.05-series affirmation map calculation for problematic tx tests 2023-01-15 23:56:35 -05:00
Jude Nelson
a96ac186f4 chore: remove compiler warnings 2023-01-15 23:56:22 -05:00
Jude Nelson
b46cd6b9bd chore: cargo fmt 2023-01-13 17:49:20 -05:00
Jude Nelson
aa1a5e378e fix: add integration test for handling the epoch transition to 2.1 where the 2.05 affirmation map rules _must_ be used to handle PoX reorgs 2023-01-13 17:47:43 -05:00
Jude Nelson
a0f5132423 fix: API sync; also, use miner status for conveying burn amount 2023-01-13 17:47:24 -05:00
Jude Nelson
017abe43f0 fix: poll burn amount from miner status 2023-01-13 17:47:00 -05:00
Jude Nelson
e3c42380af fix: default to not requiring all anchor blocks to be affirmed in testnet 2023-01-13 17:46:45 -05:00
Jude Nelson
a91109f8ef fix: always_use_affirmation_maps is now false by default, since it prevents 2.1 nodes from syncing with testnet 2023-01-10 22:48:19 -05:00
Jude Nelson
5694fb4483 fix: unconditionally wakeup the coordinator to check for more work to do every 5 minutes 2023-01-10 17:14:53 -05:00
Jude Nelson
6f61982df9 fix: better debugging output 2023-01-04 15:12:28 -05:00
Jude Nelson
ade55b4540 fix: don't require IBD to process leader key registers anymore 2023-01-04 15:12:05 -05:00
Jude Nelson
aa66dedae8 fix: combine coordinator block announcements into a bitvector so we can handle both announcements of new burn and stacks blocks in one coordinator pass (which is required for handling the case where we need to rewind sortitions, process stacks blocks, and then replay sortitions) 2023-01-04 10:34:58 -05:00
Jude Nelson
371b226cd3 fix: first target block height might be lower than 1 reward cycle 2023-01-03 23:27:42 -05:00
Jude Nelson
02573b228a fix: make sure we download _only_ one reward cycle at a time when booting up 2023-01-03 17:13:40 -05:00
Jude Nelson
cfe093d6ce fix: don't wait for sortitions that can't come 2023-01-03 17:09:21 -05:00
Jude Nelson
27ea828183 fix: hint for stacks block processing while waiting for sortiitons, in case we're waiting for many sortitions 2023-01-03 15:30:06 -05:00
Jude Nelson
e57e8ac2b5 fix: now that we drive burnchain processing, be more permissive for follower stacks nodes that get ahead 2023-01-02 18:23:14 -05:00
Jude Nelson
55f127786f fix: drive burnchain processing while waiting for sortitions 2023-01-02 18:23:00 -05:00
Jude Nelson
c78fe27ace fix: disable affirmation maps on pre-2.1 integration tests that fail due to timeouts 2023-01-02 15:52:48 -05:00
Jude Nelson
6b06d8653a fix: on devnet, use the sortition tip to generate VRF and microblock private key data (not the last-sortitioned block) 2023-01-02 15:52:27 -05:00
Jude Nelson
126f837366 fix: backport #3457 to fix failing integration test due to off-by-one error 2023-01-02 13:48:20 -05:00
Jude Nelson
1086ee9d4b fix: fix failing PoX integration test by ensuring that affirmation maps are disabled prior to 2.1 2023-01-02 12:52:32 -05:00
Jude Nelson
732f5e8166 feat: always use affirmation maps by default 2023-01-02 12:52:21 -05:00
Jude Nelson
18ac9c2606 Merge branch 'feat/check-pox-2-params' of https://github.com/stacks-network/stacks-blockchain into feat/check-pox-2-params 2022-12-31 03:17:57 +00:00
Jude Nelson
59c9c3a30d fix: start chain-liveness thread before waiting for sortitions 2022-12-31 03:16:38 +00:00
Jude Nelson
6ab2a13610 fix: start chain-liveness thread before waiting for sortitions 2022-12-29 12:30:04 -05:00
Jude Nelson
721811d83d fix: burnchain sync in reward cycle intervals only 2022-12-26 23:15:49 -05:00
Jude Nelson
d92786ef90 fix: only wait for sortitions if we are given a target height, and don't wait for more than the highest sortition height's height (avoids a livelock) 2022-12-26 23:15:02 -05:00
Jude Nelson
5fb047efda fix: make Txid serialize to text, and make the chain-liveness thread sleep for 1 second in-between wake-ups 2022-12-23 15:03:04 -05:00
Jude Nelson
cb7c105a02 fix: fix failing integration tests 2022-12-22 12:06:49 -05:00
Jude Nelson
e31110d45e fix: consider unaffirmed anchor blocks when looking for divergence 2022-12-21 12:28:09 -05:00
Jude Nelson
1e3766f803 tests: add another test to verify that anchor blocks can be found out-of-order and everything will still work 2022-12-21 03:34:19 -05:00
Jude Nelson
050761c261 fix: run chain-liveness driver code in a separate thread so we don't deadlock waiting for sortitions that will never arrive 2022-12-21 03:33:53 -05:00
Jude Nelson
7781c26cb4 chore: API sync 2022-12-21 03:33:25 -05:00
Jude Nelson
dbbb67a063 Merge branch 'next' into feat/check-pox-2-params 2022-12-17 02:38:32 -05:00
Jude Nelson
4904104791 chore: remove dead code; check affirmation maps 2022-12-17 02:35:31 -05:00
Jude Nelson
8abf5e98e6 fix: drive burn block processing if the stacks fork isn't consistent with the heaviest AM 2022-12-17 02:35:11 -05:00
Jude Nelson
f2c1ea1f49 chore: debug relayer processing start/finish 2022-12-17 02:34:51 -05:00
Jude Nelson
ccc55ebe1f chore: http, not https 2022-12-16 02:04:48 -05:00
Jude Nelson
f78f7978b8 feat: add four different torture tests for simulating PoX reorgs 2022-12-16 02:04:33 -05:00
Jude Nelson
d1eacca07a feat: have the runloop track affirmation state in the sortition and stacks chain states, and drive PoX reorg processing in the coordinator if there's ever a divergence 2022-12-16 02:04:03 -05:00