Brennan Watt
a2e7bdf50a
Rust v1.63.0 ( #27148 )
...
* Upgrade to Rust v1.63.0
* Add nightly_clippy_allows
* Resolve some new clippy nightly lints
* Increase QUIC packets completion timeout
Co-authored-by: Michael Vines <mvines@gmail.com>
2022-08-17 15:48:33 -07:00
Brooks Prumo
2fd9a4f373
Add clean_accounts_for_tests() ( #27200 )
2022-08-17 18:45:59 -04:00
Jeff Washington (jwash)
225cddcffb
serialize incremental_snapshot_hash ( #26839 )
...
* serialize incremental_snapshot_hash
* pr feedback
2022-08-17 15:14:31 -05:00
apfitzge
c1111fa069
snapshots: serialize version file first ( #27192 )
...
serialize version file first
2022-08-17 12:57:52 -05:00
Brooks Prumo
3fc4ba7c9a
Rename to `MAX_BLOCK_ACCOUNTS_DATA_SIZE_DELTA` ( #27175 )
2022-08-16 13:57:24 -04:00
HaoranYi
dbd2423e9f
Share Ancestors API get with contains_key ( #27161 )
...
consolidate similar fns
2022-08-16 12:06:52 -05:00
Jeff Washington (jwash)
8c791f871e
store hash calc failures in a separate folder by slot ( #27146 )
...
* store hash calc failures in a separate folder by slot
* Update runtime/src/accounts_db.rs
Co-authored-by: Brooks Prumo <brooks@prumo.org>
Co-authored-by: Brooks Prumo <brooks@prumo.org>
2022-08-16 09:35:56 -05:00
Brooks Prumo
bc0d01110c
Remove `fn slot_deltas()` from StatusCache ( #26931 )
2022-08-16 06:08:29 -04:00
HaoranYi
1a90cffabe
Add stats for readonly cache evicts ( #26938 )
...
* add stats for readonly cache evicts
* bump up account cache to 400M
* aggregate num_evicts in the loop
2022-08-15 16:23:37 -05:00
Jeff Washington (jwash)
3ad93c84b6
wait for bg hash calc to complete before 'calculate_capitalization' ( #27145 )
2022-08-15 11:47:54 -05:00
Jeff Washington (jwash)
0ca8239ef7
don't log when there is no work to do for combining ancient slots ( #26925 )
2022-08-13 14:38:41 -06:00
Justin Starry
bdce208fe5
clean feature: `request_units_deprecated` ( #27102 )
...
clean feature: request_units_deprecated
2022-08-13 13:12:35 +01:00
Justin Starry
6c796727df
clean-feature: `default_units_per_instruction` ( #27101 )
...
clean-feature: default_units_per_instruction
2022-08-13 09:04:40 +01:00
Brooks Prumo
35c87c3888
Fix test_accounts_data_size_and_resize_transactions ( #27105 )
2022-08-12 17:06:54 +00:00
Justin Starry
5618e9fd07
Allow overriding the runtime transaction account lock limit ( #26948 )
...
* Add --transaction-account-lock-limit cli arg to test-validator
* Allow overriding the tx account lock limit in ProgramTest
2022-08-12 15:07:48 +01:00
dependabot[bot]
a00c045d7c
chore: bump once_cell from 1.12.0 to 1.13.0 ( #27049 )
...
* chore: bump once_cell from 1.12.0 to 1.13.0
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.12.0...v1.13.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
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 <you@example.com>
2022-08-10 12:19:10 -06:00
dependabot[bot]
ae5b680c6f
chore: bump serde from 1.0.138 to 1.0.143 ( #27015 )
...
* chore: bump serde from 1.0.138 to 1.0.143
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.138 to 1.0.143.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.143 )
---
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-08-10 05:08:43 +00:00
Michael Vines
ccfbc54195
Move vote program state and instructions to solana-program
2022-08-09 20:52:47 -07:00
apfitzge
6e57a8f8a1
A more convenient store-tool ( #26796 )
...
* Use new_from_file_unchecked - don't sanitize input length for appendvec file
* Exit-early on completely zeroed accounts
2022-08-08 06:55:00 -07:00
Will Hickey
ed8c224374
Bump version to v1.12 ( #26967 )
2022-08-06 13:20:30 -05:00
Christian Kamm
cf58640937
Keypair: implement clone() ( #26248 )
...
* Keypair: implement clone()
This was not implemented upstream in ed25519-dalek to force everyone to
think twice before creating another copy of a potentially sensitive
private key in memory.
See https://github.com/dalek-cryptography/ed25519-dalek/issues/76
However, there are now 9 instances of
Keypair::from_bytes(&keypair.to_bytes())
in the solana codebase and it would be preferable to have a function.
In particular since this also comes up when writing programs and can
cause users to either start messing with lifetimes or discover the
from_bytes() workaround themselves.
This patch opts to not implement the Clone trait. This avoids automatic
use in order to preserve some of the original "let developers think
twice about this" intention.
* Use Keypair::clone
2022-08-06 11:54:38 -06:00
Justin Starry
69598ed4c0
Refactor: Add `RuntimeConfig` field to Bank ( #26946 )
...
* Refactor: Simplify arguments for bank constructor methods
* Refactor: Add RuntimeConfig to Bank fields
* Arc wrap runtime_config
* Arc wrap all runtime config usages
* Remove Copy trait derivation from RuntimeConfig
* Remove some arc wrapping
2022-08-05 20:49:00 +01:00
Brooks Prumo
06a610130e
Remove bank test_max_accounts_data_size_exceeded() ( #26772 )
...
bank: remove test_max_accounts_data_size_exceeded()
2022-08-05 09:55:29 -04:00
Jeff Washington (jwash)
73fe400407
protect access to rent paying account vec ( #26919 )
2022-08-05 08:19:46 -05:00
Tyera Eulberg
2dca239480
Remove runtime dependency from solana-transaction-status ( #26930 )
...
* Move RewardType out of runtime
* Move collect_token_balances to solana-ledger
* Remove solana-runtime dependency
2022-08-05 00:20:27 -06:00
steviez
300666dce7
Make `solana-ledger-tool` run AccountsBackgroundService ( #26914 )
...
Prior to this change, long running commands like `solana-ledger-tool
verify` would OOM due to AccountsDb cleanup not happening.
Co-authored-by: Michael Vines <mvines@gmail.com>
2022-08-04 15:44:31 -05:00
Jeff Washington (jwash)
4b8f881af3
in mem acct idx scan multiple ages simultaneously ( #26853 )
2022-08-03 13:44:01 -05:00
github-actions[bot]
fbf1bf6d86
Bump Version to 1.11.6 ( #26906 )
...
Co-authored-by: willhickey <willhickey@users.noreply.github.com>
2022-08-03 12:48:43 -05:00
Jeff Washington (jwash)
0732a6c45f
add 'oldest_root' stat in hash calc ( #26896 )
2022-08-03 10:02:08 -05:00
Jeff Washington (jwash)
6706be0f56
log oldest dirty slot on clean ( #26897 )
2022-08-03 10:01:29 -05:00
Brennan Watt
f24de9d254
Make tx error accounting more granular ( #26718 )
2022-08-02 16:43:03 -07:00
Jeff Washington (jwash)
224550d65f
allow caching on ancient append vecs for accounts hash calc ( #26885 )
2022-08-02 14:40:29 -05:00
Jeff Washington (jwash)
acc1112e9c
calculate cache hash path for store_detailed_debug_info_on_failure ( #26874 )
2022-08-02 11:19:00 -05:00
Jeff Washington (jwash)
e5c5055869
Revert "allow caching on ancient append vecs for accounts hash calc" ( #26882 )
...
Revert "allow caching on ancient append vecs for accounts hash calc (#26770 )"
This reverts commit 30b408ed0c
.
2022-08-02 10:23:11 -05:00
Jon Cinque
f210182851
accounts: Don't collect rent on newly created accounts ( #26851 )
2022-08-02 16:34:34 +02:00
Jeff Washington (jwash)
050c66f197
enable accounts hash caching if store_detailed_debug_info_on_failure ( #26864 )
2022-08-01 14:27:20 -05:00
Jeff Washington (jwash)
d159682a6d
add comment ( #26875 )
2022-08-01 14:25:19 -05:00
Jeff Washington (jwash)
ebabc53cee
use Vec::drain instead of option/take ( #26852 )
2022-07-31 21:04:15 -05:00
Jeff Washington (jwash)
c7462b7a52
ledger tool verify can store debug info on hash calc ( #26837 )
2022-07-29 15:54:56 -05:00
HaoranYi
38cd29810f
Fix ordering for AccountEntry ref_count ( #26842 )
...
fix ordering for ref_count
2022-07-29 15:47:03 -05:00
Jeff Washington (jwash)
69b5dd9b07
cleanup ignore_eof_error ( #26838 )
2022-07-29 12:10:22 -05:00
apfitzge
c1f7d1a367
Add AppendVec::new_from_file_unchecked ( #26795 )
...
new_from_file_unchecked
2022-07-28 14:57:26 -05:00
Brennan Watt
467cb5def5
Concurrent slot replay ( #26465 )
...
* Concurrent replay slots
* Split out concurrent and single bank replay paths
* Sub function processing of replay results for readability
* Add feature switch for concurrent replay
2022-07-28 11:33:19 -07:00
Jeff Washington (jwash)
817f65bb50
add full_snapshot to hash config ( #26811 )
2022-07-28 09:46:34 -05:00
Ashwin Sekar
8d69e8d447
Compact vote state updates to reduce block size ( #26616 )
...
* Compact vote state updates to reduce block size
* Add rpc transaction tests
2022-07-27 13:23:44 -06:00
Jeff Washington (jwash)
1a5b830294
CalcAccountsHashConfig default for tests ( #26810 )
2022-07-27 13:21:38 -05:00
Jeff Washington (jwash)
1421833c5e
log when shrink still contains extra stores ( #26794 )
2022-07-27 09:14:16 -05:00
Jeff Washington (jwash)
30b408ed0c
allow caching on ancient append vecs for accounts hash calc ( #26770 )
2022-07-27 09:13:32 -05:00
dependabot[bot]
cd4340ed06
chore: bump bytemuck from 1.10.0 to 1.11.0 ( #26792 )
...
* chore: bump bytemuck from 1.10.0 to 1.11.0
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/Lokathor/bytemuck/releases )
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: bytemuck
dependency-type: direct:production
update-type: version-update:semver-minor
...
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-07-26 20:50:30 -06:00
apfitzge
293d651ca8
store-tool use accounts_iter ( #26793 )
2022-07-26 17:29:53 -05:00