Commit Graph

12412 Commits

Author SHA1 Message Date
Jude Nelson
7f47aaf39d Merge branch 'master' into next 2020-07-13 11:46:34 -04:00
Jude Nelson
16d7fd423a Merge pull request #1726 from blockstack/feat/marf-net-unconfirmed-state
Represent unanchored microblock state
2020-07-11 23:05:02 -05:00
Jude Nelson
f8ed740500 fix failing test 2020-07-11 22:46:28 -04:00
Jude Nelson
7934450d29 expand microblock test to upload unanchored microblocks and query chain state from them 2020-07-11 19:16:36 -04:00
Jude Nelson
1cb3ba9802 test code to make a microblock from transactions 2020-07-11 19:16:17 -04:00
Jude Nelson
060fbe1aa5 refresh unconfirmed state when we have new block data (or in the p2p thread, whenever we re-poll) 2020-07-11 19:15:55 -04:00
Jude Nelson
381f4207fb handle uploading a microblock 2020-07-11 19:15:29 -04:00
Jude Nelson
628d67e620 forward along uploaded microblocks, and use that as a hint to reload unconfirmed state 2020-07-11 19:15:09 -04:00
Jude Nelson
c703316cd1 network result to capture http-uploaded microblocks 2020-07-11 19:08:20 -04:00
Jude Nelson
4a0cfbb65b code for posting microblocks 2020-07-11 19:08:04 -04:00
Jude Nelson
0eb1ff5b55 convert chainstate error into JSON error 2020-07-11 19:07:52 -04:00
Jude Nelson
dcc12c62ca API update 2020-07-11 19:07:37 -04:00
Jude Nelson
28215457d3 open unconfirmed state in a read-only fashion, so other chainstate handles can read it 2020-07-11 19:07:17 -04:00
Jude Nelson
19b619b9a0 preprocess_microblock_stream() should return an Err(..) if the microblock is invalid (so we can capture the reason) 2020-07-11 19:06:38 -04:00
Jude Nelson
686a584efc when natpunch protocol is running, allow for dead connections (since a neighbor learning its IP address will disconnect and reconnect with its neighbors) 2020-07-10 15:00:31 -04:00
Jude Nelson
1dd7c22147 intermittent test failure debug output at INFO level 2020-07-10 15:00:04 -04:00
Aaron Blankstein
04145c4e81 Merge pull request #1725 from blockstack/feat/1676-burndb
[PoX] Refactoring BurnDB
2020-07-10 13:53:27 -05:00
Aaron Blankstein
49c17b0160 rename to is_pox_id_descendant 2020-07-10 13:12:55 -05:00
Jude Nelson
d78f575832 use StacksEpochReceipt in append_block 2020-07-10 13:06:23 -04:00
Aaron Blankstein
b8b7abbcdb PoxIdentifier -> PoxId, plus some docstrings for the identifiers 2020-07-10 10:59:04 -05:00
Aaron Blankstein
8ccb45b1ed rename burndb instances to sortdb 2020-07-10 10:38:25 -05:00
Aaron Blankstein
d1e6a22704 use MAX, add arrival_index index 2020-07-10 09:53:07 -05:00
Jude Nelson
7d1c6f04a1 Merge pull request #1729 from psq/patch-2
fix missing closing code block in sip-003
2020-07-09 22:48:51 -05:00
Pascal
121a6c3608 fix missing closing code block 2020-07-09 17:00:11 -07:00
Aaron Blankstein
fd819305f6 add possibly intended comment? 2020-07-09 14:23:04 -05:00
Aaron Blankstein
99ed20971a a couple renamings 2020-07-09 13:45:02 -05:00
Jude Nelson
a9c9cfa710 fix test build 2020-07-09 14:00:01 -04:00
Jude Nelson
5611e6db13 use impl_serde_byte_array 2020-07-09 13:25:04 -04:00
Jude Nelson
d35c577a3c fix build 2020-07-09 13:10:55 -04:00
Aaron Blankstein
400f9fafb7 Merge branch 'master' into next 2020-07-09 11:48:19 -05:00
Jude Nelson
8ebe826f1c Merge branch 'master' into feat/marf-net-unconfirmed-state 2020-07-09 02:40:48 -04:00
Jude Nelson
ee274c8581 cleaner implementation of fix for #1712 2020-07-09 02:36:16 -04:00
Jude Nelson
932b29dd8e expand RPC test coverage so we can (a) cover all supported RPC calls and (b) cover queries against confirmed and unconfirmed state 2020-07-09 02:35:45 -04:00
Jude Nelson
f7c98d7af0 if the canonical stacks block changes, reload the unconfirmed chain view. Otherwise, refresh it. 2020-07-09 02:35:19 -04:00
Jude Nelson
39272d0d87 slightly better debug output; use into_iter() 2020-07-09 02:35:05 -04:00
Jude Nelson
e0d9ce53c8 expand relevant requests to take a StacksBlockId chain tip as an optional argument 2020-07-09 02:34:36 -04:00
Jude Nelson
fca02f76d3 add support for tip= query parameter to specify the StacksBlockId chain tip; add HttpResponseType parsers for remaining types 2020-07-09 02:34:05 -04:00
Jude Nelson
d518a62577 serde for StacksBlockId 2020-07-09 02:33:47 -04:00
Jude Nelson
4eb6b55b37 test api sync 2020-07-09 02:33:37 -04:00
Jude Nelson
3526a5a38b don't drop unconfirmed tries unless we're in an unconfirmed MARF storage 2020-07-09 02:33:12 -04:00
Jude Nelson
083884b292 fix #1712 2020-07-09 02:32:40 -04:00
Jude Nelson
4b080406d9 refresh vs reload unconfirmed state; add a heavier test-case 2020-07-09 02:32:16 -04:00
Jude Nelson
4906d6c1dd maybe_read_only_clarity_tx() for operating on possibly-unconfirmed microblock state 2020-07-09 02:31:46 -04:00
Jude Nelson
c99a8021d9 StacksEpochReceipt type for capturing parent microblock stream and anchored block execution costs 2020-07-09 02:31:19 -04:00
Aaron Blankstein
f954eb9394 cleanup debugging trails 2020-07-08 14:46:52 -05:00
Aaron Blankstein
b28f498c50 add test for fetching/storage in burnchaindb 2020-07-08 14:44:27 -05:00
Ludo Galabru
683682f2e6 Merge pull request #1723 from blockstack/fix/prometheus
Update Dockerfile to produce a stacks-node bin with monitoring enabled
2020-07-08 13:53:17 -04:00
Aaron Blankstein
8e6cb535c5 implement the sortitiondb interface for the chains coordinator 2020-07-08 12:43:55 -05:00
Aaron Blankstein
ae3c72c1e3 Merge branch 'next' into feat/1676-burndb 2020-07-08 12:43:32 -05:00
Aaron Blankstein
b8831dcd2b Merge branch 'master' into next 2020-07-08 12:41:37 -05:00