Dmitri Makarov
569b00025c
fix: replace rust cfg annotations that use bpf by target_os solana
2022-05-18 20:39:43 -07:00
behzad nouri
be1d606dea
adds sanity checks to Shred::reference_tick_from_data
...
Shred::reference_tick_from_data should check if payload is indeed a data
shred and has valid size.
2022-05-18 21:56:22 +00:00
behzad nouri
e2bbc3913d
separates out data vs code shreds at the type level
...
Working towards revising shred struct to embed versioning so that a new
variant can contain merkle tree hashes of the erasure batch. To ease out
migration the commit adds more type-safety by distinguishing data vs
code shreds at the type level.
Additionally having both data and coding headers in each shred is
redundant as only one is relevant for each shred. The revised shred type
in this commit will only have one type-specific header.
https://github.com/solana-labs/solana/blob/c785f1ffc/ledger/src/shred.rs#L198-L203
2022-05-18 21:56:22 +00:00
buffalu
971748b335
fix banking stage starvation ( #25245 )
2022-05-18 22:37:47 +02:00
dependabot[bot]
5299038065
chore: bump rustls from 0.20.5 to 0.20.6 ( #25331 )
...
* chore: bump rustls from 0.20.5 to 0.20.6
Bumps [rustls](https://github.com/rustls/rustls ) from 0.20.5 to 0.20.6.
- [Release notes](https://github.com/rustls/rustls/releases )
- [Changelog](https://github.com/rustls/rustls/blob/main/RELEASE_NOTES.md )
- [Commits](https://github.com/rustls/rustls/compare/v/0.20.5...v/0.20.6 )
---
updated-dependencies:
- dependency-name: rustls
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-05-18 14:36:22 -06:00
Lijun Wang
81d9a7585d
Add make_connection metrics ( #25280 )
...
* Add metrics for open_uni
* Added metrics for make_connection
* measure make_connection success or fail
2022-05-18 13:23:29 -07:00
Michael Vines
edd090f4a7
Avoid "Dropped RPC Notification" log spam ( #25341 )
2022-05-18 12:45:45 -07:00
Steven Luscher
84f1e5c0da
fix: speed up transaction signing by removing code that does nothing ( #25302 )
2022-05-18 11:08:13 -07:00
dependabot[bot]
7402878628
chore: bump raptorq from 1.6.5 to 1.7.0 ( #25330 )
...
Bumps [raptorq](https://github.com/cberner/raptorq ) from 1.6.5 to 1.7.0.
- [Release notes](https://github.com/cberner/raptorq/releases )
- [Commits](https://github.com/cberner/raptorq/compare/v1.6.5...v1.7.0 )
---
updated-dependencies:
- dependency-name: raptorq
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-18 17:56:38 +00:00
Jeff Washington (jwash)
0f703b71cc
minor test renaming ( #25297 )
2022-05-18 12:53:55 -05:00
Jeff Washington (jwash)
fe91f40f8a
use previous epoch rent collector in expected rent collection ( #25289 )
2022-05-18 12:53:45 -05:00
yihau
c49efae445
chore: windows build use channel or tag
2022-05-19 00:41:33 +08:00
dependabot[bot]
542bd0ec3c
chore: bump rayon from 1.5.2 to 1.5.3 ( #25242 )
...
* chore: bump rayon from 1.5.2 to 1.5.3
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/rayon-rs/rayon/releases )
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/v1.5.2...v1.5.3 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-05-18 09:39:57 -06:00
dependabot[bot]
3b47250d4a
chore: bump signal-hook from 0.3.13 to 0.3.14 ( #25281 )
...
* chore: bump signal-hook from 0.3.13 to 0.3.14
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.3.13 to 0.3.14.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.13...v0.3.14 )
---
updated-dependencies:
- dependency-name: signal-hook
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-05-18 09:28:52 -06:00
dependabot[bot]
3bda895ea9
chore: bump rustls from 0.20.4 to 0.20.5 ( #25243 )
...
* chore: bump rustls from 0.20.4 to 0.20.5
Bumps [rustls](https://github.com/rustls/rustls ) from 0.20.4 to 0.20.5.
- [Release notes](https://github.com/rustls/rustls/releases )
- [Changelog](https://github.com/rustls/rustls/blob/main/RELEASE_NOTES.md )
- [Commits](https://github.com/rustls/rustls/compare/v/0.20.4...v/0.20.5 )
---
updated-dependencies:
- dependency-name: rustls
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-05-18 09:27:16 -06:00
DimAn
24122768da
fix bootstrap without known validators ( #25293 )
2022-05-18 06:12:05 -05:00
Justin Starry
5548baf4dd
Don't drop transactions which use a request heap size ix ( #25315 )
2022-05-18 17:47:24 +08:00
Justin Starry
a1522d0024
Use consistent naming for compute unit limit ( #25229 )
...
* Use consistent naming for compute unit limit
* feedback
2022-05-18 13:14:31 +08:00
yihau
66c9513eb0
chore: fix windows build doesn't be triggered correctly
2022-05-18 11:42:36 +08:00
Michael Vines
795f6eda44
`--rpc-pubsub-notification-threads 0` now turns off the internal PubSub notification machinery ( #25307 )
2022-05-17 20:23:51 -07:00
Michael Vines
0bdc4cdb7e
Reduce admin rpc service thread count from the number of available cores to 3 ( #25306 )
2022-05-17 19:40:13 -07:00
steviez
b27125815a
Simplify logic around MAX_ORPHAN_REPAIR_RESPONSES constant ( #25032 )
2022-05-17 19:45:45 -06:00
Phil Chen
456e6711f0
chore: typo in BlockheightBasedTransactionConfirmationStrategy ( #25279 )
...
* fix typo: Confimation => Confirmation
* chore: run prettier
Co-authored-by: steveluscher <me+github@steveluscher.com>
2022-05-17 16:59:04 -07:00
behzad nouri
9b13b1b712
adds const_assert_eq for shred constants ( #25288 )
...
Adding const_assert_eq:
* Documents explicitly what the constants are equal to.
* Prevents introducing bugs by silently changing the constants as the
code is updated.
2022-05-17 22:44:35 +00:00
steviez
3d8e5e91ed
Fix ledger-tool from erroring with unspecified archive_format ( #25298 )
...
value_t_or_exit()! will error if the user doesn't specify a value at
runtime, use value_of() instead which will give either the default value
or whatever the user specified.
2022-05-17 15:46:31 -06:00
Jon Cinque
0820065c98
rpc: Support token-2022 in token-specific calls ( #25150 )
...
* rpc: Support token-2022 in token-specific calls
* Address feedback
2022-05-17 21:02:43 +02:00
Brooks Prumo
dff089e0dd
Fix RpcResponseContext in rpc_client test ( #25296 )
2022-05-17 12:44:43 -05:00
Brooks Prumo
e608580040
Add get_stake_minimum_delegation() to rpc_client ( #25200 )
2022-05-17 11:46:34 -05:00
scriptrunner2049
4b43308f00
Update SECURITY.md
2022-05-18 00:23:38 +08:00
scriptrunner2049
dd22b0cb84
Update SECURITY.md
2022-05-18 00:23:21 +08:00
HaoranYi
85a2e599bb
revert memory map for reading snapshot ( #25259 )
2022-05-17 09:32:18 -05:00
scriptrunner2049
266c3059ca
Update SECURITY.md
2022-05-17 16:59:28 +08:00
scriptrunner2049
5503e1486d
Update SECURITY.md
2022-05-17 16:58:48 +08:00
Justin Starry
4690956849
RPC: Add minContextSlot param to ensure consistent responses ( #25161 )
...
* RPC: Add minContextSlot param to ensure consistent responses
* revert changes to deprecated endpoints
* update docs
2022-05-17 14:46:02 +08:00
Justin Starry
4e352bffaf
cli: Fix display of staked validators ( #25216 )
2022-05-17 14:32:52 +08:00
buffalu
6bcadc755e
Speedup bigtable block upload by factor of 8-10x ( #24534 )
...
Added multiple blockstore read threads.
Run the bigtable upload in tokio::spawn context.
Run bigtable tx and tx-by-addr uploads in tokio::spawn context.
2022-05-17 00:21:05 -06:00
Michael Vines
e718c80a21
Avoid multiple base58 encodes for all votes when no `voteSubscribe` is disabled
2022-05-16 19:56:48 -07:00
Jon Cinque
48982778ef
ci: Remove downstream anchor projects ( #25266 )
2022-05-17 02:27:38 +02:00
ahlee42
9c754d6c95
Fixed typo in Docs ("transacton" -> "transaction") ( #25260 )
...
Co-authored-by: Arnold Lee <103599294+TamashiDev@users.noreply.github.com>
2022-05-16 14:48:59 -07:00
Brooks Prumo
18c45a610c
clippy: Use `unsigned_abs()` ( #25250 )
2022-05-16 16:08:42 -05:00
Jeff Washington (jwash)
2cf7c73ced
cleanup types in tests ( #25254 )
2022-05-16 15:54:40 -05:00
sakridge
a63d99fd11
Use write! to fix clippy and save heap allocation ( #25220 )
2022-05-16 22:39:33 +02:00
Jack May
21e066ef26
Merge pull request from GHSA-wxrh-ff9f-fc6w
2022-05-16 12:30:37 -07:00
Yueh-Hsuan Chiang
5625959f7e
(LedgerStore) Change perf_samples_counter from Arc<AtomicUsize> to AtomicUsize ( #25043 )
...
#### Problem
After #25042 , each LedgerColumn has its own BlockstoreRocksDbWritePerfMetrics
and BlockstoreRocksDbReadPerfMetrics instances. As it has total ownership,
its member field does not need to use Arc.
#### Summary of Changes
Change perf_samples_counter from Arc<AtomicUsize> to AtomicUsize
under BlockstoreRocksDbWritePerfMetrics and BlockstoreRocksDbReadPerfMetrics.
2022-05-16 11:31:07 -07:00
Lijun Wang
196de1c043
Refactor make_connection ( #25225 )
...
1. Move logics related to creating endpoint, creating new connection and retry 0rtt connections into a wrapper construct QuicNewConnection to put the logic together.
2. get_or_add_connection: logic is much simplified to allow manage the connection cache -- the QUIC connection is lazy constructed. get_or_add_connection should no longer be a global hotspot.
3. Per connection stats update is moved out of get_or_add_connection to avoid bad connection impacting good connections.
2022-05-16 11:13:18 -07:00
HaoranYi
3e44046a73
Support lz4 for snapshot archives ( #25089 )
...
* add lz4
* add cargo package file
* fix tests
* use fast lz4 compression
* report snapshot archive format
* add test
* code review feedback
* add cargo.lock
* fix var name
* refactor archive format parsing and add default compress cli arg
* clippy
* add from_cli_arg test
* update cargo.lock
* add lz4 support for mmap
* cargo.lock
* clippy
2022-05-16 12:44:15 -05:00
Justin Starry
f81c5df1f0
Include account index in rent paying account tx error ( #25189 )
2022-05-16 23:35:34 +08:00
HaoranYi
389d78e424
Don't use mmarinus package ( #25177 )
...
* Revert "Revert "Use memory map to speed up snapshot untar (#24889 )" (#25174 )"
This reverts commit fc793de2dd
.
* not use mmarinus
* enable secondary build
* Revert "enable secondary build"
This reverts commit 5aa43a94bbad59497506f02235597e7adc0dc47b.
* macbuild
* Revert "macbuild"
This reverts commit 0da92945a40dc5431eff4bd91054b407e22418fb.
2022-05-16 08:49:17 -05:00
Justin Starry
daac9399ed
docs: Remove redundant and incorrect tx priority details ( #25239 )
2022-05-16 04:41:51 +00:00
Tao Zhu
b1b3702e6d
Prioritize transactions in banking stage by their compute unit price ( #25178 )
...
* - get prioritization fee from compute_budget instruction;
- update compute_budget::process_instruction function to take instruction iter to support sanitized versioned message;
- updated runtime.md
* update transaction fee calculation for prioritization fee rate as lamports per 10K CUs
* review changes
* fix test
* fix a bpf test
* fix bpf test
* patch feedback
* fix clippy
* fix bpf test
* feedback
* rename prioritization fee rate to compute unit price
* feedback
Co-authored-by: Justin Starry <justin@solana.com>
2022-05-16 12:06:33 +08:00