1831 Commits

Author SHA1 Message Date
Jude Nelson
1705de4709 refactor: DRY up last_burn_block and last_sortition_mutex (use the latter only), and use k/v logging 2022-01-20 23:41:07 -05:00
Jude Nelson
a9b6212e7c refactor: microblock_mine_attempt_ms is a miner setting, not a node setting 2022-01-20 23:40:46 -05:00
Jude Nelson
02de1eba76 chore: clean up imports 2022-01-18 21:03:47 -05:00
Jude Nelson
deeaef325c fix: abort a block-commit if the burnchain or stacks chain tips change 2022-01-18 21:03:32 -05:00
Jude Nelson
513bbfa4bf fix: compile wihout test 2022-01-18 18:34:34 -05:00
Jude Nelson
4e1efce43d fix: bump wait times for bitcoind forking test to make it more reliable 2022-01-18 18:25:44 -05:00
Jude Nelson
108497fdf0 refactor: consolidate counters and other free state into RunLoop, and refactor .start() into a set of different methods that carry out a specific task. Also, document them. 2022-01-18 18:25:03 -05:00
Jude Nelson
1c234c0a7c refactor: remove NeonGenesisNode and InitializedNeonNode in favor of StacksNode; move counters into the RunLoop; clean up arguments to both StacksNode::spawn() and spawn_*() methods. ALSO: cancel RunTenures if they finish producing a block after their targeted tip is no longer the canonical tip. 2022-01-18 18:24:24 -05:00
Jude Nelson
235adf4d5f refactor: remove old NeonNode imports 2022-01-18 18:23:22 -05:00
Jude Nelson
a16c74f391 fix: lengthen microblock miner deadline 2022-01-17 01:04:12 -05:00
Jude Nelson
1989b46d73 fix: set high microblock deadline 2022-01-16 23:59:41 -05:00
Jude Nelson
fc77d39196 fix: advance target burnchain height to start of next reward cycle, or burnchain tip -- whichever is earlier -- so we don't constantly invoke the pox sync watchdog (which should only be invoked on reward cycle boundaries) 2022-01-16 23:57:47 -05:00
Jude Nelson
f128eedd94 feat: add microblock miner deadline, independent of anchored block miner deadlines 2022-01-16 23:57:14 -05:00
Jude Nelson
73c5308360 fix: don't keep bumping the assumed burnchain height after we passed the burnchain tip per the headers DB in the indexer 2022-01-16 03:26:55 -05:00
Jude Nelson
8b7e3d0170 feat: test that we correctly skip sortitions if the last sortition differs from the RunTenure directive. 2022-01-16 02:43:52 -05:00
Jude Nelson
c702ea3abc chore: add test code to track missed tenures 2022-01-16 02:43:35 -05:00
Jude Nelson
507c16f224 fix: don't attempt to process tenures if the last-processed sortition is different than the one used to queue the original tenure. Possibly fixes #2969 as well. 2022-01-16 02:42:47 -05:00
Jude Nelson
6b03e701f7 fix: use microblock frequency to determine frequency of attempted microblock tenures 2022-01-16 02:42:16 -05:00
Jude Nelson
bf91a4f75f Merge branch 'develop' into feat/faster-bootup 2022-01-15 11:14:02 -05:00
Greg Coppola
90e6a88e7c use expect instead of assert 2022-01-13 13:15:54 +00:00
Greg Coppola
342bc6612e comment to explain the method 2022-01-12 21:19:18 +00:00
Greg Coppola
1665093368 make a spearate dir for the "estimates 'tables 2022-01-12 21:15:59 +00:00
Greg Coppola
e6cff5e8b1 start tests again 2022-01-12 18:59:40 +00:00
Greg Coppola
e5990680ca restart the tests 2022-01-12 18:13:21 +00:00
Aaron Blankstein
08e489d2f7 chore: update h1-async for prom impl in stacks-node 2022-01-12 10:57:10 -06:00
Aaron Blankstein
4558b72da8 chore: update async-h1 to resolve #2990 2022-01-12 10:06:33 -06:00
Greg Coppola
0e64d280f1 code clean ups 2022-01-12 12:32:00 +00:00
Greg Coppola
25aaa1d564 add spender addr 2022-01-11 23:10:18 +00:00
pavitthrap
abb0a94c10 Merge branch 'feat/miner-structured-logging' into fix/update-microblock-builder-logic 2022-01-11 11:09:47 -05:00
Pavitthra Pandurangan
31a538d5c8 Fixes: removed logs, updated test names 2022-01-11 11:04:20 -05:00
Greg Coppola
0ee4c4fe9f fmt 2022-01-11 14:12:26 +00:00
Greg Coppola
6305f48816 pavi's comments 2022-01-11 14:12:07 +00:00
Pavitthra Pandurangan
862d24e63c Added fourth test: microblock limit behavior 2022-01-10 18:42:18 -05:00
Greg Coppola
e6d4756565 Merge branch 'develop' into feat/hook-up-estimator 2022-01-10 21:51:02 +00:00
Greg Coppola
644c64091e remove the fee_estimation 2022-01-10 21:47:01 +00:00
Greg Coppola
3a247045a1 replace vec with array 2022-01-10 21:05:41 +00:00
Greg Coppola
9d8134208b address jude's comments 2022-01-10 17:14:01 +00:00
Jude Nelson
5b70e008c5 fix: pass absolute burnchain block height to pox sync watchdog so we correctly infer ibd status 2022-01-09 23:53:22 -05:00
Jude Nelson
5407d08e80 feat: add trait to burnchain controller to query the total height of the burnchain (even if we haven't downloaded everything yet) 2022-01-09 23:52:40 -05:00
Jude Nelson
419196f737 fix: correct exit condition with new burnchain sync loop so that we don't get stuck forever 2022-01-09 20:05:55 -05:00
Jude Nelson
1242a47989 feat: push the mined block directly to neighbors 2022-01-09 18:40:46 -05:00
Jude Nelson
e9b70348ca fix: remove full inventory sync config option 2022-01-09 18:40:35 -05:00
Jude Nelson
798958d894 Merge branch 'develop' into feat/faster-bootup 2022-01-08 22:55:09 -05:00
Jude Nelson
6112cac711 fix: correct comment 2022-01-08 22:54:37 -05:00
Jude Nelson
56fcf39907 feat: advertize a block directly after we mine it 2022-01-08 22:54:18 -05:00
Jude Nelson
094483791f refactor: don't re-instantiate the BitcoinIndexer over and over; keep it around across burnchain syncs 2022-01-08 22:53:43 -05:00
Pavitthra Pandurangan
36f01f3054 block limit test passing 2022-01-07 18:39:22 -05:00
pavitthrap
3de33b4926 Merge branch 'develop' into feat/miner-structured-logging 2022-01-07 17:45:21 -05:00
Aaron Blankstein
faf1bc35dc Merge remote-tracking branch 'origin/develop' into feat/develop-libclarity-separation 2022-01-07 09:03:27 -06:00
Greg Coppola
0316d4b6e7 fmt 2022-01-07 07:03:33 +00:00