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
Jude Nelson
ae758ed285
fix: take block height
2022-12-21 03:32:43 -05:00
Jude Nelson
b688a08831
chore: API sync
2022-12-21 03:32:30 -05:00
Jude Nelson
cac1db7b2d
chore: plumb through affirmation weight
2022-12-21 03:32:15 -05:00
Jude Nelson
1955c31dc2
feat: record affirmation weight for each block header
2022-12-21 03:31:58 -05:00
Jude Nelson
740cb7eea8
fix: record affirmation weight for each block
2022-12-21 03:31:42 -05:00
Jude Nelson
03665c3a48
fix: mock stacks block affirmation weight
2022-12-21 03:31:27 -05:00
Jude Nelson
6ad5b27f72
fix: proper handling of sortition reorg detection, plus proper handling of sortition revalidation with existing Stacks blocks
2022-12-21 02:29:55 -05:00
Jude Nelson
c3a191fcff
fix: have the sortition DB track the affirmation map represented by which PoX anchor blocks it believes are known or unknown
2022-12-21 02:29:23 -05:00
Jude Nelson
ac977961c1
chore: burnchain passthrough
2022-12-21 02:29:05 -05:00
Jude Nelson
92e18cc253
chore: add tests for find_inv_search
2022-12-21 02:28:52 -05:00
Jude Nelson
8555f500e7
fix: drop as_pox_id; add find_inv_divergence() for choosing where to begin an inv scan
2022-12-21 02:28:04 -05:00
Jude Nelson
84483e9077
chore: more integration tests
2022-12-21 02:27:45 -05:00
Jude Nelson
0b6f7341e9
Merge branch 'next' into chore/merge-master-to-next
2022-12-21 06:54:15 +00:00
Jude Nelson
138f0c95b2
Merge pull request #3451 from stacks-network/fix/pox_2-is-default-at-v1_unlock+1
...
pox-2 is default contract at v1_unlock_height+1
2022-12-21 06:52:06 +00:00