Pankaj Garg
b4c3b66f1a
Replace HashMap and Vec with IndexMap in connection cache ( #24967 )
2022-05-04 12:38:03 -07:00
Jeff Washington (jwash)
40986daddf
log write cache contents from purge_slots_from_cache_and_store ( #24948 )
2022-05-04 14:28:47 -05:00
apfitzge
0ca54db524
use bank's epoch_schedule accessor internally ( #24918 )
2022-05-04 13:52:48 -05:00
Alexander Meißner
eae9a66531
Record instructions which are precompiles ( #24743 )
...
* Record instructions which are "is_precompile".
2022-05-04 16:32:14 +02:00
Brooks Prumo
e1866aacad
Move long-running local-cluster tests to local-cluster-slow ( #24952 )
2022-05-04 06:03:38 -05:00
Jon Cinque
326e53be97
stake: Allow initialized stakes to be below the min delegation ( #24670 )
...
* stake: Allow initialized stakes to be below the min delegation
* Add PR number in feature
* Fixup RPC subscription test
* Address feedback pt 1
* Address feedback pt 2
* Update FrozenAbi Digest
* Address feedback: no new error type, more comments
2022-05-04 12:17:29 +02:00
yihau
b2ecfa6252
Revert "chore: pass GITHUB_TOKEN to workflow"
...
This reverts commit 3cc792cb9d
.
2022-05-04 17:40:50 +08:00
yihau
3cc792cb9d
chore: pass GITHUB_TOKEN to workflow
2022-05-04 17:33:16 +08:00
yihau
d71ace6a35
chore: upload x86 artifacts to github release
2022-05-04 16:20:36 +08:00
axleiro
abf829d0c6
changing agents for the new pipeline
2022-05-04 12:11:26 +05:30
dependabot[bot]
d78fd54134
chore: bump openssl from 0.10.38 to 0.10.39 ( #24922 )
...
* chore: bump openssl from 0.10.38 to 0.10.39
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.38 to 0.10.39.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.38...openssl-v0.10.39 )
---
updated-dependencies:
- dependency-name: openssl
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
* Bump openssl-sys as well
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2022-05-03 22:15:17 -06:00
dependabot[bot]
9258d81ba3
chore: bump serde from 1.0.136 to 1.0.137 ( #24957 )
...
* chore: bump serde from 1.0.136 to 1.0.137
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.136 to 1.0.137.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137 )
---
updated-dependencies:
- dependency-name: serde
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-03 22:14:59 -06:00
yihau
97d3f9e151
chore: pass secrets to workflow
2022-05-04 11:48:17 +08:00
dependabot[bot]
69a0ff9a37
chore: bump num-traits from 0.2.14 to 0.2.15 ( #24949 )
...
* chore: bump num-traits from 0.2.14 to 0.2.15
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.14 to 0.2.15.
- [Release notes](https://github.com/rust-num/num-traits/releases )
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.14...num-traits-0.2.15 )
---
updated-dependencies:
- dependency-name: num-traits
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-04 00:26:09 +00:00
Jack May
978a806a30
reproduceable loader test artifacts ( #24950 )
2022-05-03 17:10:28 -07:00
Jon Cinque
a6b3ab394f
cli: Fix `withdraw-stake` error display ( #24942 )
2022-05-04 00:19:30 +02:00
Brian Anderson
4d7e231891
Make nonblocking RpcClient examples use nonblocking RpcClient ( #24916 )
...
* Make nonblocking RpcClient examples use nonblocking RpcClient
* fmt
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2022-05-03 16:06:57 -06:00
Yueh-Hsuan Chiang
63bd0cdd5d
(LedgerStore) Move BlockstoreRocksDbColumnFamilyMetrics to blockstore_metric.rs ( #24856 )
...
#### Problem
blockstore_db.rs becomes bigger.
#### Summary of Changes
Move BlockstoreRocksDbColumnFamilyMetrics to blockstore_metric.rs out from blockstore_db.rs.
2022-05-03 14:46:59 -07:00
sakridge
703d55abb1
Convert println to debug! in shrink tests ( #24939 )
2022-05-03 22:10:53 +02:00
dependabot[bot]
2c9d2a2140
chore: bump serde_json from 1.0.79 to 1.0.80 ( #24943 )
...
* chore: bump serde_json from 1.0.79 to 1.0.80
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.79 to 1.0.80.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.79...v1.0.80 )
---
updated-dependencies:
- dependency-name: serde_json
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-03 13:46:45 -06:00
Jack May
e070c5ca38
default compute units per instruction ( #24899 )
2022-05-03 09:50:06 -07:00
yihau
b0ae4f9e4c
chore: don't delete existing file in s3 bucket
2022-05-04 00:44:35 +08:00
HaoranYi
554467ebd3
add no_os_memory_stats_reporting_arg ( #24938 )
2022-05-03 11:23:30 -05:00
dependabot[bot]
8fa2913d08
chore: bump libc from 0.2.124 to 0.2.125 ( #24914 )
...
* chore: bump libc from 0.2.124 to 0.2.125
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.124 to 0.2.125.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.124...0.2.125 )
---
updated-dependencies:
- dependency-name: libc
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-03 10:10:55 -06:00
Yihau Chen
9f163a87c0
chore: build x86 artifacts ( #24941 )
...
* chore: add GitHub Action env
* chore: add github tarball output path
* chore: add build x86 actions
2022-05-03 23:20:23 +08:00
HaoranYi
fd44198c0a
fix typo ( #24937 )
2022-05-03 09:57:15 -05:00
Jeff Washington (jwash)
755100dd7c
use correct epoch schedule ( #24904 )
2022-05-03 09:21:47 -05:00
Christian Kamm
503d0baf6d
SigVerify: Add total time metrics for dedup/discard/verify ( #24768 )
...
* SigVerify: Add total time metrics for dedup/discard/verify
Previously it was impossible to determine the total time the stage spent
on these activities within a measurement window.
* SigVerify: Add _us postfix to time metrics
2022-05-03 14:59:25 +02:00
behzad nouri
9587c8537f
limits pre-allocation size when deserializing shreds ( #24921 )
...
Though current Shred struct is not vulnerable to this, adding with_limit
causes pre-allocation size to be limited to prevent against memory
exhaustion attacks:
https://github.com/bincode-org/bincode/blob/2d3f42034/readme.md
2022-05-03 12:13:45 +00:00
axleiro
59177f0f39
removing name var
2022-05-03 17:18:26 +05:30
axleiro
5b80891abc
adding buildkite-solana-private.sh to remove solana-secondary dependency from solana-private pipeline
2022-05-03 17:11:31 +05:30
axleiro
bac372cad9
adding new file for solana-private CI
2022-05-03 17:10:38 +05:30
sakridge
b2c2c29bf7
Fix quic mode with thinclient ( #24890 )
2022-05-03 13:33:53 +02:00
yihau
8a43539394
chore: export web3.js repo only when pushing something in web3.js folder
2022-05-03 16:58:35 +08:00
Yueh-Hsuan Chiang
0b9d04808f
(LedgerStore) Move trait ColumnMetrics and metric-macros to blockstore_metric.rs ( #24855 )
...
#### Problem
blockstore_db.rs becomes bigger.
#### Summary of Changes
Move trait ColumnMetrics and metric-macros to blockstore_metric.rs out from blockstore_db.rs.
2022-05-02 22:58:31 -07:00
samkim-crypto
342a946204
zk-token-sdk: verify WithdrawWithheldTokens proof under the correct context ( #24923 )
2022-05-03 13:44:47 +09:00
Yueh-Hsuan Chiang
eca0eb9585
(LedgerStore) Move metric-related functions to blockstore_metric.rs ( #24854 )
...
#### Problem
blockstore_db.rs becomes bigger.
#### Summary of Changes
This PR creates blockstore_metric.rs and moves metric-related functions out from blockstore_db.rs.
2022-05-02 20:53:25 -07:00
Pankaj Garg
3dad27d84d
Optimize connection cache eviction logic ( #24911 )
...
* Optimize connection cache eviction logic
* add eviction count and timing to metrics
* use swap_remove
2022-05-03 02:27:40 +00:00
dependabot[bot]
d1f864619e
chore: bump tokio from 1.18.0 to 1.18.1 ( #24915 )
...
* chore: bump tokio from 1.18.0 to 1.18.1
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.18.0...tokio-1.18.1 )
---
updated-dependencies:
- dependency-name: tokio
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-02 20:06:18 -06:00
Steven Luscher
dd8295981b
test: you can now supply promises for values when mocking RPC subscriptions ( #24920 )
2022-05-02 17:02:35 -07:00
behzad nouri
eff59193db
enforces that LAST_SHRED_IN_SLOT is also DATA_COMPLETE_SHRED ( #24892 )
...
A data shred cannot be LAST_SHRED_IN_SLOT if not also DATA_COMPLETE_SHRED.
So LAST_SHRED_IN_SLOT should also imply DATA_COMPLETE_SHRED:
https://github.com/solana-labs/solana/blob/74b586ae7/ledger/src/shredder.rs#L116-L117
https://github.com/solana-labs/solana/blob/74b586ae7/core/src/broadcast_stage/standard_broadcast_run.rs#L80-L81
However current shred constructs allow specifying a shred which is
LAST_SHRED_IN_SLOT but not DATA_COMPLETE_SHRED:
https://github.com/solana-labs/solana/blob/74b586ae7/ledger/src/shred.rs#L117-L118
https://github.com/solana-labs/solana/blob/74b586ae7/ledger/src/shred.rs#L272-L273
The commit updates ShredFlags so that if a shred is not
DATA_COMPLETE_SHRED it cannot be LAST_SHRED_IN_SLOT either.
2022-05-02 23:33:53 +00:00
carllin
e83efe678c
Cleanup banking bench ( #24851 )
...
* Cleanup banking bench
* Fully remove assert
2022-05-02 22:41:47 +00:00
steviez
cb96edcaa7
Pass ProcessOptions struct around by reference ( #24900 )
2022-05-02 16:58:00 -05:00
dependabot[bot]
68c7fb941d
chore: bump serde_bytes from 0.11.5 to 0.11.6 ( #24882 )
...
* chore: bump serde_bytes from 0.11.5 to 0.11.6
Bumps [serde_bytes](https://github.com/serde-rs/bytes ) from 0.11.5 to 0.11.6.
- [Release notes](https://github.com/serde-rs/bytes/releases )
- [Commits](https://github.com/serde-rs/bytes/compare/0.11.5...0.11.6 )
---
updated-dependencies:
- dependency-name: serde_bytes
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-02 14:33:01 -06:00
dependabot[bot]
fa5f489426
chore: bump thiserror from 1.0.30 to 1.0.31 ( #24881 )
...
* chore: bump thiserror from 1.0.30 to 1.0.31
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.30 to 1.0.31.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.30...1.0.31 )
---
updated-dependencies:
- dependency-name: thiserror
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-02 14:29:44 -06:00
Pankaj Garg
de027a895b
Use RwLock instead of Mutex in QUIC connection cache ( #24857 )
...
* Use RwLock instead of Mutex in QUIC connection cache
* replace LruCache with HashMap
* fix tests
* fix tests
* refactor
* add cache eviction for a random connection on reaching upperbound
* cleanup
2022-05-02 13:02:49 -07:00
Çelik Köseoğlu
fd46c69a17
Update install-solana-cli docs with Homebrew instructions
2022-05-02 12:58:27 -07:00
steveluscher
7bb867404f
fix: correct the fragment URL of inner instruction cards in Explorer
2022-05-02 12:50:00 -07:00
Steven Luscher
2108803b0c
feat: you can now deep link to a particular instruction in Explorer ( #24861 )
...
* fix: when creating new cluster URLs, don't carry the fragment forward
* feat: added a utility that computes a transaction's URL fragment
* feat: introduced a React context you can use to scroll to elements
* feat: you can now deep link to a particular transaction in Explorer
2022-05-02 12:21:13 -07:00
Steven Luscher
8043e88233
fix: enable React 18 in Explorer via use of `createRoot` ( #24859 )
2022-05-02 12:19:08 -07:00