Kevin Heavey
ff8a25b97f
svm: move bpf-loader-program to dev-dependencies ( #711 )
2024-04-10 10:22:51 -05:00
Kevin Heavey
d06e3e95cb
program-test: move test-case to dev-dependencies ( #710 )
2024-04-10 10:22:28 -05:00
behzad nouri
d308acdc84
removes feature gated code for dropping legacy shreds ( #677 )
2024-04-10 14:28:34 +00:00
Jeff Washington (jwash)
9778e489b0
add ScanAccountStorageData ( #694 )
2024-04-10 09:22:37 -05:00
Justin Starry
72ee270943
Update cargo metadata to Anza ( #635 )
2024-04-10 14:29:48 +08:00
Tyera
dd8e1f4c73
Remove overly restrictive check_account_access for partitioned epoch rewards ( #631 )
...
* Remove rewards-interval-related check_account_access implementation
* Move RewardsInterval to tests module
* Update test to new StakeProgram functionality
2024-04-09 21:55:45 -06:00
Jeff Washington (jwash)
4535ea60a9
remove ReadableAccount trait from LoadedAccount ( #692 )
2024-04-09 22:14:52 -05:00
Jeff Washington (jwash)
0c5d56bd33
pass &LoadedAccount scan_account_storage ( #693 )
2024-04-09 22:13:10 -05:00
Ashwin Sekar
70c4cb0ba1
consensus: add dev-context-only-utils to tower ( #687 )
2024-04-09 16:39:57 -07:00
Tyera
2470b45468
Check EpochRewards::active within the Stake Program ( #617 )
...
* Add new StakeError variant
* Add closure to return error if EpochRewards::active
* Use error_during_epoch_rewards for Instructions that mutate stake accounts
* Use try instead of manually matching Ok/Err
* Consolidate error_during_epoch_rewards check
* Add new test helper
* Add test demonstrating which ix return StakeError::EpochRewardsActive
* Remove single-use fn
2024-04-09 17:29:50 -06:00
Andrew Fitzgerald
1744e9efd7
BankingStage Forwarding Filter ( #685 )
...
* add PacketFlags::FROM_STAKED_NODE
* Only forward packets from staked node
* fix local-cluster test forwarding
* review comment
* tpu_votes get marked as from_staked_node
2024-04-09 23:12:26 +00:00
Lijun Wang
592107a907
corrected to not use hardcoded connections count for unstaked ( #633 )
...
* corrected to not use hardcoded connections count for unstaked
* Fixed a math problem on max_unstaked_load_in_throttling_window
* Fixed a unit test failure
2024-04-09 15:20:24 -07:00
Jeff Washington (jwash)
d9d11cda4d
break out parameters to hash_account ( #691 )
2024-04-09 17:03:37 -05:00
Jeff Washington (jwash)
f62d79b8be
add `data_len()` to `LoadedAccount` ( #689 )
2024-04-09 16:32:07 -05:00
Jeff Washington (jwash)
9d700b8749
in get_pubkey_hash_account_for_slot use take_account earlier ( #688 )
2024-04-09 16:05:46 -05:00
Brooks
4546e79cbc
Fixes nits in streamer perf tracking ( #648 )
2024-04-09 16:47:18 -04:00
Jeff Washington (jwash)
374705293c
implement get_account_sizes for hot storages ( #676 )
2024-04-09 15:21:09 -05:00
Lucas Steuernagel
4753a8aefa
Move `add_builtin` to SVM ( #547 )
2024-04-09 16:55:09 -03:00
Jeff Washington (jwash)
5eab6ae2b5
`purge_slot_storage` doesn't use `scan_account_storage` ( #684 )
2024-04-09 13:55:00 -05:00
Brooks
87314a5549
Reduces what accounts-db exports publicly ( #667 )
2024-04-09 14:53:56 -04:00
Jeff Washington (jwash)
a2544e434d
implement scan_index for hot storage ( #675 )
...
* implement scan-index for
* impl `stored_size` for hot, fix test
2024-04-09 13:29:54 -05:00
Jeff Washington (jwash)
4ed5b4c083
removed LoadedAccount::compute_hash ( #683 )
2024-04-09 13:29:03 -05:00
dependabot[bot]
4bbd535b08
build(deps): bump ctrlc from 3.4.2 to 3.4.4 ( #672 )
...
Bumps [ctrlc](https://github.com/Detegr/rust-ctrlc ) from 3.4.2 to 3.4.4.
- [Release notes](https://github.com/Detegr/rust-ctrlc/releases )
- [Commits](https://github.com/Detegr/rust-ctrlc/compare/3.4.2...3.4.4 )
---
updated-dependencies:
- dependency-name: ctrlc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-10 00:49:25 +08:00
Harry Whelchel
eacdb2b9db
Fixes typo in validator requirements ( #680 )
2024-04-09 10:46:53 -05:00
Dmitri Makarov
9552b1ad3c
SVM: Add specification document ( #643 )
...
* SVM: Add specification document
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
* Update svm/doc/spec.md
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
---------
Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
2024-04-09 07:25:18 -07:00
Jeff Washington (jwash)
c0be86d0e1
implement scan_pubkeys for hot storage ( #666 )
2024-04-09 07:47:26 -05:00
Jeff Washington (jwash)
8e0a55fe64
add file_provider to accounts_db ( #665 )
2024-04-08 17:58:01 -05:00
Brooks
6fedfe5a4d
Evicts from the accounts read cache in the background ( #575 )
2024-04-08 17:10:15 -04:00
Lucas Steuernagel
e01670135f
Remove `must_replace` parameter from `add_builtin_account` ( #662 )
2024-04-08 17:57:15 -03:00
Jeff Washington (jwash)
b9487f5263
add get_account_sizes ( #661 )
2024-04-08 15:41:38 -05:00
Jeff Washington (jwash)
294d9d7e50
intset for SlotOffsets ( #656 )
2024-04-08 15:10:46 -05:00
Joe C
caa18a528f
cli tests: correct program data account test check ( #660 )
2024-04-08 14:52:52 -05:00
HaoranYi
287d0d2582
Remove reclaim param for store_accounts_frozen ( #618 )
...
remove reclaim param for store_accounts_frozen
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2024-04-08 14:28:13 -05:00
steviez
191a997c5f
Make thread id a tag instead of field in BankingStage metrics ( #644 )
...
Making the id a tag instead of a field will allow group-by operations on
id in chronograph
2024-04-08 13:15:52 -05:00
Jeff Washington (jwash)
0af9aaa573
handle reclaimed offsets as a batch ( #652 )
2024-04-08 12:10:38 -05:00
steviez
923e303acb
Move recv timer to start before crossbream receiver recv_timeout() ( #642 )
...
The timer starting after recv_timeout() means the measured time will NOT
include time spent waiting for the first PacketBatch from the receiver.
2024-04-08 11:28:00 -05:00
Jeff Washington (jwash)
0025ecd5af
append vec: remove_account->remove_accounts ( #607 )
2024-04-08 09:30:03 -05:00
Wen
312f725f1e
wen_restart: Find the bank hash of the heaviest fork, replay if necessary. ( #420 )
...
* Find the bank hash of the heaviest fork, replay if necessary.
* Make it more explicit how heaviest fork slot is selected.
* Use process_single_slot instead of process_blockstore_from_root, the latter
may re-insert banks already frozen.
* Put BlockstoreProcessError into the error message.
* Check that all existing blocks link to correct parent before replay.
* Use the default number of threads instead.
* Check whether block is full and other small fixes.
* Fix root_bank and move comments to function level.
* Remove the extra parent link check.
2024-04-07 16:17:52 -07:00
Joe C
03ef611f0c
program-runtime: hoist `RuntimeConfig` up to SVM ( #630 )
...
program-runtime: hoist `RuntimeConfig` out into SVM
2024-04-07 10:45:57 -05:00
Yihau Chen
01460ef5cc
remove InetAddr from streamer/src/sendmmsg.rs ( #557 )
...
* remove InetAddr from streamer/src/sendmmsg.rs
* add ref links
* use SocketAddr conversion directly
2024-04-07 00:35:31 +08:00
Justin Starry
be09b497cb
changelog: add entry for new simulate tx replacement blockhash ( #623 )
2024-04-06 22:21:44 +08:00
Sammy Harris
c207274e11
feat: include replaced blockhash in RPC simulation response ( #380 )
...
* feat: include replaced blockhash in RPC simulation response
* rename blockhash field to `replacement_blockhash`
* add tests to ensure replacement_blockhash is returning correctly
* fixed tests
* fixed tests again for real this time?
2024-04-06 17:27:10 +08:00
carllin
de8e9e6850
Add all validators as entrypoint to local cluster ( #567 )
2024-04-05 20:38:13 -04:00
Lijun Wang
b443cfb0c7
Show staked vs nonstaked packets sent down/throttled ( #600 )
...
* Show staked vs nonstaked packets sent down
* add metrics on throttled staked vs non-staked
2024-04-05 13:49:23 -07:00
Brooks
ca24f6a44d
Adds metrics for how long it takes to store into the accounts read cache ( #610 )
2024-04-05 16:25:31 -04:00
dependabot[bot]
948caebfa9
build(deps): bump chrono from 0.4.34 to 0.4.37 ( #603 )
...
* build(deps): bump chrono from 0.4.34 to 0.4.37
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.34 to 0.4.37.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.34...v0.4.37 )
---
updated-dependencies:
- dependency-name: chrono
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
* update deprecated functions
* add test_unix_timestamp_to_string
---------
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>
Co-authored-by: yihau <yihau.chen@icloud.com>
2024-04-05 19:06:52 +00:00
Brooks
e09541a762
Adds metrics for how long it takes to evict from the accounts read cache ( #585 )
2024-04-05 13:36:36 -04:00
Tyera
9253c465d1
Persist EpochRewards sysvar ( #572 )
...
* Persist EpochRewards sysvar between reward intervals
* Adjust initial EpochRewards balance to ensure it is not debited out of existence
* Set EpochRewards::active = false at end of distribution
* Fix tests
* Extend test to 2 epochs, assert sysvar still exists
* Stop adjusting EpochRewards balance based on rewards
* Fix tests
* Review suggestions
2024-04-05 10:13:50 -06:00
Jeff Washington (jwash)
de9e999335
group remove_dead_accounts by slot ( #578 )
2024-04-05 10:38:11 -05:00
Alexander Meißner
55c05c5ea5
Fix - `FailedVerification` and `Closed` tombstones ( #419 )
...
* Only the verifier can cause FailedVerification, everything else is Closed
* Removes the environments parameter from load_program_accounts().
* cargo fmt
* Simplify invocation of deployed program
* Attempt to invoke a program before it is deployed
* Attempt to invoke a buffer before it is used in a deployment
* Escalates Option return value of load_program_accounts() to load_program_with_pubkey().
* Review feedback
2024-04-05 13:03:18 +02:00