behzad nouri
52616cf7aa
removes repair socket from gossip ContactInfo ( #32831 )
...
Repair responses are sent back to the address the repair request came
from and there is no need to gossip repair socket address.
https://github.com/solana-labs/solana/blob/9212ac347/core/src/repair/serve_repair.rs#L519
2023-08-14 20:01:18 +00:00
Brooks
ce57cac370
Use update_accounts_hash() in AccountsHashVerifier ( #32830 )
2023-08-14 13:11:23 -04:00
HaoranYi
bf77a6c7f2
Fix write cache size grow/shrink bug ( #32788 )
...
fix write cache size bug
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-08-14 10:11:09 -07:00
Jeff Washington (jwash)
9212ac347c
accounts hash sort_slot_storage_scan sorts in place ( #32810 )
2023-08-14 07:47:33 -07:00
dependabot[bot]
e0de0685cb
Bump log from 0.4.19 to 0.4.20 ( #32824 )
...
* Bump log from 0.4.19 to 0.4.20
Bumps [log](https://github.com/rust-lang/log ) from 0.4.19 to 0.4.20.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.19...0.4.20 )
---
updated-dependencies:
- dependency-name: log
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
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-08-14 13:16:14 +00:00
dependabot[bot]
74617c8b4d
Bump async-trait from 0.1.72 to 0.1.73 ( #32825 )
...
* Bump async-trait from 0.1.72 to 0.1.73
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.72 to 0.1.73.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.72...0.1.73 )
---
updated-dependencies:
- dependency-name: async-trait
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
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-08-14 12:44:27 +00:00
Jon Cinque
760559157c
program-test: Fix realloc in native mode ( #32818 )
2023-08-14 13:56:03 +02:00
Ryo Onodera
ce63640d6d
dcou: make internal function `pub` conditionally ( #32822 )
...
dcou: make internal function pub conditionally
2023-08-13 14:12:20 +09:00
Jeff Biseda
58cca78067
sanity check metrics configuration ( #32799 )
2023-08-11 14:38:33 -07:00
Trent Nelson
b83cef43fc
ci: allow local bypass of stale Cargo.lock check with custom variable instead of `CI` ( #32798 )
...
ci: don't use `CI` envvar to skip local stale Cargo.lock check
to enable
```bash
echo "export SOLANA_CI_ALLOW_STALE_CARGO_LOCK=" >> ~/.profile
```
2023-08-11 13:53:16 -06:00
Trent Nelson
2ea88b41fb
cli: skip delegate-stake current voter check for unstaked voters ( #32787 )
...
* cli: use `getVoteAccounts` for delegate-stake current voter check
* cli: skip delegate-stake current voter check for unstaked voters
* cli: refactor delegate-stake current voter check
2023-08-11 13:24:14 -06:00
Pankaj Garg
a1a0829a8b
Initialize and store PRv2 environment in cache ( #32812 )
...
* Initialize and store PRv2 environment in cache
* address review comments
2023-08-11 18:58:22 +00:00
Jon Cinque
194c959aa8
program-test: Prohibit setting the compute unit limit past `i64::MAX` ( #32807 )
...
program-test: Prohibit setting the compute unit limit past the max
2023-08-11 18:30:22 +02:00
Jeff Washington (jwash)
4e6fb8e343
removed unused accounts hash code ( #32791 )
2023-08-11 06:49:07 -07:00
Jon Cinque
c73a56faf8
stake: Rename `StakeStateWithFlags` -> `StakeStateV2` ( #32795 )
2023-08-11 01:07:21 +02:00
bji
35ec7bf804
Implement timely vote credits feature ( #31291 )
2023-08-10 14:07:51 -07:00
HaoranYi
d26e3ff22b
Extract read-only cache stats ( #32789 )
...
* extract read-only cache stat
* rename stats
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-08-10 13:42:09 -05:00
Jeff Washington (jwash)
c9f7cb5b7e
keep active stats lock held ( #32763 )
2023-08-10 08:56:00 -07:00
Ashwin Sekar
eae455c34b
rpc: get_feature_activation_slot should not error for inactive features ( #32778 )
2023-08-09 18:28:47 -07:00
Ashwin Sekar
85a9ebc0af
stake: pub use config constants for api backwards compatibility ( #32769 )
...
* stake: pub use config constants for api backwards compatibility
* Add deprecate
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
---------
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2023-08-09 15:45:02 -07:00
behzad nouri
b06500ee66
adds extensions to contact-info ( #32309 )
...
The commit adds a Vec<Extension> to ContactInfo so that future additions
to ContactInfo can be done by only adding new Extensions instead of
modifying the entire ContactInfo.
2023-08-09 22:01:20 +00:00
Brooks
6ff390802b
Uses fold+reduce in de_dup_accounts() ( #32765 )
2023-08-09 17:27:04 -04:00
Pankaj Garg
f4287d70bb
Move accounts-db code to its own crate ( #32766 )
2023-08-09 13:03:36 -07:00
steviez
b97c451200
ledger-tool: Relax ledger requirements for program subcommand ( #32770 )
...
Several of the program command subcommands do not require a ledger as
they act solely on the program object. So, defer checking the ledger
path until we know we need to load. Additionally, remove genesis arg
from these commands that do not load a genesis.bin
2023-08-09 14:13:25 -05:00
Jon Cinque
31b6b64070
stake: Set the Delegation's warmup / cooldown to the correct default ( #32768 )
2023-08-09 17:45:26 +02:00
carllin
d5faa6e8aa
Local Cluster Duplicate Switch Test ( #32614 )
...
* Add test for broken behavior in same batch
* tests
* redo test
* Important fixes to not immediately duplicate confirm by adding extra node
* Fixup merge
* PR comments
* Redo stakes
* clippy
* fixes
* Resolve conflicts
* add thread logging
* Fixup merge
* Fixup bugs
* Revert "add thread logging"
This reverts commit 9dc22401054b8f91f2b2aa3033e482996913febb.
* Hide scope
* Fixes
* Cleanup test_faulty_node
* More fixes
* Fixes
* Error logging
* Fix duplicate confirmed
* done
* PR comments
* Revert "Error logging"
This reverts commit 18953c36a5e865ecdd38bbf49b8d0502448087d2.
* PR comments
* nit
2023-08-08 19:29:39 -04:00
Jon Cinque
8e4a9a94ed
sdk: Add new version of `StakeState` to avoid breaking downstream users ( #32736 )
...
* sdk: Rename `StakeState` -> `StakeStateWithFlags`
* Add back `StakeFlags` with a deprecation warning
2023-08-09 00:05:40 +02:00
behzad nouri
ef318c23ae
bumps criterion to 0.5.1 ( #32760 )
...
Current version throws warning:
warning: the following packages contain code that will be rejected by
a future version of Rust: criterion v0.3.5
2023-08-08 14:33:15 +00:00
Jeff Washington (jwash)
7c1cf298aa
add active stats for pieces of hash calc ( #32750 )
2023-08-08 07:16:10 -07:00
Jeff Washington (jwash)
32cb381f69
remove some stats that are no longer kept ( #32751 )
...
* remove some stats that are no longer kept
* Update runtime/src/accounts_hash.rs
Co-authored-by: Brooks <brooks@prumo.org>
* reorder to remove drop
---------
Co-authored-by: Brooks <brooks@prumo.org>
2023-08-08 07:15:37 -07:00
Jeff Washington (jwash)
21b8b70bee
add metrics around purge_exact ( #32752 )
2023-08-08 07:15:21 -07:00
dependabot[bot]
e2843d3fd0
Bump tar from 0.4.39 to 0.4.40 ( #32759 )
...
* Bump tar from 0.4.39 to 0.4.40
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.39 to 0.4.40.
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.39...0.4.40 )
---
updated-dependencies:
- dependency-name: tar
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
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-08-08 12:28:23 +00:00
Ikko Eltociear Ashimine
626e7dcfae
docs: Fix typo in off-chain-message-signing.md ( #32758 )
...
specfied -> specified
2023-08-08 13:00:46 +02:00
behzad nouri
ee73a588ba
upgrades serial_test to 2.0.0 ( #32745 )
2023-08-08 03:39:08 +00:00
Tao Zhu
ef6af307a4
improve prioritization fee cache accuracy ( #32692 )
...
* improve prioritization cache accuracy
2023-08-07 19:27:28 -05:00
Yueh-Hsuan Chiang
bf6d0aba4c
TieredStorage struct (4/N) -- remove_on_drop ( #32603 )
...
#### Summary of Changes
This PR makes TieredStorage implement Drop which does the remove-on-drop
behavior that follows the AccountsFile convention.
2023-08-07 15:39:46 -07:00
behzad nouri
b7c2ad5b67
repurposes tvu_forwards socket for TVU over QUIC ( #32737 )
...
LegacyContactInfo.tvu_forwards is unused.
Repurposing the field for TVU over QUIC will avoid QUIC_PORT_OFFSET hack
in a backward compatible way.
2023-08-07 22:02:41 +00:00
Brooks
df31bc13db
Removes `set_no_remove_on_drop()` from AppendVec/AccountsFile ( #32742 )
2023-08-07 17:48:31 -04:00
Brooks
4894eb0333
Moves some accounts-db test-only code into a dev-context-only-utils feature ( #32748 )
2023-08-07 17:28:15 -04:00
behzad nouri
0511753276
moves DATA_PLANE_FANOUT to turbine ( #32744 )
2023-08-07 20:53:49 +00:00
Ashwin Sekar
fa3506631a
stake: deprecate on chain warmup/cooldown rate and config ( #32723 )
...
* stake: deprecate on chain warmup/cooldown rate and config
* Pr feedback: Deprecate since 1.16.7
Co-authored-by: Jon Cinque <me@jonc.dev>
---------
Co-authored-by: Jon Cinque <me@jonc.dev>
2023-08-07 13:23:24 -07:00
Greg Cusack
5c86f89bc7
Add from field for message tracking ( #32725 )
...
* we only want to report received message signatures on PUSH requests, not PULL requests
* woops accidently had it has LocalMessage not PushMessage
* switch from match to if let statement
* convert if let to matches macro
* add in from field in PushMessage for message tracking
* update with cargo fmt
* remove display for gossip route and add lifetime param to pubkey reference in gossiproute enum
* forgot to run fmt
2023-08-07 11:40:18 -07:00
behzad nouri
b9a2030537
uses atomics for read-only accounts cache entry index ( #32518 )
...
Using atomics for entry indices allows load function to use self.cache.get
instead of get_mut which reduces lock contention on the respective
dash-map shard.
2023-08-07 17:47:09 +00:00
Brooks
c2dec254c8
Removes `remove_on_drop` field from AppendVec ( #32741 )
2023-08-07 13:25:07 -04:00
Pankaj Garg
511cf28be8
Move `serde-snapshot dependent accounts-db tests ( #32671 )
...
Move serde-snapshot dependent accounts-db tests
2023-08-07 09:35:41 -07:00
Brooks
6ce647a3e0
Do not drop AppendVec in store-tool ( #32739 )
2023-08-07 12:15:01 -04:00
Tao Zhu
6eea38d803
Remove unnecessary ref of arc ( #32729 )
...
* remove unnecessary ref of arc
2023-08-07 09:33:57 -05:00
dependabot[bot]
2444e09183
Bump tempfile from 3.7.0 to 3.7.1 ( #32734 )
...
* Bump tempfile from 3.7.0 to 3.7.1
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.7.0 to 3.7.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.0...v3.7.1 )
---
updated-dependencies:
- dependency-name: tempfile
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
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-08-07 12:44:11 +00:00
dependabot[bot]
f650261f63
Bump cc from 1.0.81 to 1.0.82 ( #32733 )
...
* Bump cc from 1.0.81 to 1.0.82
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.81...1.0.82 )
---
updated-dependencies:
- dependency-name: cc
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
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-08-07 12:43:30 +00:00
dependabot[bot]
d8849cdf7e
Bump regex from 1.9.1 to 1.9.3 ( #32732 )
...
* Bump regex from 1.9.1 to 1.9.3
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.1 to 1.9.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.1...1.9.3 )
---
updated-dependencies:
- dependency-name: regex
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
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-08-07 12:42:56 +00:00