mergify[bot]
f254bf85eb
RPC: Improve snapshot path sanitization (bp #15456 ) ( #15457 )
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-02-22 19:35:49 +00:00
mergify[bot]
03ac807756
RPC: add caching to getLargestAccounts ( #15154 ) ( #15271 )
...
* introduce get largest accounts cache
* remove cache size and change hash key
* remove eq and hash derivation from commitment config
* add slot to the cache
(cherry picked from commit 4013f91dbe
)
Co-authored-by: Josh <josh.hundley@gmail.com >
2021-02-11 21:13:09 +00:00
mergify[bot]
ca262fdeb9
Configure Bigtable's timeout, enabling by default ( #14657 ) ( #14669 )
...
* Configure bigtable's timeout when read-only
* Review comments
* Apply nits (thanks!)
Co-authored-by: Michael Vines <mvines@gmail.com >
* Timeout in the streamed decoding as well
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit dcaa025822
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-19 15:14:59 +00:00
mergify[bot]
8cf23903ce
Fix the occasional stuck RPC request (bp #14628 ) ( #14638 )
...
* WIP fix the occasional stuck RPC request
(cherry picked from commit 5cf9094bb9
)
* Clean up and add comment
(cherry picked from commit 8d4ab1bab1
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-18 19:57:28 +00:00
mergify[bot]
a04375e204
Add getSnapshotSlot
RPC method ( #14632 )
...
(cherry picked from commit 4003f86f04
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-16 20:51:33 +00:00
Michael Vines
7b19d26a6e
Add getHealth
RPC method
2021-01-16 10:51:54 -08:00
mergify[bot]
00626fbf4c
Add --rpc-threads argument ( #14568 )
...
(cherry picked from commit 11daaadc93
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-13 22:52:15 +00:00
mergify[bot]
484bd48b35
Various snapshot-related code clean up (bp #14487 ) ( #14513 )
...
* Create account paths once
(cherry picked from commit fe0ba4a429
)
* Replace incorrect symlink_dir usage with symlink_file
(cherry picked from commit f2a7f561a0
)
* Reduce TempDir exposure
(cherry picked from commit 9f70f7dc3e
)
* Rename AccountsPackage::root to AccountsPackage::slot
(cherry picked from commit 141e6706e6
)
* Rename CompressionType to ArchiveFormat
(cherry picked from commit 7be6770808
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-09 18:29:09 +00:00
mergify[bot]
46f9822d62
Only initialize BigTable upload service when requested ( #14380 )
...
(cherry picked from commit 4a3d217839
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-01 03:06:34 +00:00
Michael Vines
ffd6f3e6bf
Revert "Upgrade in-tree tokio 0.2 usage to tokio 0.3 ( #14326 )"
...
This reverts commit 6c5be574c8
.
2020-12-30 22:25:23 -08:00
mergify[bot]
6c5be574c8
Upgrade in-tree tokio 0.2 usage to tokio 0.3 ( #14326 )
...
(cherry picked from commit 444ed768dc
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-29 19:03:18 +00:00
mergify[bot]
252180c244
Restore Content-Length header for streaming snapshot download ( #14222 )
...
(cherry picked from commit 57b03c5bc1
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-21 08:41:02 +00:00
mergify[bot]
4811afe8eb
Stream RPC snapshot downloads (bp #14213 ) ( #14215 )
...
* Stream RPC snapshot downloads
(cherry picked from commit b3dc988564
)
# Conflicts:
# core/Cargo.toml
* Update Cargo.toml
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-20 01:28:41 +00:00
mergify[bot]
50034848a5
Improved Transaction Forwarding ( #13944 ) ( #14195 )
...
* Forwarding
* Dedupe leaders
* Use consistent commitment for last_valid_slot in rpc send_transaction
* Plumb rpc send_transaction options into solana-validator
* Extend num slots banking-stage holds forwarded txs
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit da7d1e2302
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-17 18:14:06 -07:00
Michael Vines
959880db60
Remove unused pubkey::Pubkey imports
2020-10-21 19:08:13 -07:00
Michael Vines
7bc073defe
Run codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand
2020-10-21 19:08:13 -07:00
sakridge
1f1eb9f26e
Add separate push queue to reduce push lock contention ( #12713 )
2020-10-13 18:10:25 -07:00
Tyera Eulberg
89621adca7
Rpc -> proper optimistic confirmation ( #12514 )
...
* Add service to track the most recent optimistically confirmed bank
* Plumb service into ClusterInfoVoteListener and ReplayStage
* Clean up test
* Use OptimisticallyConfirmedBank in RPC
* Remove superfluous notifications from RpcSubscriptions
* Use crossbeam to avoid mpsc recv_timeout panic
* Review comments
* Remove superfluous last_checked_slots, but pass in OptimisticallyConfirmedBank for complete correctness
2020-09-28 20:43:05 -06:00
Michael Vines
7526bb96f3
Make test_process_rest_api less fragile
2020-09-25 11:40:36 -07:00
Michael Vines
c10da16d7b
Port instructions sysvar and secp256k1 program activation to FeatureSet
2020-09-25 11:40:36 -07:00
Michael Vines
c4913e3c9e
SendTransactionServices now exit their thread on channel drop instead of by a flag
2020-09-18 17:29:10 +00:00
Trent Nelson
32dcce0ac1
RPC: Limit request payload size to 50kB
2020-09-16 20:21:59 +00:00
Ryo Onodera
53b8ea4464
Rename to ClusterType and restore devnet compat. ( #12068 )
...
* Rename to ClusterType and restore devnet compat.
* De-duplicate parse code and add comments
* Adjust default Devnet genesis & reduce it in tests
2020-09-08 23:55:09 +09:00
anatoly yakovenko
c67f8bd821
Forward transactions to the expected leader instead of your own TPU port ( #12004 )
...
* Use PoHRecorder to send to the right leader
* cleanup
* fmt
* clippy
* Cleanup, fix bug
Co-authored-by: Carl <carl@solana.com >
2020-09-08 17:00:49 +08:00
Michael Vines
4ba43c29ce
Request correct access
2020-09-04 16:01:49 -07:00
Michael Vines
bc7731b969
Add BigTableUploadService
2020-09-04 16:01:49 -07:00
Michael Vines
d8e2038dda
Add --enable-bigtable-ledger-upload flag
2020-09-04 16:01:49 -07:00
Michael Vines
7341e60043
Ensure that the spl-token 2 native mint account is owned by the spl-token 2 program.
...
Workaround for https://github.com/solana-labs/solana-program-library/issues/374 until spl-token 3 is shipped
2020-09-01 17:09:36 +00:00
Michael Vines
dfae9a9864
Plumb Bigtable ledger storage into the RPC subsystem
2020-08-05 14:27:12 -07:00
Michael Vines
0e02740565
Setup a tokio 0.2 runtime for RPC usage
2020-08-05 14:27:12 -07:00
Michael Vines
b876fb84ba
Make room for tokio 0.2
2020-08-05 14:27:12 -07:00
Greg Fitzgerald
145906123a
Simplify use of SendTransactionService ( #10999 )
...
* Send transaction upon recv
This will allow us to move the channel to the public interface
* Use a channel, not a method, to communicate
* Pipeline the services
* Ignore unused return values
* Fix clippy warning
2020-07-11 01:14:41 +00:00
Greg Fitzgerald
16eeea4f82
Move SendTransactionService to solana_runtime ( #10972 )
2020-07-09 18:28:26 +00:00
Greg Fitzgerald
17a8cc862b
Remove core dependencies from SendTransactionService ( #10965 )
...
* Remove core dependencies from SendTransactionService
* Fix clippy warnings
2020-07-08 19:13:42 -06:00
Greg Fitzgerald
2922494b4f
Cleanup rpc ( #10910 )
...
* Remove unreachable error case
* Inline Ok
* Hoist Ok
2020-07-03 17:39:14 -06:00
Greg Fitzgerald
50b3fa83a0
Move BankCommitmentCache to solana_runtime ( #10816 )
...
* Remove Blockstore member variable from BlockCommitmentCache
* Hoist is_confirmed_rooted() to its only caller
BlockCommitmentCache no longer depends on Blockstore
* Move BlockCommitmentCache to solana_runtime
2020-06-25 22:06:58 -06:00
Greg Fitzgerald
62b873b054
Clean up rpc module ( #10812 )
...
* Clean up rpc module
* Simplify getting bank
2020-06-25 17:08:55 -06:00
Kristofer Peterson
6d81eede93
Add CLI options and runtime support for selection of output snapshot version. ( #10536 )
2020-06-19 14:38:37 +09:00
Greg Fitzgerald
6ee222363e
Move BankForks to solana_runtime ( #10637 )
...
* Move BankForks to solana_runtime
* Update imports
2020-06-17 15:27:03 +00:00
Greg Fitzgerald
891aa8c13e
Add RequestProcessor constructor to simplify testing ( #10631 )
...
* Add JsonRpcRequestProcessor constructor
* Avoid start_rpc_handler_with_tx monolith in rpc tests
* pub
* Pass an Arc, so that caller can poke the bank
2020-06-16 23:30:59 -06:00
Greg Fitzgerald
2eb6f498a8
Remove redundant BankForks parameter ( #10537 )
2020-06-12 11:04:17 -06:00
Michael Vines
ed351400b2
Add SendTransactionService
2020-06-09 07:46:40 -07:00
Greg Fitzgerald
af8c21c559
Remove lock around JsonRpcRequestProcessor ( #10417 )
...
automerge
2020-06-07 20:54:03 -07:00
Michael Vines
9158479dc4
Add node health check to transaction preflight
2020-06-01 17:51:04 -07:00
Michael Vines
9dbf3d5430
Factor out RpcHealth module
2020-06-01 17:51:04 -07:00
Michael Vines
eb45aaa6c3
Added --health-check-slot-distance ( #10324 )
2020-05-29 15:31:52 -07:00
Michael Vines
0442c45d5b
Feign RPC health while in a --wait-for-supermajority
holding pattern ( #10295 )
2020-05-28 12:22:19 -07:00
Michael Vines
18be7a7966
REST API now returns supply in SOL rather than lamports ( #10170 )
...
automerge
2020-05-21 15:50:06 -07:00
Michael Vines
324cfd40f0
Add v0 REST APIs for circulating and total supply ( #10102 )
2020-05-20 20:04:07 -07:00
Kristofer Peterson
58ef02f02b
9951 clippy errors in the test suite ( #10030 )
...
automerge
2020-05-15 09:35:43 -07:00