Commit Graph

227 Commits

Author SHA1 Message Date
Jude Nelson
6d22cc6ad6 chore: add InvalidState error variant instead of unreachable!() 2023-10-26 00:45:38 -04:00
Jude Nelson
dcfba381b2 chore: address PR feedback 2023-10-26 00:45:26 -04:00
Jude Nelson
a3f6cca6f0 fix: forward stackerdb chunks to relayer 2023-10-26 00:45:09 -04:00
Jude Nelson
f34606797d chore: replace .len() == 0 with .is_empty() 2023-10-21 07:11:03 -04:00
Jude Nelson
915ac5615e fix: use .request_path() 2023-10-21 06:57:24 -04:00
Jude Nelson
a6af3783a1 Merge branch 'develop' into feat/http-rpc-refactor 2023-10-21 06:37:51 -04:00
Jeff Bencin
f6668d8ee3 chore: Apply new rustfmt config from parent commit to all files 2023-10-10 11:11:10 -04:00
Jude Nelson
9919e10649 fix: failure to find a request route is a 404, not a 400 2023-10-05 17:06:20 -04:00
Jude Nelson
1c3c28d22d chore: API sync 2023-10-05 13:50:34 -04:00
Jude Nelson
b3a8b45557 refactor: remove unneeded function args 2023-10-05 13:50:14 -04:00
Jude Nelson
c87c59d20e fix: ensure that the reply handle's inner PipeWrite has at least $SOCKET_SEND_BUFFER bytes of pending data when filling it with the stream generator. 2023-10-05 13:49:45 -04:00
Jude Nelson
4a550bddad feat: when connecting to an address, allow the caller to set the socket send/recv buffer sizes 2023-10-05 13:49:19 -04:00
Jude Nelson
4c3e6e9a6c chore: remove unneeded function args 2023-10-05 13:49:05 -04:00
Jude Nelson
d3fd9b14f8 refactor: remove unneeded function args 2023-10-05 13:48:48 -04:00
Jude Nelson
50f9715e58 refactor: remove unneeded function args 2023-10-05 13:48:35 -04:00
Jude Nelson
8eb1e98626 feat: allow connection opts to set the send/recv socket buffer size (this needs to be known to the http server) 2023-10-05 13:48:16 -04:00
Jude Nelson
1177e64381 refactor: remove unneeded function args 2023-10-05 13:48:05 -04:00
Jude Nelson
5b3edef05d refactor: remove unneeded function args 2023-10-05 13:47:50 -04:00
Jude Nelson
8e880e7a4d fix: count the number of txs sent 2023-10-05 13:47:33 -04:00
Jude Nelson
cdeb6315ff chore: fix regression in NetworkReplyHandle<P: ProtocolFamily>::try_flush() 2023-10-04 13:56:41 -04:00
Jude Nelson
c627eedb0e fix: "pages_indexes" is correct 2023-10-03 23:36:25 -04:00
Jude Nelson
7fe72fcb05 fix: set higher default execution cost so callreadonly test passes 2023-10-03 21:27:40 -04:00
Jude Nelson
03be8c7290 Merge branch 'develop' into feat/http-rpc-refactor 2023-10-03 18:04:26 -04:00
Jude Nelson
63ab815f77 refactor: put _all_ RPC handlers into their own files, and refactor test_rpc() so it can take a series of requests and spit out a series of responses 2023-10-02 16:28:47 -04:00
Jude Nelson
e0a0857a6e refactor: put post-transaction RPC handler into its own file 2023-10-02 16:28:27 -04:00
Jude Nelson
c8682f711a refactor: put post-stackerdb-chunk RPC handler into its own file 2023-10-02 16:17:04 -04:00
Jude Nelson
2a8ee3d1a9 refactor: put post-microblock RPC handler into its own file 2023-10-02 16:16:41 -04:00
Jude Nelson
6d3604b275 refactor: put mempool query RPC handler into its own file 2023-10-02 16:16:24 -04:00
Jude Nelson
213f141dea refactor: put fee-rate estimator RPC handler into its own file 2023-10-02 16:15:59 -04:00
Jude Nelson
3a7f82a30a refactor: put post-blcok RPC handler into its own file 2023-10-02 16:15:41 -04:00
Jude Nelson
74ae694dfb refactor: put get-transaction-unconfirmed RPC handler into its own file 2023-10-02 16:15:19 -04:00
Jude Nelson
863901d859 refactor: put get-stx-transfer-cost RPC handler into its own file 2023-10-02 16:15:01 -04:00
Jude Nelson
90242db08f refactor: put get-stackerdb-metadata RPC handler into its own file 2023-10-02 16:14:42 -04:00
Jude Nelson
490866edbe refactor: put get-stackerdb-chunk RPC handler into its own file 2023-10-02 16:14:19 -04:00
Jude Nelson
1c5b0e43a2 refactor: put get-pox-info RPC handler into its own file 2023-10-02 16:13:59 -04:00
Jude Nelson
36b91c9089 refactor: put get-neighbors RPC handler into its own file 2023-10-02 16:13:43 -04:00
Jude Nelson
7ad39eb03e refactor: put get-unconfirmed-microblocks RPC handler into its own file 2023-10-02 16:13:25 -04:00
Jude Nelson
7ad3b28276 refactor: put get-indexed-microblocks handler into its own file 2023-10-02 16:12:54 -04:00
Jude Nelson
34c5af5943 refactor: put get-confirmed-microblocks RPC handler into its own file 2023-10-02 16:12:33 -04:00
Jude Nelson
4c744356de refactor: put get-map-entry RPC handler into its own file 2023-10-02 16:12:15 -04:00
Jude Nelson
3056aa3c37 refactor: put get-is-trait-implemented RPC handler into its own file 2023-10-02 16:11:57 -04:00
Jude Nelson
568de364c4 refactor: put get-node-info RPC handler into its own file 2023-10-02 16:11:32 -04:00
Jude Nelson
d0229d9474 refactor: put get-headers RPC endpoint into its own file 2023-10-02 16:11:04 -04:00
Jude Nelson
92f47fde94 refactor: put get-data-var RPC handler into its own file 2023-10-02 16:10:46 -04:00
Jude Nelson
e9b07c4f11 chore: put get-contract-source RPC handler into its own file 2023-10-02 16:10:26 -04:00
Jude Nelson
3d1cbbc667 refactor: put get-contract-abi RPC handler into its own file 2023-10-02 16:10:01 -04:00
Jude Nelson
765960a9fd refactor: put get-constant-value RPC handler into its own file 2023-10-02 16:09:40 -04:00
Jude Nelson
0c302fe599 refactor: put get-block RPC handler into its own file 2023-10-02 16:09:17 -04:00
Jude Nelson
5c0c7cc1ea refactor: put get-attachments-inventory RPC handler into its own file 2023-10-02 16:08:55 -04:00
Jude Nelson
2da1bc9f7b refactor: put get-attachment RPC handler into its own file 2023-10-02 16:08:30 -04:00