Justin Starry
0ca963a869
Refactor: Add separate methods for retrieving stake info from VoteAccounts ( #26224 )
2022-06-25 20:03:15 +00:00
Justin Starry
7cd7173b71
Refactor: Add get_delegated_stake method to VoteAccounts ( #26221 )
2022-06-25 16:41:35 +00:00
Justin Starry
44d1e62007
Refactor: No need to return stake in Bank::get_vote_account ( #26220 )
2022-06-25 16:27:43 +00:00
behzad nouri
f1b82ec44d
factors out common retransmit work for shreds of the same slot ( #26218 )
...
Shreds arriving at a node for retransmit tend to belong to the same slot
(or a just a couple of different slots). Slot leader and cluster nodes
are common for the shreds of the same slot, and so the common work to
look up these values can be factored out.
This commit first group-bys shreds by slot to factor out that common
lookup work.
2022-06-25 15:49:05 +00:00
behzad nouri
2efdb965dd
encapsulates AuthorizeNonceAccount implementation in the nonce module ( #26202 )
...
Follow up commit removes feature gate code separating durable nonce from
blockhash domain. This commit allows to encapsulate any logic
distinguishing legacy vs current nonce versions in the nonce module
after removing the feature gate.
2022-06-25 12:17:39 +00:00
Trent Nelson
3c33347723
docs: revert unintentional packaging changes
2022-06-24 23:08:27 +00:00
Trent Nelson
29aa45b38e
docs: tune open file descriptor limit along with maps
2022-06-24 16:04:02 -06:00
Trent Nelson
78fcf89574
docs: aggregate sysctl knob optimization to one config file
2022-06-24 16:04:02 -06:00
Trent Nelson
66ad921200
docs: correct link target
2022-06-24 16:04:02 -06:00
Jeff Washington (jwash)
a3395a786a
vote_account uses AccountSharedData to avoid copies ( #23687 )
...
* vote_account uses AccountSharedData to avoid copies
* simpler deserialize
2022-06-24 15:08:01 -05:00
Nicholas Rempel
42eb846d52
Add cargo sort check to test-checks.sh
2022-06-24 12:41:38 -07:00
Nicholas Rempel
2b21c1da29
Sort Cargo.toml files
2022-06-24 12:41:38 -07:00
Jeff Washington (jwash)
18397527ad
retain prior metric behavior for invalid_cached_stake_accounts ( #26181 )
2022-06-24 14:12:16 -05:00
Jeff Washington (jwash)
054b25729d
eliminate vec creation in stake rewards ( #26191 )
2022-06-24 13:40:53 -05:00
Ivan Mironov
1884275882
Support reading keypair from stdin in `solana-validator set-identity`/`solana-validator authorized-voter add` ( #26056 )
...
* Add keypair reading from stdin in `validator set-identity`
* Add keypair reading from stdin in `validator authorized-voter add`
2022-06-24 16:21:03 +00:00
HaoranYi
fbcb4d8216
extract get_stake_reward fn from StakeReward ( #26183 )
2022-06-24 08:44:48 -05:00
Brooks Prumo
877fedadac
Remove StatusCacheRc type and use StatusCache directly ( #26184 )
2022-06-24 08:38:56 -05:00
apfitzge
4a729effff
Bugfix/test get rent collection accounts remove random account ( #26178 )
...
* Use default GenisisConfig so we don't have a random account
* Formatting
2022-06-24 09:22:50 -04:00
Jeff Washington (jwash)
a36abfda28
don't skip rewrite when account was written IN the current slot already ( #26197 )
2022-06-24 07:28:37 -05:00
Justin Starry
8ef33a53a5
explorer: Add account bytes to tx inspector ( #26200 )
2022-06-24 10:40:30 +00:00
Miles Obare
b26c79b77b
[quic]Decrement total_streams correctly ( #26158 )
2022-06-23 14:09:43 -07:00
Brooks Prumo
5b842669e7
Remove InMemAccountsIndex::map() and use map_internal directly ( #26189 )
2022-06-23 15:55:35 -05:00
Brooks Prumo
23c50a2389
Add StatusCache::root_slot_deltas() and use it ( #26170 )
2022-06-23 15:19:06 -05:00
Boqin Qin(秦 伯钦)
113b161ba9
rpc: fix possible deadlock in rpc ( #26051 )
2022-06-23 14:09:07 -06:00
Trent Nelson
04ce0ce68b
Update SECURITY.md
...
finish filling out the table....
2022-06-23 13:38:54 -06:00
Tyera Eulberg
a6ba5a9a05
Add transaction index in slot to geyser plugin TransactionInfo ( #25688 )
...
* Define shuffle to prep using same shuffle for multiple slices
* Determine transaction indexes and plumb to execute_batch
* Pair transaction_index with transaction in TransactionStatusService
* Add new ReplicaTransactionInfoVersion
* Plumb transaction_indexes through BankingStage
* Prepare BankingStage to receive transaction indexes from PohRecorder
* Determine transaction indexes in PohRecorder; add field to WorkingBank
* Add PohRecorder::record unit test
* Only pass starting_transaction_index around PohRecorder
* Add helper structs to simplify test DashMap
* Pass entry and starting-index into process_entries_with_callback together
* Add tx-index checks to test_rebatch_transactions
* Revert shuffle definition and use zip/unzip
* Only zip/unzip if randomize
* Add confirm_slot_entries test
* Review nits
* Add type alias to make sender docs more clear
2022-06-23 13:37:38 -06:00
Trent Nelson
c01b985717
Update SECURITY.md
...
- fix nav link
- add bounty split policy for duplicate reports
2022-06-23 13:35:58 -06:00
Jack May
e8e0770333
cleanup fixed_memcpy_nonoverlapping_check ( #26160 )
2022-06-23 11:25:44 -07:00
apfitzge
7efd05f7b3
Change get_pubkeys to match the new enum ( #26177 )
2022-06-23 11:56:09 -05:00
lwus
d12e566a4c
bigtable: allow forward proxy in gRPC connection ( #25918 )
...
* bigtable: allow forward proxy in tonic connection
* bigtable: try fixing ci
* bigtable: cargo fmt
* bigtable: add docs for BIGTABLE_PROXY env var
* bigtable: fix readme header level
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-06-23 10:51:31 -06:00
Boqin Qin(秦 伯钦)
355e09e1fb
runtime: fix possible deadlock in in_mem_accounts_index ( #26046 )
2022-06-23 11:35:47 -05:00
Jeff Washington (jwash)
102fb98070
impl StorableAccounts for [StakeReward] ( #26165 )
2022-06-23 08:34:28 -05:00
Jeff Washington (jwash)
19b79aa764
add metrics for invalid_cached_stake_accounts_rent_epoch ( #26143 )
2022-06-23 08:33:24 -05:00
Jeff Washington (jwash)
9db44ce352
cleanup some AccountSharedData::from(Account ( #26120 )
2022-06-23 08:32:48 -05:00
behzad nouri
f534b8981b
maps number of data shreds to erasure batch size ( #25917 )
...
In prepration of
https://github.com/solana-labs/solana/pull/25807
which reworks erasure batch sizes, this commit:
* adds a helper function mapping the number of data shreds to the
erasure batch size.
* adds ProcessShredsStats to Shredder::entries_to_shreds in order to
replace and remove entries_to_data_shreds from the public interface.
2022-06-23 13:27:54 +00:00
behzad nouri
09d3c890e9
partially reverts #25963 ( #26155 )
...
This partially reverts commit 47e62add5b
.
Adding back the feature-id so that the master branch can successfully
run ledger-tool across epoch-boundary which enabled the feature.
Note that #25963 backport did not remove the feature-id.
2022-06-23 13:23:11 +00:00
Brooks Prumo
7d29c26315
Remove auto traits from ICE work-around ( #26098 )
2022-06-23 07:22:30 -05:00
Brooks Prumo
a5cf72e446
StatusCache::roots() returns `Slot`s not `u64`s ( #26164 )
2022-06-23 07:03:09 +00:00
Yihau Chen
5c920caf4f
chore: separate publish installer process ( #26137 )
...
* chore: reorder name and command
* chore: extract publish installer from publich tarball
* lint: use space
2022-06-23 11:18:30 +08:00
github-actions[bot]
5c2f819f99
Bump Version to 1.11.2 ( #26159 )
2022-06-22 21:16:18 -05:00
Jeff Washington (jwash)
aea75e82e3
Bank::store_accounts takes StorableAccounts ( #26113 )
2022-06-22 21:11:01 -05:00
Jeff Washington (jwash)
a32523c43b
cleanup some tests ( #26139 )
2022-06-22 21:10:46 -05:00
dependabot[bot]
29bec3eb54
chore: bump semver from 1.0.9 to 1.0.10 ( #26154 )
...
* chore: bump semver from 1.0.9 to 1.0.10
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: semver
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-06-22 23:47:26 +00:00
Jack May
a76a7b8361
update compute budget docs ( #26014 )
2022-06-22 16:46:37 -07:00
Jack May
467c840df8
Cleanup superseded neon specific feature ( #26142 )
2022-06-22 15:12:12 -07:00
HaoranYi
c4efb9f19e
Stake cache size ( #26071 )
...
* reduce threadpool for stake processing
* wip
* Revert "reduce threadpool for stake processing"
This reverts commit 004a4f872ea7a3ef53e38d145b6350c3f57c680c.
* batch update stake_cache
* fix deadlock
* add test
* code review feedbacks
* more review feedbacks
* fix conflicts
* report stake account len and vote account len at epoch boundary
* report num_staked_nodes
* remove batch store, no atomic for redeem timing
2022-06-22 16:22:22 -05:00
dependabot[bot]
e7597ab1fe
chore:(deps): bump jsdom from 16.4.0 to 16.7.0 in /explorer ( #26152 )
...
Bumps [jsdom](https://github.com/jsdom/jsdom ) from 16.4.0 to 16.7.0.
- [Release notes](https://github.com/jsdom/jsdom/releases )
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md )
- [Commits](https://github.com/jsdom/jsdom/compare/16.4.0...16.7.0 )
---
updated-dependencies:
- dependency-name: jsdom
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 21:18:29 +00:00
Pankaj Garg
17cf010ae6
Tune stream timeout and reading after timeouts ( #26133 )
...
* Tune stream timeout and reading after timeouts
* update sleep in test
2022-06-22 21:07:31 +00:00
dependabot[bot]
55a7e53b9e
chore: bump lru from 0.7.6 to 0.7.7 ( #26140 )
...
* chore: bump lru from 0.7.6 to 0.7.7
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.6 to 0.7.7.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.6...0.7.7 )
---
updated-dependencies:
- dependency-name: lru
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-06-22 14:39:07 -06:00
Will Hickey
4cfcfe51a0
Update version bump check so it works on master branch ( #26146 )
2022-06-22 15:26:10 -05:00