Commit Graph

24406 Commits

Author SHA1 Message Date
Alexander Meißner 14446e55bf
Reword comment in `load_transaction_accounts()` (#34561)
Rewords the comment of simplify_writable_program_account_check in load_transaction_accounts().
2023-12-21 12:48:16 +01:00
Kirill Fomichev 1db76cf454
bigtable: remove extra clones (#34239) 2023-12-20 23:08:20 +00:00
Brooks d3cde6c6fd
Moves Bank benches-only ctors in DCOU (#34545) 2023-12-20 16:22:38 -05:00
Tyera d4363526fe
Cargo needs version arg after subcommand (#34547) 2023-12-20 19:56:05 +00:00
Tyera 7d209a448d
ledger-tool: support v0 transactions in blocks from bigtable (#34544)
Support v0 transactions
2023-12-20 19:54:39 +00:00
Yueh-Hsuan Chiang 09efd704eb
[TieredStorage] boundary check for get_account_address() (#34529)
#### Problem
get_account_address() does not check whether IndexOffset is valid.

#### Summary of Changes
This PR adds two checks.  First, it checks whether the IndexOffset exceeds
the boundary of the index block.  Second, when an index format that has the
same index entries as account entries is used, it also checks whether IndexOffset
is smaller than account_entry_count.

#### Test Plan
New unit-test is added.
2023-12-20 10:44:34 -08:00
Tyera cc0e5f7a13
ledger-tool: add show-entries option to bigtable block (#34536)
* Add cli flag to show entry data

* Add display structs

* Add writeln_entry helper fn

* Add entry conversion method

* Populate Display for CliBlockWithEntries

* Add ctor from flattened block and entries iterator

* Support show_entries
2023-12-20 09:53:19 -07:00
Ashwin Sekar def3bc4c4f
Add feature flag for LastIndex and Erasure duplicate proofs (#34360)
* Add feature flag for LastIndex and Erasure duplicate proofs

* pr feedback: use root bank instead of 2 params

* pr feedback: & instead of &Arc

* pr feedback: reuse fn, remove redundant clones

* rebase: fix feature set conflict
2023-12-20 10:20:30 -05:00
sakridge 210d320f16
Remove to_string which is not necessary (#34540) 2023-12-20 14:34:16 +01:00
Tao Zhu c722976a6f
clean up no longer needed feature_set in test (#34530) 2023-12-19 16:43:35 -06:00
Tao Zhu 4a8582eab4
cleanup feature code after activated everywhere (#34509) 2023-12-19 13:59:26 -06:00
Tyera 51c9963a60
cargo-install-all: use full path for sourcing (#34525)
Use full path for sourcing
2023-12-19 12:58:16 -07:00
José Corral 97f02fa05d
Update build by source docs to add pre-requisites (#34441)
* Update build by source docs to add pre-requisites

* Recommend WSL for Windows users

Co-authored-by: Nick Frostbutter <75431177+nickfrosty@users.noreply.github.com>

* Re-run prettier on ./docs/src/cli/install.md

---------

Co-authored-by: jcleira <jmc.leira@gmail.com>
Co-authored-by: Nick Frostbutter <75431177+nickfrosty@users.noreply.github.com>
2023-12-19 14:50:50 -05:00
behzad nouri 4feadbdb7c
disables turbine and repair QUIC endpoints on mainnet-beta (#34523)
On mainnet-beta, respective QUIC endpoint are unnecessary for now until
testnet has fully migrated to QUIC. The commit disables turbine and
repair QUIC endpoints on mainnet-beta.
2023-12-19 19:12:18 +00:00
Andrew Fitzgerald d00c9a45b2
TransactionScheduler: pre_lock_filter (#34488) 2023-12-19 09:25:18 -08:00
dependabot[bot] e877eef6c6
build(deps): bump hyper from 0.14.27 to 0.14.28 (#34518)
* build(deps): bump hyper from 0.14.27 to 0.14.28

Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.27 to 0.14.28.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/v0.14.28/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.27...v0.14.28)

---
updated-dependencies:
- dependency-name: hyper
  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-12-19 20:09:55 +08:00
dependabot[bot] f70e1d9be0
build(deps): bump reqwest from 0.11.22 to 0.11.23 (#34517)
* build(deps): bump reqwest from 0.11.22 to 0.11.23

Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.22 to 0.11.23.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.22...v0.11.23)

---
updated-dependencies:
- dependency-name: reqwest
  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-12-19 20:09:45 +08:00
dependabot[bot] 990d9b14a4
build(deps): bump thiserror from 1.0.50 to 1.0.51 (#34519)
* build(deps): bump thiserror from 1.0.50 to 1.0.51

Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.50 to 1.0.51.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.50...1.0.51)

---
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

---------

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-12-19 20:07:15 +08:00
Ryo Onodera d2b5afc410
Finish unified scheduler plumbing with min impl (#34300)
* Finalize unified scheduler plumbing with min impl

* Fix comment

* Rename leftover type name...

* Make logging text less ambiguous

* Make PhantomData simplyer without already used S

* Make TaskHandler stateless again

* Introduce HandlerContext to simplify TaskHandler

* Add comment for coexistence of Pool::{new,new_dyn}

* Fix grammar

* Remove confusing const for upcoming changes

* Demote InstalledScheduler::context() into dcou

* Delay drop of context up to return_to_pool()-ing

* Revert "Demote InstalledScheduler::context() into dcou"

This reverts commit 049a126c905df0ba8ad975c5cb1007ae90a21050.

* Revert "Delay drop of context up to return_to_pool()-ing"

This reverts commit 60b1bd2511a714690b0b2331e49bc3d0c72e3475.

* Make context handling really type-safe

* Update comment

* Fix grammar...

* Refine type aliases for boxed traits

* Swap the tuple order for readability & semantics

* Simplify PooledScheduler::result_with_timings type

* Restore .in_sequence()

* Use where for aesthetics

* Simplify if...

* Fix typo...

* Polish ::schedule_execution() a bit

* Fix rebase conflicts..

* Make test more readable

* Fix test failures after rebase...
2023-12-19 09:50:41 +09:00
Ashwin Sekar 4a8d27d921
replay: feature flag consumption of duplicate proofs from blockstore (#34372)
* replay: feature flag consumption of duplicate proofs from blockstore

* pr feedback: reorder check, add flag for restart logic
2023-12-18 19:01:24 -05:00
Tyera 84a079e6bc
ledger-tool: make read_only consistent across bigtable subcommands (#34513)
* Make read_only consistent across bigtable subcommands

* Update compare reference-bigtable setting
2023-12-18 16:58:21 -07:00
Pankaj Garg 6f0133bd43
Improve cache eviction policy for LoadedPrograms (#34391)
* Use 2's random selection to evict program cache

* implement decaying of usage counter

* replace RwLock with AtomicU64

* address review comments

* remove -> swap_remove
2023-12-18 14:51:36 -08:00
Yueh-Hsuan Chiang eb948b1ddc
[TieredStorage] Boundary check for accessing hot account meta (#34349)
#### Problem
Hot accounts are stored in accounts blocks, whose offset is smaller than
the index block offset.  However, the current code doesn't perform
any boundary checks when accessing hot account meta.

#### Summary of Changes
Adds boundary check when accessing hot account meta.
2023-12-18 14:32:41 -08:00
Brooks e858a5a7c0
Removes unnecessary new_sized() AccountsDb ctor (#34504) 2023-12-18 16:39:57 -05:00
Joe C 0b1327b412
changelog: update rpc `simulateTransaction` change (#34512) 2023-12-18 15:57:12 -05:00
Joe C b85a404b28
add rpc change to changelog (#34511) 2023-12-18 15:41:30 -05:00
Tyera 031125cfcf
changelog: add getSignaturesForAddress ordering (#34510)
Add getSignaturesForAddress ordering to changelog
2023-12-18 13:23:32 -07:00
dependabot[bot] 65e10ae232
build(deps): bump libc from 0.2.150 to 0.2.151 (#34398)
* build(deps): bump libc from 0.2.150 to 0.2.151

Bumps [libc](https://github.com/rust-lang/libc) from 0.2.150 to 0.2.151.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.150...0.2.151)

---
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

---------

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-12-18 18:45:59 +00:00
HaoranYi 1ac017c409
rekey stake limit feature (#34503)
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-12-18 11:11:17 -06:00
dependabot[bot] 5ecabfa3b4
build(deps): bump crossbeam-channel from 0.5.8 to 0.5.9 (#34458)
* build(deps): bump crossbeam-channel from 0.5.8 to 0.5.9

Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.8...crossbeam-channel-0.5.9)

---
updated-dependencies:
- dependency-name: crossbeam-channel
  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-12-18 09:58:02 -07:00
dependabot[bot] 9f2b658495
build(deps): bump stream-cancel from 0.8.1 to 0.8.2 (#34500)
* build(deps): bump stream-cancel from 0.8.1 to 0.8.2

Bumps [stream-cancel](https://github.com/jonhoo/stream-cancel) from 0.8.1 to 0.8.2.
- [Commits](https://github.com/jonhoo/stream-cancel/compare/v0.8.1...v0.8.2)

---
updated-dependencies:
- dependency-name: stream-cancel
  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-12-18 09:57:06 -07:00
dependabot[bot] a1032ef42e
build(deps): bump zerocopy from 0.7.15 to 0.7.31 (#34477)
* build(deps): bump zerocopy from 0.7.15 to 0.7.31

Bumps [zerocopy](https://github.com/google/zerocopy) from 0.7.15 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases)
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/zerocopy/compare/v0.7.15...v0.7.31)

---
updated-dependencies:
- dependency-name: zerocopy
  dependency-type: indirect
...

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-12-18 09:45:33 -07:00
Alexander Meißner 22bfcd92e0
Feature - Cooperative Program Loading (#34407)
* Disables verification-less reloading.

* Refactors LoadedPrograms::extract() to use a mutable parameter instead of returning the list of missing entries.

* Refactors LoadedPrograms::extract() to use a mutable parameter instead of returning a LoadedProgramsForTxBatch.

* Adds explicit SecondLevel structure to LoadedPrograms.

* Adds cooperative_loading_task.

* Implements cooperative loading in the bank.

* Fixes fork graph in tests.

* Adds LoadingTaskWaiter.

* Environment mismatch needs to just skip the entry.
2023-12-18 16:24:50 +01:00
Brooks 4181ea4677
Removes unnecessary AccountsDb::new_with_config_for_benches() (#34484) 2023-12-18 06:52:41 -05:00
Brooks cbe8a02029
Removes unnecessary AccountsDb::new_with_config_for_tests() (#34485) 2023-12-18 00:46:46 -05:00
dependabot[bot] 1015488c00
build(deps): bump syn from 2.0.40 to 2.0.41 (#34480)
* build(deps): bump syn from 2.0.40 to 2.0.41

Bumps [syn](https://github.com/dtolnay/syn) from 2.0.40 to 2.0.41.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.40...2.0.41)

---
updated-dependencies:
- dependency-name: syn
  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-12-18 10:49:56 +08:00
Joe C 171c58c5c0
RPC: Add inner instructions to simulate transaction response (#34313)
* rpc: add optional `innerInstructions: bool` arg to `simulateTransaction`

* bank: enable cpi recording in simulate

* sdk: move `InnerInstructions` into SDK from accounts DB

* bank: return inner instructions from simulate tx

* rpc: return inner instructions from simulate tx

* rpc: simulate tx: add `jsonParsed` support for inner instructions

* accounts db: add deprecated attribute to re-exported inner instructions

* rpc: de-dupe inner instruction mapping

* update deprecated comment

Co-authored-by: Tyera <teulberg@gmail.com>

---------

Co-authored-by: Tyera <teulberg@gmail.com>
2023-12-16 12:49:22 +00:00
Illia Bobyr 1f2b72b6e3
[docs] Remove trailing whitespace (#34493)
Our sanity CI check is unhappy about it.

These were added in

    commit 676e80c80a
    Author: Nick Frostbutter <75431177+nickfrosty@users.noreply.github.com>
    Date:   Mon Dec 11 15:17:13 2023 -0500

        [docs] docs migration (https://github.com/solana-labs/solana/pull/34096)

Seems like CI marked the original change as having an issue, but it was
still submitted.
2023-12-16 00:34:05 -08:00
Tao Zhu 310c7a4f9d
add requested limits to static meta (#34361)
* add requested limits to static meta
* rebase to catch up on compue_budget_processor no longer needs feature_set; update requested limits as flat fields of static meta without expiry
2023-12-15 18:39:19 -06:00
Tao Zhu 86c88d7ff6
Remove feature set from compute budget processor (#34472)
remove feature_set from compute_budget_processor
2023-12-15 15:01:02 -06:00
Tao Zhu 7360f48eb5
remove unnecessary wrapper function (#34428)
* remove unnecessary wrapper function

* add test to FeeStructure
2023-12-15 14:56:19 -06:00
Tao Zhu f214a8220f
cleanup feature code after mainnet-beta activation (#34208)
* cleanup feature code after mainnet-beta activation
* rebase then cleanup references to activated feature
2023-12-15 13:14:51 -06:00
Tyera 74d02acafd
ledger-tool: Use OutputFormat printer in program subcommand (#34475)
Use OutputFormat printer
2023-12-15 10:38:44 -07:00
steviez eaec42280a
ledger-tool: Disable os memory reporting on verify command by default (#34469)
Negate the name of the arg and change the meaning such that it is now
set-to-enable instead of set-to-disable
2023-12-15 09:52:38 -06:00
Tyera a58e462403
Remove ledger-tool-specific output format enum (#34473) 2023-12-14 23:23:37 -07:00
Brooks 45eaa4c1a6
Removes unnecessary Accounts constructors (#34471) 2023-12-14 22:50:15 -05:00
samkim-crypto aaccbdd0ae
[zk-token-sdk] Fix range proof transcript seed typo (#34468)
fix range proof transcript seed typo
2023-12-14 13:37:12 -08:00
Brooks e79c09bdc4
Refactors Accounts constructors (#34466) 2023-12-14 16:36:47 -05:00
Tyera 36c1bbfe12
Fix ledger-tool bigtable compare blocks (#34373)
* Return early if reference set is empty

* Remove unreachable case

* Update reference_last_block

* Limit reference set by last_block_checked

* Return superflous-block data too

* Sort missing/superfluous blocks

* Fix tests

* Move last_block_checked calculation into missing_blocks()

* Prevent missing_slots panic

* Fix test
2023-12-14 14:32:17 -07:00
HaoranYi e472400d6e
fix typo in variable name and error messages (#34463)
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-12-14 15:29:02 -06:00