1831 Commits

Author SHA1 Message Date
Aaron Blankstein
d1c6564f16 parsing sunset burns 2020-10-19 17:55:15 -05:00
Jude Nelson
e0c082717a don't try to mine until the burnchain sync is done 2020-10-19 17:37:41 -04:00
Jude Nelson
b79f1bbb23 cargo fmt 2020-10-19 10:08:18 -04:00
Jude Nelson
96323e5f43 fix UTXO selection so it greedily consumes UTXOs in largest-first order, and use a tighter calculation for RBF 2020-10-19 10:06:01 -04:00
Jude Nelson
a33914a4a7 cargo fmt 2020-10-18 17:27:28 -04:00
Jude Nelson
7c04a9fc69 use Hash160::from_node_public_key() everywhere 2020-10-18 16:34:37 -04:00
Jude Nelson
a72daad50d use Hash160::from_node_public_key() everywhere 2020-10-18 16:34:19 -04:00
Jude Nelson
40db1c4d30 don't generate new keys unless we generate a new block 2020-10-18 16:34:05 -04:00
Jude Nelson
06d886f56d cargo fmt 2020-10-17 03:47:17 -04:00
Jude Nelson
51a410ac6f separate max_samples from download timeout 2020-10-17 03:26:39 -04:00
Jude Nelson
caacc543b3 update the run loop so that we will try and generate a new stacks block multiple times per tenure, so that if a sibling Stacks block arrives, we'll end up building on it (and we'll RBF our last attempt's block-commit) 2020-10-17 03:25:52 -04:00
Jude Nelson
44677e26bb API sync 2020-10-17 03:25:40 -04:00
Jude Nelson
0d439f463d produce multiple Stacks blocks during an epoch, and use replace-by-fee to replace the previous block's block-commit with the new one. Keep all generated blocks around, though, so we can announce a block no matter which one of our block-commits gets selected. 2020-10-17 03:24:53 -04:00
Jude Nelson
a1048ab5c9 cut down block poll time and microblock wait time defaults -- they weren't really helping, and RBF obviates the need to wait for a long period of time and risk skipping a sortition 2020-10-17 03:24:08 -04:00
Jude Nelson
6c0449dcd5 API sync 2020-10-17 03:23:48 -04:00
Jude Nelson
11da2f4c25 API sync 2020-10-17 03:23:38 -04:00
Jude Nelson
626e9b76fb implement a (crude) replace-by-fee transaction formation -- if the caller says that this is the nth attempt to create this transaction (where n > 1), then use RBF to generate the transaction 2020-10-17 03:22:52 -04:00
Ludovic Galabru
4d49cb63b6 Merge branch 'master' into feat/bns/atlas 2020-10-16 16:50:09 -04:00
Aaron Blankstein
99a0b8f6d6 make slog_json compile-time feature 2020-10-16 15:31:36 -05:00
Aaron Blankstein
f3b676d601 remove slog-async, format term output like prior formatting 2020-10-16 11:34:18 -05:00
Aaron Blankstein
13770170fa Merge remote-tracking branch 'origin/master' into feat/slogging 2020-10-16 09:14:24 -05:00
Aaron Blankstein
cce4d5eee5 require all block commits to use 2 output addresses (burn or not) 2020-10-15 17:00:28 -05:00
Aaron Blankstein
bb48228794 fix mut warning 2020-10-15 10:10:21 -05:00
Aaron Blankstein
9dc8b443e3 update integration tests for more outputs 2020-10-15 09:58:16 -05:00
Aaron Blankstein
825afe0aa7 most of the work of porting to multiple commit_outs 2020-10-14 17:14:36 -05:00
Aaron Blankstein
652a015d75 Merge branch 'next' into feat/2-reward-addrs 2020-10-14 14:09:20 -05:00
Aaron Blankstein
cce60cde20 Merge pull request #1961 from blockstack/feat/recency
PoX: Enforce anchor block recency with burn-block-height parameter
2020-10-13 15:04:49 -05:00
Aaron Blankstein
5a88fe8936 add arg to PoxConstants::new 2020-10-13 13:07:50 -05:00
Aaron Blankstein
33ec31b392 use config option to control sample size, hardcode sample wait 2020-10-13 11:09:58 -05:00
Aaron Blankstein
51c59c9dd1 Revert "Strip dead code"
This reverts commit 11b5457bf9.

Revert "Update tests"

This reverts commit 8170d0f185.

Revert "Fix integration test"

This reverts commit 4377ea7f8b.

Revert "From 5 PoX recipients to 1"

This reverts commit e29e17bbb2.
2020-10-13 10:39:54 -05:00
Ludovic Galabru
afdf9b29fa fix: merge issue 2020-10-12 11:46:19 -04:00
Ludo Galabru
1cf08eca14 Merge branch 'next' into feat/xenon-adjustments 2020-10-12 11:28:03 -04:00
Aaron Blankstein
eed4dda091 add integration and unit tests for the participation threshold 2020-10-09 13:26:30 -05:00
Aaron Blankstein
185d4d48a4 add burn-block-ht recency constraints, update existing tests 2020-10-08 18:42:57 -05:00
Aaron Blankstein
5cb5b9edbc cargo fmt 2020-10-07 13:50:56 -05:00
Aaron Blankstein
98f42a83bc sum stacked amounts across multiple entries from same address + int and unit tests 2020-10-06 18:01:25 -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
Ludovic Galabru
63bded099d Draft AtlasDB 2020-10-05 23:38:58 -04:00
Jude Nelson
abe8416f58 cargo fmt 2020-10-05 21:08:03 -04:00
Jude Nelson
04bfa077a7 whoops -- the follower isn't a miner 2020-10-05 21:06:34 -04:00
Jude Nelson
f74be6cc3e put PoX sync watchdog into its own file 2020-10-05 21:05:43 -04:00
Jude Nelson
7adfa86d4a refactor -- move PoX sync watchdog to its own file 2020-10-05 21:05:31 -04:00
Jude Nelson
b7eba08481 syncctl mod 2020-10-05 21:05:20 -04:00
Aaron Blankstein
078f13e936 initial pass on porting macros to slog 2020-10-02 16:51:58 -05:00
Jude Nelson
23d3be191a warn! if there's no VRF private key on file 2020-10-02 09:21:53 -04:00
Ludovic Galabru
52a8d4ba2a Resolve todos, add test config 2020-10-01 10:22:15 -04:00
Ludovic Galabru
2833c5df60 Fix integration test 2020-10-01 00:52:47 -04:00
Ludovic Galabru
5295597675 Fix build / format / tests 2020-10-01 00:11:40 -04:00
Jude Nelson
905c2fdcae cargo fmt --all (again) 2020-09-30 17:59:27 -04:00
Jude Nelson
f884aad91b Merge branch 'master' into feat/1754 2020-09-30 17:58:46 -04:00