Commit Graph

11421 Commits

Author SHA1 Message Date
Aaron Blankstein
a3b60aec00 Merge pull request #1422 from blockstack/feature/rename-program-to-contract
Rename sample-programs to sample-contracts
2020-04-16 14:14:51 -05:00
Aaron Blankstein
98cdfd4d7f Merge branch 'master' into feature/rename-program-to-contract 2020-04-16 11:35:46 -05:00
Jude Nelson
062dbc1b51 Merge pull request #1426 from blockstack/fix/1423-net-poll-unification
Unified net server socket polling
2020-04-16 16:18:41 +00:00
Matthew Little
d4d2012d8c fix: update vscode debug config 2020-04-16 17:56:16 +02:00
Aaron Blankstein
1eb6a9b618 Merge pull request #1408 from blockstack/feature/ignore-slow-serial-tests
#[ignore] slow or serial tests
2020-04-16 09:23:11 -05:00
Jude Nelson
0c1cdd239c HttpPeer is no longer bundled with its own networking state, but instead just maintains conversation states. It receives a NetworkState from its parent PeerNetwork instance for it to use to (de)register events. 2020-04-16 02:06:59 -04:00
Jude Nelson
cd0626ad2d unified polling system for multiple server sockets. There is now a single list of pollable events for all server sockets, and we poll on all of them at once. 2020-04-16 02:06:26 -04:00
Jude Nelson
b2439eb099 use the unified poller to poll both http and p2p messages at once. Also, HttpPeer no longer has any of its own network state, so it doesn't need to be Optional. In addition, fix a subtle bug that could cause network tokens to get clobberred 2020-04-16 02:05:31 -04:00
Jude Nelson
9c4ec23512 when handshaking with a neighbor (or a list of them), wait for them to finish connecting before trying to talk to them 2020-04-16 02:05:04 -04:00
Jude Nelson
7093a7a9a7 network.http is no longer an Option, but a full HttpPeer 2020-04-16 02:04:42 -04:00
Jude Nelson
2eecc498fc do a slightly better job at logging message transmission, in a way that helps us detect if a network pipe gets accidentally dropped (leading to socket poisoning) 2020-04-16 02:04:04 -04:00
Aaron Blankstein
1fb10b9ffd use tarpaulin for code coverage on unit tests. seems to avoid the ooms we started to get with grcov. 2020-04-15 22:01:56 -05:00
Aaron Blankstein
976e547025 ignore test_http_slow_client 2020-04-15 12:27:40 -05:00
Aaron Blankstein
034a15b1a9 Merge branch 'master' into feature/ignore-slow-serial-tests 2020-04-15 12:08:43 -05:00
Jude Nelson
d8856e3e09 Merge pull request #1413 from blockstack/feature/mempool-relay
Feature/mempool relay
2020-04-15 16:48:04 +00:00
Aaron Blankstein
7d2dadee17 add readme note for adding tests 2020-04-15 06:40:27 -05:00
Matthew Little
a356f8b4a3 chore: delete legacy directory 2020-04-15 09:34:25 +02:00
Aaron Blankstein
27b16482ce rename sample-programs to sample-contracts 2020-04-14 17:16:53 -05:00
Jude Nelson
ca46ead451 whoops, fix compilation errors 2020-04-14 17:03:27 -04:00
Jude Nelson
b18d328ba8 Merge branch 'master' into feature/mempool-relay 2020-04-14 16:46:45 -04:00
Jude Nelson
d27c54d3ea key transactions by (origin address, origin nonce, sponsor address, sponsor nonce), not txid. This is required to do both replace-by-fee and (later) transaction chaining 2020-04-14 16:22:58 -04:00
Jude Nelson
6d83def441 relay errors back from the p2p network 2020-04-14 16:22:25 -04:00
Aaron Blankstein
ee862645a3 Merge branch 'njordhov-feature/boolean-constants': PR #1343 2020-04-14 08:32:04 -05:00
Aaron Blankstein
aeb75117d7 more unique names for test dbs 2020-04-14 07:56:02 -05:00
Aaron Blankstein
e85f314cd9 unique names for test dbs 2020-04-14 07:46:05 -05:00
Aaron Blankstein
7c06763300 Merge pull request #1415 from blockstack/fix/1376-tx-rollbacks
Enable TX-level rollbacks in Clarity connections
2020-04-14 07:20:28 -05:00
Jude Nelson
a9d457565a disable new state-machines for neighbor tests 2020-04-13 20:26:24 -04:00
Jude Nelson
62d418f617 style lint 2020-04-13 17:59:16 -04:00
Jude Nelson
6134d0793a remvoe more commented code 2020-04-13 17:59:07 -04:00
Jude Nelson
a23566e747 remove commented code 2020-04-13 17:58:48 -04:00
Aaron Blankstein
712787e32d ? -> expect 2020-04-13 16:46:51 -05:00
Aaron Blankstein
e17873955d wrap take/replace usage in a macro 2020-04-13 16:43:20 -05:00
Aaron Blankstein
fcf4b158ae for some reason opt-level=1 is causing the compilation to fail. 2020-04-13 15:55:58 -05:00
Jude Nelson
c220362162 Merge branch 'master' into feature/mempool-relay 2020-04-13 15:59:04 -04:00
Jude Nelson
51035e9d11 add u64_to_sql() and use it in place of redundant checks and as i64 in sqlite statements 2020-04-13 15:57:06 -04:00
Jude Nelson
3631e876f8 explain how to add more initial account balances, and explain the transaction fee argument in the CLI 2020-04-13 13:06:20 -04:00
Matthew Little
1c83de757a fix: move event observer envvar check into config.rs 2020-04-13 19:01:20 +02:00
Matthew Little
a27582732a feat: add info logging to event observer endpoint config 2020-04-13 19:01:20 +02:00
Matthew Little
00d3c506b2 feat: allow specifying endpoint (hostnames) in event observer config 2020-04-13 19:01:20 +02:00
Jude Nelson
9dff58d9cd fix: repair a regression from refactoring -- advertize blocks or microblocks based on the right bitvector 2020-04-13 13:01:14 -04:00
Jude Nelson
2a51f00070 typo in logging 2020-04-13 13:01:02 -04:00
Jude Nelson
1dd5e2bd6d fix: repair a regression in refactoring that prevented a node from advertizing microblocks 2020-04-13 13:00:27 -04:00
Aaron Blankstein
cbe2e007b2 add job that runs all tests on master, .*net.*, .*marf.*, and this branch 2020-04-13 11:04:20 -05:00
Aaron Blankstein
a6a1448261 add tests for tx rollbacks. enable commented out test assertion in contract_stx_transfer() 2020-04-13 09:09:16 -05:00
Jude Nelson
f2d7dfc7ec fix block/microblock push test to keep trying until success 2020-04-13 00:38:49 -04:00
Jude Nelson
2ca8475bd5 bugfix: do not preprocess (and store to staging) a microblock if we have already processed and confirmed it 2020-04-13 00:38:06 -04:00
Jude Nelson
0cbbfb1095 change two things about our database code: use u64::from_column (and u64::from_row), and use query_row() when appropriate 2020-04-12 21:28:31 -04:00
Jude Nelson
2849cc4ac2 require content-type: application/octet-stream for transactions 2020-04-12 21:28:00 -04:00
Jude Nelson
28f4b7f10e use resize() instead of a while-loop 2020-04-12 21:27:49 -04:00
Jude Nelson
0614f794ff logging typo 2020-04-12 21:27:40 -04:00