Commit Graph

36 Commits

Author SHA1 Message Date
Jude Nelson
6e1346c5b4 feat: add marf hash and cache options to [node] directive in config file, and use them to create a MARFOpenOpts to pass into the StacksChainState 2022-04-08 23:39:58 -04:00
Pavitthra Pandurangan
6e4046b764 Backported changes from #2630 2021-10-14 16:38:58 -04:00
Pavitthra Pandurangan
ea31eee020 fix: switched all occurrences of max_value/min_value to MAX/MIN because it will deprecated in a future version of Rust 2021-07-29 13:53:11 -04:00
Jude Nelson
80151e9a68 refactor: use latest rust-ism for spin loops 2021-06-28 14:37:01 -04:00
Jude Nelson
c3d402cd50 don't wait forever while waiting for an inv-sync pass 2021-04-07 01:02:30 -04:00
Jude Nelson
db907ebac0 Merge branch 'develop' into fix/2.0.11-rc2-integration-tests 2021-04-06 13:54:27 -04:00
Jude Nelson
fd4781cd2a fix underlying issue of #2572 -- need to always set the ibd flag in the comms struct 2021-04-06 01:40:27 -04:00
Ludo Galabru
763bb53b22 refactor: use interruptable_sleep 2021-04-05 17:16:47 -04:00
Ludo Galabru
7354a9ca46 chore: more refactoring 2021-04-05 16:25:58 -04:00
Ludo Galabru
02e48713d2 Merge branch 'develop' into fix/graceful-term-at-boot
# Conflicts:
#	testnet/stacks-node/src/run_loop/neon.rs
#	testnet/stacks-node/src/syncctl.rs
2021-04-05 14:14:14 -04:00
Ludo Galabru
58da66c898 chore: some refactoring 2021-04-05 14:07:46 -04:00
Jude Nelson
d4532459c2 set ibd in sync comms even if we don't at first know the burnchain tip height 2021-04-01 00:16:50 -04:00
Jude Nelson
4becd173bf remove dead code 2021-03-31 23:48:44 -04:00
Jude Nelson
af4410af2b if there are no sortitions in a reward cycle, don't do any waiting 2021-03-29 18:45:03 -04:00
Ludo Galabru
2608536d4a chore: cargo fmt 2021-03-25 10:39:40 -04:00
Ludo Galabru
4f2228db75 fix: ability to interrupt initial sync 2021-03-25 10:30:30 -04:00
Jude Nelson
08db53bd2c address feedback 2021-03-01 14:03:06 -05:00
Jude Nelson
3fdb0e4500 have the PoX sync watchdog keep track of what the burnchain tip is, and whether or not the node is doing an initial block download. Expose all this information to other threads via its comms struct. Also, when finishing watching for the node to enter a steady state, wait for the download state machine to do a pass before returning. 2021-02-24 20:55:55 -05:00
Aaron Blankstein
1f6a75d894 sleep for 10s 2021-01-14 11:16:55 -06:00
Jude Nelson
8b0bf23ea3 sleep 1s if we're in the first reward cycle 2021-01-14 12:15:49 -05:00
Aaron Blankstein
e9b7e1c5d8 test: unconditional download burn blocks in neon_integrations 2021-01-13 12:56:32 -06:00
Jude Nelson
e2106e9956 wait for at least one inventory sync before and after taking samples, so the node doesn't try to proceed to download blocks until we've had a chance to check with the block downloader and inventory sync state machines (which must have used an always-allowed peer) 2021-01-12 02:47:41 -05:00
Jude Nelson
5ef16e41dd block on inv state-machine sync before fetching the next PoX reward cycle 2021-01-07 04:02:11 -05:00
Jude Nelson
df859bbdd6 cargo fmt 2020-11-21 01:27:12 -05:00
Jude Nelson
5797e55b9e API sync 2020-11-21 00:48:27 -05:00
Jude Nelson
e9e4ec5ec2 cargo fmt 2020-10-30 23:48:21 -04:00
Jude Nelson
b9064892bc fix bug that makes the PoX watchdog always think it's in the last reward cycle 2020-10-30 23:45:47 -04:00
Jude Nelson
a15a195fb4 cargo fmt 2020-10-28 19:51:54 -04:00
Jude Nelson
8f008a89c4 make it so burnchain sync in a reward cycle that isn't the last reward cycle waits for at least one inv sync (#1996) by plumbing through a shared atomic u64 shared between the p2p thread and the burnchain thread that lets the burnchain thread detect when the number of inv syncs increases 2020-10-28 19:47:05 -04:00
Jude Nelson
91433d4d95 make sure the node doesn't mine a block off of a stale canonical sortition tip, and do a better job logging when runtenures get processed (and when we enter steady state in the PoX watchdog) 2020-10-19 22:44:51 -04:00
Jude Nelson
51a410ac6f separate max_samples from download timeout 2020-10-17 03:26:39 -04:00
Aaron Blankstein
33ec31b392 use config option to control sample size, hardcode sample wait 2020-10-13 11:09:58 -05:00
Aaron Blankstein
5cb5b9edbc cargo fmt 2020-10-07 13:50:56 -05:00
Aaron Blankstein
6d81a5e2a8 unit+int tests for threshold/addr repeats. write burnchain config to pox contract at boot. parameterize syncctl wait times for testing 2020-10-06 18:01:25 -05:00
Jude Nelson
abe8416f58 cargo fmt 2020-10-05 21:08:03 -04:00
Jude Nelson
f74be6cc3e put PoX sync watchdog into its own file 2020-10-05 21:05:43 -04:00