Commit Graph

15266 Commits

Author SHA1 Message Date
Jude Nelson
8029c8f7a7 flat_map 2021-04-16 22:27:27 -04:00
Jude Nelson
a3f8c93c81 activate new integration tests 2021-04-16 22:27:10 -04:00
Jude Nelson
13961352bc fix failing test 2021-04-16 17:14:06 -04:00
Jude Nelson
9ded3ba3f6 address feedback 2021-04-16 17:13:56 -04:00
Jude Nelson
b564c6cb93 address feedback (comments and structure) 2021-04-16 17:13:41 -04:00
Jude Nelson
59a9c22213 clarify that mine_next_microblock_from_txs() is *only* for testing 2021-04-16 17:13:25 -04:00
Jude Nelson
5e9ecad657 log block budgets when processing streams 2021-04-16 17:12:55 -04:00
Jude Nelson
a1062f332c fix compile bug 2021-04-16 03:56:43 -04:00
Jude Nelson
479cd78fb8 Merge branch 'develop' into fix/atlas-replication-retry 2021-04-16 03:53:15 -04:00
Jude Nelson
a2ac514c4e add a couple of microblock mining tests:
* verify that the miner won't produce too-long of a microblock stream even if given the chance to mine _many_ microblocks
* use the fault-injection logic to force the microblock miner to mine a too-long stream, and verify that the anchored block miner truncates it to the longest-possible stream to mine
2021-04-16 03:13:21 -04:00
Jude Nelson
9a567e9639 plumb through microblock chain counter 2021-04-16 03:12:59 -04:00
Jude Nelson
a8835b1c21 Fix a few bugs in the microblock tenure logic:
* if we try to mine an anchored block whose microblock stream is too long, then try again, but using the microblock prefix that is short enough
* make sure to reset the microblock miner state when we discover a new anchored block
* coalesce repeated requests to run tenure for blocks and microblocks, in case they happen faster than we can act on them
* implement a "number of unconfirmed microblocks" block counter, for use in testing
2021-04-16 03:07:38 -04:00
Jude Nelson
170ddcd6dc plumb through new config option max_rbf 2021-04-16 03:07:05 -04:00
Jude Nelson
7eb8da9186 make it possible to set the maximum RBF ratio beyond 1.5x, so the miner can attempt to mine many anchored blocks 2021-04-16 03:06:17 -04:00
Jude Nelson
c6f6d785e7 initialize the attachment downloader on p2p network initialization 2021-04-16 03:05:48 -04:00
Jude Nelson
6b4f828d2d add fault-injection check and constants 2021-04-16 03:05:33 -04:00
Jude Nelson
32535c2292 add fault injection to the microblock miner, in order to force it to mine a microblock stream that is too big or costly to confirm 2021-04-16 03:05:08 -04:00
Jude Nelson
7c80879f16 add fault injection to disable the cost/size overflow checks 2021-04-16 03:04:30 -04:00
pavitthrap
da3c0ddda2 Merge pull request #2581 from blockstack/fix/updated-bitcoind
Fix/updated bitcoind
2021-04-15 15:08:51 -04:00
pavitthrap
b42cb5c138 Merge branch 'develop' into fix/updated-bitcoind 2021-04-15 12:22:42 -04:00
Pavitthra Pandurangan
0fde36f125 Moved default wallet creation to so it is constrained to test code 2021-04-14 12:28:06 -04:00
Jude Nelson
80128c8bb7 only sync the last few reward cycles on mainnet by default 2021-04-13 18:38:22 -04:00
Pavitthra Pandurangan
f331bad3af Returned Result from call to wallet creation & avoid wallet creation for non-test situations 2021-04-13 17:01:02 -04:00
Jude Nelson
ee468769a1 Fix new_bytes calculation (thanks @pavitthrap) 2021-04-13 16:34:17 -04:00
Jude Nelson
9d29b129f2 Add copyright statement; implement exponential timeout with jitter when re-trying an Atlas request (capped at a 10-minute delay interval) 2021-04-13 02:27:07 -04:00
Aaron Blankstein
252d869d12 Merge pull request #2580 from blockstack/feat/unmask-panic-msg
Use display fmt for panic output
2021-04-12 09:08:10 -05:00
Aaron Blankstein
5b1ac4ca9a Merge branch 'develop' into feat/unmask-panic-msg 2021-04-09 11:08:59 -05:00
Aaron Blankstein
634e36dc4f Merge branch 'master' into develop 2.0.11.0.0-rc4 2021-04-08 19:14:32 -05:00
Aaron Blankstein
f9e91d96df Merge pull request #2585 from blockstack/hotfix/deserialization
Fix: better deserialization error handling
2.0.10.0.1
2021-04-08 19:07:39 -05:00
Pavitthra Pandurangan
1ef2ccb0e6 Only initialize wallet for miner, avoid panic if RPC request fails 2021-04-08 13:10:29 -04:00
Aaron Blankstein
e762ef5904 fix: better deserialization error handling 2021-04-08 11:54:10 -05:00
Pavitthra Pandurangan
b4ee3446b0 Made the fix backwards compatible 2021-04-07 20:31:06 -04:00
Pavitthra Pandurangan
7165bb68b4 Fix: ensured neon integrations tests work with bitcoind version 0.21.0 2021-04-07 18:13:21 -04:00
Aaron Blankstein
0183fb3e53 use display fmt for panic output 2021-04-07 16:09:15 -05:00
Aaron Blankstein
35b5f6bef8 Merge pull request #2579 from blockstack/feat/unmask-panic-msg
Feature: stacks-node panic handler to print abort messages
2021-04-07 13:06:33 -05:00
Aaron Blankstein
a91a5a6b71 Merge branch 'develop' into feat/unmask-panic-msg 2021-04-07 11:17:44 -05:00
Jude Nelson
d0a5e24af2 Merge pull request #2576 from blockstack/fix/spinup-stall
don't wait forever while waiting for an inv-sync pass
2021-04-07 16:02:14 +00:00
Aaron Blankstein
37ca287226 feat: stacks-node panic handler should print abort messages 2021-04-07 10:24:01 -05:00
Jude Nelson
c3d402cd50 don't wait forever while waiting for an inv-sync pass 2021-04-07 01:02:30 -04:00
Ludo Galabru
11f9820bcc Merge pull request #2570 from blockstack/fix/book-deadlock
Boot looping
2.0.11-rc2
2021-04-06 19:01:40 -04:00
Ludo Galabru
dceca5f433 Merge branch 'develop' into fix/book-deadlock 2021-04-06 17:55:13 -04:00
Jude Nelson
7160d4892a Merge pull request #2574 from blockstack/fix/2.0.11-rc2-integration-tests
Fix/2.0.11 rc2 integration tests
2021-04-06 20:58:56 +00:00
Ludo Galabru
36f7c12c38 fix: terminating event observer 2021-04-06 15:53:01 -04:00
Ludo Galabru
13daa42e71 chore: cargo fmt 2021-04-06 15:23:43 -04:00
Ludo Galabru
d4e23c8471 fix: announce burnchain block 2021-04-06 15:19:34 -04:00
Ludo Galabru
e09ebf2bc1 Revert "fix: patch proposal"
This reverts commit 0da0797f71.
2021-04-06 15:19:08 -04:00
Jude Nelson
8aeaa1f7b9 fix typo 2021-04-06 14:40:56 -04:00
Jude Nelson
92171168dd fix broken test compile 2021-04-06 14:40:34 -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
6e8b2692cf fix atlas stress test, and bump timeouts a little bit 2021-04-06 13:47:52 -04:00