Commit Graph

19201 Commits

Author SHA1 Message Date
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
f86cccbdaa fix: debug output 2023-01-04 15:11:47 -05:00
Jude Nelson
07c1636dfb fix: clear announcement flags on consumtion, and debug spinlock waits 2023-01-04 12:12:07 -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
de8e211a6d Merge branch 'feat/check-pox-2-params' of https://github.com/stacks-network/stacks-blockchain into feat/check-pox-2-params 2023-01-03 17:14:10 -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
5300d5cdfb Merge pull request #3462 from stacks-network/test/long-contract-name
test: add test passing long contract name
2023-01-03 01:59:06 +00: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
Brice Dobry
57ae8c3096 test: add test passing long contract name
This test verifies that the existing behavior where a contract name that
is longer than 40 characters, but less than 128 characters, can
successfully be passed to a contract call.

See: #3133
2023-01-02 17:20:13 -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
4d65ade440 fix: bump stacks block version 2023-01-02 12:52:10 -05:00
Jude Nelson
62695c5350 fix: epoch-gate affirmation map reorg, but turn it on if the node is configured to use it before 2.1 2023-01-02 12:51:48 -05:00
Jude Nelson
1bdb0ef3e2 fix: add some more indexes on block_commit_metadata to improve performance 2023-01-02 12:51:05 -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
1bf2b2130b fix: if the sortition and canonical AMs are the same length, and the
sortition AM doesn't conflict with the heaviest AM but it does with the
canonical AM, then it means that there is a downloaded but not processed
anchor block and we need to unwind the sortition history back to that
point.
2022-12-31 03:16:53 +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
270c5e04dd fix: fix order of debug output args 2022-12-28 21:33:37 -05:00
Jude Nelson
9b8c1668c1 feat: decode_microblocks subcommand to blockstack-cli 2022-12-28 21:33:23 -05:00
Jude Nelson
b1635b81f8 fix: a contract name can decode with up to 128 characters in the name part 2022-12-28 21:32:30 -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
8faaef9c55 chore: log start/end sync heights 2022-12-26 23:14:44 -05:00
Jude Nelson
d48717f822 fix: consider canonical stacks tips with 0 affirmation weight 2022-12-23 15:52:41 -05:00
Jude Nelson
6a0e8edf57 chore: cargo fmt 2022-12-23 15:22:21 -05:00
Jude Nelson
1a1556c196 chore: new default testnet start height and block, and also, pick a v1 unlock height default that won't panic 2022-12-23 15:21:31 -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
2c7917e6d5 fix: order fork quality by height then weight, and minimum max arrival index is now 1 2022-12-22 17:41:31 -05:00
Jude Nelson
1719a1f2a8 fix: max arrival index is 1 if there are none (so sortition invalidations don't trigger a panic) 2022-12-22 13:57:02 -05:00
Jude Nelson
38f1966e57 Merge branch 'feat/check-pox-2-params' of https://github.com/stacks-network/stacks-blockchain into feat/check-pox-2-params 2022-12-22 12:07:06 -05:00
Jude Nelson
cb7c105a02 fix: fix failing integration tests 2022-12-22 12:06:49 -05:00
Jude Nelson
147c72aecd Merge branch 'next' into feat/check-pox-2-params 2022-12-21 19:03:36 +00:00
Jude Nelson
277fa1e943 Merge pull request #3453 from stacks-network/chore/merge-master-to-next
Chore/merge master to next
2022-12-21 19:03:26 +00:00
Jude Nelson
6c438fc05b fix: no longer need burnchain argument 2022-12-21 13:24:13 -05:00
Jude Nelson
e31110d45e fix: consider unaffirmed anchor blocks when looking for divergence 2022-12-21 12:28:09 -05:00
Jude Nelson
7cd6696f22 Merge branch 'next' into feat/check-pox-2-params 2022-12-21 03:35:10 -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
6d1491f859 fix: use minimum of find_inv_search() affirmation map query and configured number of inv reward cycles 2022-12-21 03:33:03 -05:00
Jude Nelson
d71bd757b6 chore: API snc 2022-12-21 03:32:54 -05:00