1831 Commits

Author SHA1 Message Date
Jude Nelson
10429c590a feat: don't mine if there's enough unprocessed blocks, and add fault injection to enable tests to hide blocks to trigger PoX reorgs 2022-12-16 02:03:30 -05:00
Jude Nelson
9cfe4d4ee8 chore: fault injection plumb-through, as well as offering a choice to either block on missing anchor blocks or soldier on without them (the latter is used for miners; the former for followers) 2022-12-16 02:02:45 -05:00
Jude Nelson
136063ff04 fix: fix some failing tests 2022-12-16 00:29:06 -05:00
Jude Nelson
793f8edc8a Merge branch 'master' into chore/merge-master-to-next 2022-12-15 08:53:56 -05:00
Jude Nelson
361b3bd415 chore: consolidate hidden block fault injection 2022-12-04 13:49:10 -05:00
Jude Nelson
a86930a2a7 fix: off-by-one errors now that the genesis block is a separate mined-block event 2022-12-03 14:34:51 -05:00
Jude Nelson
5188d467b1 feat: new test push_boot_receipts 2022-12-02 17:27:33 -05:00
Jude Nelson
ea32a36424 refactor: separate chainstate instantiation and receipt propagation from boot-up in order to verify that we push boot receipts immediately 2022-12-02 17:26:52 -05:00
Jude Nelson
ee9477967e chore: method for pushing boot receipts 2022-12-02 17:26:41 -05:00
Jude Nelson
a72b6ee4a4 fix: directly push boot receipts as soon as we have them 2022-12-02 17:26:27 -05:00
Jude Nelson
a035f3c140 chore: fault injection for missing blocks 2022-12-02 17:26:16 -05:00
Jude Nelson
782d0dd27a chore: remove boot_receipts as anything special that we need to store in the event dispatcher 2022-12-02 17:25:51 -05:00
Jude Nelson
9c7aa3cb90 chore: unused import 2022-12-02 17:23:54 -05:00
Jude Nelson
ca11f823b9 fix: debug! instead of info! for a commonly-emitted line 2022-11-28 12:12:29 -05:00
Jude Nelson
b89e7ded9a fix: use epoch 2.1 data to satisfy the new config checker 2022-11-23 11:21:38 -05:00
Jude Nelson
fa3cb94a0f fix: runtime 2022-11-23 11:02:20 -05:00
Jude Nelson
fefad6cc94 fix: update chain tip hash 2022-11-23 10:58:43 -05:00
Jude Nelson
f2f0e72532 fix: use the original epochs that caused these tests to pass 2022-11-23 10:03:55 -05:00
Jude Nelson
d338beddb0 fix: restore original epochs used for testing pre-2.1 2022-11-23 00:16:54 -05:00
Jude Nelson
6cda2ccde9 fix: API sync; add determinstic tie-break for stacks chain tips; clean up compiler warnings 2022-11-22 18:28:02 -05:00
Jude Nelson
8c2931d2f0 Merge branch 'next' into feat/check-pox-2-params 2022-11-22 21:54:33 +00:00
Jude Nelson
9475b9983c fix: revert new runtime 2022-11-21 23:27:28 -05:00
Jude Nelson
d6a45c9ffb fix: new runtime limit 2022-11-21 18:20:55 -05:00
Jude Nelson
5fbc6ac1ab fix: uew new burnchain constructor 2022-11-21 18:20:39 -05:00
Jude Nelson
98c42e48e7 fix: make PoX sunset configurable, as well as the wallet name, and add a way to build a Burnchain from config 2022-11-21 18:20:17 -05:00
Jude Nelson
377f46306d fix: use burnchain constructor in config 2022-11-21 18:20:03 -05:00
Jude Nelson
920542f597 fix: use burnchain constructor in config, and append wallet path for listunspent 2022-11-21 18:19:40 -05:00
Jude Nelson
cb4321836e fix: neon_integration tests largely run in epoch 2.05, so make it so. However, update integration tests to run in epoch 2.1 2022-11-21 10:55:51 -05:00
Jude Nelson
ded5602c09 fix: since the test begins in epoch 2.1, there are no lockup events 2022-11-20 13:30:02 -05:00
Jude Nelson
8de70755de fix: use epoch 2.1 in integration tests 2022-11-20 00:03:26 -05:00
Jude Nelson
d69eb3edf6 fix: use epoch 2.1 by default in integration tests 2022-11-20 00:03:10 -05:00
Jude Nelson
f7f41a98b8 fix: use epoch 2.1 in block-limit test 2022-11-20 00:02:53 -05:00
Jude Nelson
99639a2c57 chore: debug epochs to validate 2022-11-20 00:02:19 -05:00
igorsyl
feb873ea86 Merge branch 'develop' into tip-mine 2022-11-18 18:28:27 -06:00
Jude Nelson
7a8abc667d feat: validate epoch 2.1 settings early 2022-11-18 18:41:50 -05:00
Jude Nelson
54260be759 feat: validate epoch 2.1 settings early 2022-11-18 18:41:35 -05:00
Jude Nelson
c348161541 chore: remove unused import 2022-11-18 18:41:24 -05:00
Jude Nelson
d06335907e feat: new method to verify that epoch 2.1 settings are correct 2022-11-18 18:40:52 -05:00
Jude Nelson
4ddbdbc626 refactor: remove update_pox_constants 2022-11-18 18:40:17 -05:00
Jude Nelson
4ffedc3403 fix: require rustls-tls to avoid reqwest segfault 2022-11-18 18:39:53 -05:00
Jude Nelson
d997eb8098 Merge branch 'events/pox-2' of https://github.com/stacks-network/stacks-blockchain into events/pox-2 2022-11-17 22:28:43 -05:00
Jude Nelson
bcb2bc8bff chore: cargo fmt 2022-11-17 22:28:20 -05:00
Jude Nelson
84d643d3d0 fix: fix a regression in how we calculate the new microblock miner chain tip so the cost_so_far gets reset on a new tip 2022-11-17 21:40:15 -05:00
Jude Nelson
5a68f54a8e fix: logical bug in new integration test; also run cargo fmt 2022-11-17 10:49:20 -05:00
Jude Nelson
78dd49e9f4 fix: unset the microblock public key hash at the end of fault testing 2022-11-17 10:37:26 -05:00
Jude Nelson
f81a5e65d0 Merge branch 'next' into events/pox-2 2022-11-16 23:24:23 +00:00
Jude Nelson
7180fba9db Merge branch 'next' into events/pox-2 2022-11-16 20:27:16 +00:00
Jude Nelson
e1a8d770a9 Merge branch 'next' into feat/2625 2022-11-16 20:25:45 +00:00
Jude Nelson
5e10bd55d1 feat: verify that the node can produce invalid blocks but continue to mine valid blocks afterwards (simulating a transient mining bug) 2022-11-16 15:25:41 -05:00
Jude Nelson
8b1fa1722f fix: verify that the canonical tip matches the miner tip, and only mine microblocks if not. They may not match if the miner creates an invalid block for some reason (e.g. due to a bug) 2022-11-16 15:25:07 -05:00