Commit Graph

14331 Commits

Author SHA1 Message Date
Matthew Little
14e51dd357 feat: embed name_zonefiles.txt and implement parser 2021-01-07 14:04:35 +01:00
Diwaker Gupta
269e6623cd Merge pull request #2283 from blockstack/chore/clippy
Remove "absurd comparisons" as identified by Clippy.
2021-01-06 14:36:12 -05:00
Diwaker Gupta
40c6cab098 Remove "absurd comparisons" as identified by Clippy.
Per
https://rust-lang.github.io/rust-clippy/rust-1.49.0/index.html#absurd_extreme_comparisons:

"Checks for comparisons where one side of the relation is either the
minimum or maximum value for its type and warns if it involves a case
that is always true or always false."
2021-01-06 13:45:22 -05:00
Jude Nelson
7b021453bb Merge pull request #2271 from blockstack/fix/2270
Fix 2270
v24.3.3.0-xenon
2021-01-06 04:45:56 +00:00
Jude Nelson
6c1b2ed64b don't panic if the network dispatch fails (partially addresses #2270 -- at least now resource exhaustion won't trigger a crash this way) 2021-01-05 15:36:36 -05:00
Jude Nelson
404f87d009 Merge pull request #2266 from blockstack/fix/net-slow-lock
Fix/net slow lock
v24.3.2.0-xenon
2021-01-05 15:50:06 +00:00
Aaron Blankstein
6343af742e Merge pull request #2268 from blockstack/feat/thread-names-json
Chore: use thread names in slog_json as well
2021-01-05 08:49:32 -06:00
Jude Nelson
1d977c1ff1 address feedback 2021-01-05 09:49:14 -05:00
Aaron Blankstein
ae8f3aea8e use thread names in slog_json as well 2021-01-05 08:44:34 -06:00
Aaron Blankstein
5dd6314f3d Merge pull request #2255 from blockstack/fix/microblock-mining
Do not abort mining a block if the microblock stream failed to load
2021-01-05 08:43:05 -06:00
Jude Nelson
bfc3edc6ea cargo fmt 2021-01-05 08:37:10 -05:00
Jude Nelson
19c5c7f9a6 Merge branch 'master' into fix/net-slow-lock 2021-01-05 08:32:28 -05:00
Aaron Blankstein
6a8c2f64ab Merge pull request #2265 from blockstack/fix/deadlock-2262
Fix #2262 deadlocking behavior by converting tx usage to conn
2021-01-05 07:30:21 -06:00
Diwaker Gupta
e395a36f4a Merge pull request #2263 from blockstack/chore/logs
Use thread-names instead of thread-ids in logs.
2021-01-05 06:47:36 -05:00
Jude Nelson
23b2bb7c97 some better debug otuputs 2021-01-05 01:35:10 -05:00
Jude Nelson
0cd260238d move microblock miner and unconfirmed state management into the relay thread, and have the relay thread pass back the list of unconfirmed transactions to the p2p thread so it can service requests to them via the RPC interface 2021-01-05 01:34:35 -05:00
Jude Nelson
d310f68488 begin_read_only_checked() -- error out if the underlying parent trie doesn't exist 2021-01-05 01:34:12 -05:00
Jude Nelson
f1175811a1 eprintln! not debug! so we can read it without debug output 2021-01-05 01:33:55 -05:00
Jude Nelson
cb87592322 read-only connection, but checked (i.e. for reading an unconfirmed trie that can disappear) 2021-01-05 01:33:36 -05:00
Jude Nelson
00a7c2d9f2 reading unconfirmed state read-only can fail due to an absent underlying trie, so handle as a 404 2021-01-05 01:33:11 -05:00
Jude Nelson
039d2cd56e relayer refreshes unconfirmed state 2021-01-05 01:32:58 -05:00
Jude Nelson
8f2c8d5e22 p2p network does not refresh unconfirmed state anymore 2021-01-05 01:32:34 -05:00
Jude Nelson
3e8198bb70 create read-only mode of operation that cannot refresh state from microblocks, but can read an existing trie 2021-01-05 01:32:00 -05:00
Jude Nelson
08a4fe1015 API sync with clarity -- use checked read-only connection 2021-01-05 01:31:41 -05:00
Jude Nelson
bab57bd5e6 catch readonly errors from missing unconfirmed state and handle accordingly 2021-01-05 01:31:15 -05:00
Jude Nelson
b7194c395f Merge branch 'fix/microblock-mining' into fix/net-slow-lock 2021-01-04 22:20:10 -05:00
Jude Nelson
73e650995c move unconfirmed state management and microblock mining out of the p2p thread and into the relayer thread 2021-01-04 22:19:05 -05:00
Aaron Blankstein
2d8730fb98 fix: #2262 deadlocking behavior between the miner and the chains coordinator 2021-01-04 20:27:06 -06:00
Diwaker Gupta
2bdd3df634 Use thread-names instead of thread-ids in logs.
Actual lines changed is < 20, most of the diff is whitespace adjustment
by `cargo fmt`.
2021-01-04 21:17:28 -05:00
Aaron Blankstein
2d6318300b do not abort mining a block if the microblock stream failed to load 2021-01-04 10:50:20 -06:00
Ludo Galabru
a3fcb2d3ec Merge pull request #2238 from blockstack/fix/append-doc
Fix (append ...) documentation
2021-01-02 11:09:29 -05:00
Aaron Blankstein
1c7f0e3f1b Merge pull request #2244 from blockstack/test/fix-tests
Test fixes
2021-01-02 10:07:22 -06:00
Aaron Blankstein
ff0a0579ec use Vec::resize to avoid stack allocating the vec in musl 2020-12-31 14:20:38 -06:00
Aaron Blankstein
7a49b8133c DRY neon_integrations tests, add clear() to the event observer spawn 2020-12-31 11:25:46 -06:00
Aaron Blankstein
d773f1a6b2 fix pipe unit test 2020-12-31 11:24:58 -06:00
Aaron Blankstein
09111c69ae Merge pull request #2242 from blockstack/fix/pox-anchor-count
Fix: PoX Anchor Counting
v24.3.1.0-xenon
2020-12-31 10:10:49 -06:00
Aaron Blankstein
15e3071a2f skip if not found 2020-12-31 09:38:10 -06:00
Aaron Blankstein
d8aead9b58 fix pox vote counting 2020-12-31 09:34:01 -06:00
Ludovic Galabru
694ae35e26 chore: cargo fmt 2020-12-30 17:08:48 -05:00
Ludovic Galabru
1eba9d9646 fix: append documentation 2020-12-30 17:03:41 -05:00
Ludo Galabru
4054d04c32 Merge pull request #2237 from blockstack/next
Release Xenon
v24.3.0.0-xenon
2020-12-30 16:28:58 -05:00
Ludo Galabru
8f662ef838 Merge pull request #2233 from blockstack/feat/pox-fixes
PoX - Adjustments
2020-12-30 16:23:39 -05:00
Ludovic Galabru
badd707a9c chore: cargo fmt 2020-12-30 16:17:02 -05:00
Ludovic Galabru
0419ad22d7 fix: remove lockup events 2020-12-30 16:03:23 -05:00
Ludovic Galabru
7db5c77b14 Merge branch 'next' into feat/pox-fixes 2020-12-30 16:00:43 -05:00
Ludovic Galabru
1e5e08c548 fix: warnings 2020-12-30 16:00:19 -05:00
Aaron Blankstein
fd71c6a1bc Merge pull request #2235 from blockstack/feat/reset-xe-2
Update Xenon magic bytes for reset
2020-12-30 14:47:24 -06:00
Ludovic Galabru
438e0e7ab9 fix: reintroduce check 2020-12-30 15:36:43 -05:00
Ludovic Galabru
935f95b650 fix remaining tests 2020-12-30 15:32:55 -05:00
Ludovic Galabru
2ba7970e56 chore: cargo fmt 2020-12-30 14:56:20 -05:00