Kevin Heavey
af7fd32f4c
chore: fix some typos ( #33833 )
...
* fix spelling of "retrieved"
* fix spelling of "should"
* fix spelling of "comparisons"
2023-10-25 16:21:53 +02:00
Pankaj Garg
78c31aa6b8
Use program cache fork graph in extract() ( #33806 )
...
* Use program cache fork graph instead of WorkingSlot trait
* Fix deadlocked tests
* keep WorkingSlot trait for now
2023-10-25 06:04:38 -07:00
Ashwin Sekar
a3b0348649
docs: outline requirement of stake in order to vote ( #33842 )
...
* docs: outline requirement of stake in order to vote
* pr feedback: move stake section up
2023-10-25 00:45:07 -04:00
steviez
9ffbe2afd8
Replace several .expect() statements with error handling ( #33783 )
2023-10-24 23:48:21 +02:00
Brooks
612e8e8457
Removes Default and pub from CumulativeOffset ( #33840 )
2023-10-24 19:22:34 +00:00
Brooks
abf51864b4
Removes `#[allow(dead_code)]` in StorableAccounts impl ( #33821 )
2023-10-24 18:31:27 +00:00
HaoranYi
9064b8b2a2
Optimize account hash CumulativeOffset index from vec to 2-element array ( #33839 )
...
* optimize account hash merkle tree index from vec to 2-element array
* typo
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-10-24 18:26:16 +00:00
samkim-crypto
381d2254eb
[zk-token-sdk] Check that discrete log compression batch size is greater than 0 ( #33699 )
...
check that discrete log compression batch size is greater than 0
2023-10-24 11:11:28 -07:00
behzad nouri
6470544ea2
adds metrics to turbine QUIC endpoint ( #33819 )
2023-10-24 14:59:15 +00:00
samkim-crypto
c3d588b3f1
[zk-token-sdk] clean-up range-proof docs ( #33803 )
...
* add/fix docs for range proof
* remove pre-compute generators todo
* remove double check generators todo
2023-10-24 07:53:48 -07:00
Sean Young
8e0acf481c
Update Solang Solidity compiler to v0.3.3 ( #33830 )
...
Signed-off-by: Sean Young <sean@mess.org>
2023-10-24 14:24:54 +01:00
dependabot[bot]
540fc2e2fe
build(deps): bump base64 from 0.21.4 to 0.21.5 ( #33827 )
...
* build(deps): bump base64 from 0.21.4 to 0.21.5
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.21.4 to 0.21.5.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.4...v0.21.5 )
---
updated-dependencies:
- dependency-name: base64
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-10-24 13:17:52 +00:00
dependabot[bot]
2c1ce0f460
build(deps): bump ahash from 0.8.4 to 0.8.5 ( #33826 )
...
* build(deps): bump ahash from 0.8.4 to 0.8.5
Bumps [ahash](https://github.com/tkaitchuck/ahash ) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/tkaitchuck/ahash/releases )
- [Commits](https://github.com/tkaitchuck/ahash/compare/v0.8.4...v0.8.5 )
---
updated-dependencies:
- dependency-name: ahash
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-10-24 13:17:29 +00:00
Brooks
2f024f0cc1
Uses AccountHash in CalculateHashIntermediate ( #33822 )
2023-10-24 08:39:32 -04:00
Andrew Fitzgerald
b0dcaf29e3
TransactionScheduler: Consume Scheduler w/ PrioGraph ( #33612 )
2023-10-24 11:33:04 +08:00
Nick Guo
8954689e1e
Fix typos in documentation for Secp256k1 native program ( #33796 )
2023-10-24 00:42:45 +02:00
Jeff Washington (jwash)
b0b4e1f0c0
remove IncludeSlotInHash after feature activation on mnb ( #33816 )
...
* remove IncludeSlotInHash after feature activation on mnb
* fix compile errors
* compile errors
* fix tests
* fix test results
2023-10-23 15:12:02 -07:00
Illia Bobyr
a099c7a0b8
zeroize: Allow versions newer than 1.3 for `curve25519-dalek` ( #33516 )
...
`curve25519-dalek` v3.2.1 has a constraint on the maximum `zeroize`
version to be no more than 1.3.
At the same time, `cargo` does not want to construct a dependency graph
with duplicate instances of a crate, when the first non-zero version of
those instances are the same. That is, it refuses to build a workspace
with both 1.3 and 1.4 versions of `zeroize`.
`zeroize` is actually backward compatible, and `curve25519-dalek`
restriction is overly pessimistic. These packages lifted this
restriction in newer versions, but we still depend on older version and
can not immediately update.
2023-10-23 12:19:59 -07:00
Jeff Washington (jwash)
54b796f5a1
ancient pack: add low water mark ( #33785 )
2023-10-23 10:56:18 -07:00
Pankaj Garg
0fc2c9f214
Cargo registry server updates to download crates ( #33805 )
2023-10-23 10:25:51 -07:00
Lijun Wang
1e8aa522bd
Made geyser interface repr(c) to improve interface stability ( #33703 )
...
* Made geyser interface repr(c) to improve interface stability
2023-10-23 09:59:07 -07:00
Pankaj Garg
9d42cd7efe
Initialize fork graph in program cache during bank_forks creation ( #33810 )
...
* Initialize fork graph in program cache during bank_forks creation
* rename BankForks::new to BankForks::new_rw_arc
* fix compilation
* no need to set fork_graph on insert()
* fix partition tests
2023-10-23 09:32:41 -07:00
HaoranYi
669bc43bcd
Buffer account's fields for hash ( #33788 )
...
* buffer accounts field for hash
* use smallvec to allocate hash buffer on stack
* sort deps
* more opt
* clippy
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-10-23 09:48:17 -05:00
Jeff Washington (jwash)
a41b24f185
fix some ancient stats ( #33791 )
2023-10-23 07:23:47 -07:00
Jeff Washington (jwash)
34103e0913
typo in variable name ( #33801 )
2023-10-23 07:23:11 -07:00
Yihau Chen
7d56c3484c
test: check the existence of target_path_parent before detelting ( #33812 )
2023-10-23 14:14:34 +00:00
dependabot[bot]
cb736123b2
build(deps): bump ahash from 0.8.3 to 0.8.4 ( #33814 )
...
* build(deps): bump ahash from 0.8.3 to 0.8.4
Bumps [ahash](https://github.com/tkaitchuck/ahash ) from 0.8.3 to 0.8.4.
- [Release notes](https://github.com/tkaitchuck/ahash/releases )
- [Commits](https://github.com/tkaitchuck/ahash/commits )
---
updated-dependencies:
- dependency-name: ahash
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-10-23 14:04:45 +00:00
dependabot[bot]
071fa5ab9d
build(deps): bump socket2 from 0.5.4 to 0.5.5 ( #33794 )
...
* build(deps): bump socket2 from 0.5.4 to 0.5.5
Bumps [socket2](https://github.com/rust-lang/socket2 ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/rust-lang/socket2/releases )
- [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/socket2/compare/v0.5.4...v0.5.5 )
---
updated-dependencies:
- dependency-name: socket2
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-10-23 14:04:04 +00:00
dependabot[bot]
f6369f5c76
build(deps): bump thiserror from 1.0.49 to 1.0.50 ( #33781 )
...
* build(deps): bump thiserror from 1.0.49 to 1.0.50
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.49 to 1.0.50.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.49...1.0.50 )
---
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-10-23 14:03:41 +00:00
Pankaj Garg
abf3b3e527
Custom debug impl for LoadedPrograms cache ( #33808 )
2023-10-22 05:51:14 -07:00
Dmitri Makarov
8260ffc1ef
Bump platform-tools to v1.39 ( #33804 )
2023-10-21 16:22:16 -04:00
Tao Zhu
af9c754690
Crates have identical build.rs to frozen-abi can just be symlink ( #33787 )
...
crates have identical build.rs to frozen-abi can just be symlink
2023-10-21 13:33:10 -05:00
steviez
56ccffdaa5
Replace get_tmp_ledger_path!() with self cleaning version ( #33702 )
...
This macro is used a lot for tests to create a ledger path in order to
open a Blockstore. Files will be left on disk unless the test remembers
to call Blockstore::destroy() on the directory. So, instead of requiring
this, use the get_tmp_ledger_path_auto_delete!() macro that creates a
TempDir (which automatically deletes itself when it goes out of scope).
2023-10-21 11:38:31 +02:00
Ryo Onodera
5a963529a8
Add BankWithScheduler for upcoming scheduler code ( #33704 )
...
* Add BankWithScheduler for upcoming scheduler code
* Remove too confusing insert_without_scheduler()
* Add doc comment as a bonus
* Simplify BankForks::banks()
* Add derive(Debug) on BankWithScheduler
2023-10-21 15:56:43 +09:00
Illia Bobyr
01f1bf2799
zeroize: Allow versions newer than 1.3 for `aes-gcm-siv` ( #33618 )
...
`aes-gcm-siv` v0.10.3 has a constraints on maximum `zeroize` version,
set to be 1.3 or below.
At the same time, `cargo` does not want to construct a dependency graph
with duplicate instances of a crate, when the first non-zero version of
those instances are the same. That is, it refuses to build a workspace
with both 1.3 and 1.4 versions of `zeroize`.
`zeroize` is actually backward compatible, and `aes-gcm-siv` restriction
is overly pessimistic. This package lifted this restriction in a newer
versions, but we still depend on older versions and can not immediately
update.
In order to be able to use a version of `zeroize` newer than 1.3 we need
to remove a similar restriction from `curve25519-dalek` as well.
2023-10-20 18:20:51 -07:00
Pankaj Garg
6fd0dcb3eb
Add support for fetching program in cargo registry ( #33759 )
...
* Rename publisher.rs to crate_handler.rs
* support for fetching program in cargo registry
2023-10-20 15:41:24 -07:00
behzad nouri
e0b59a6f53
prunes turbine QUIC connections ( #33663 )
...
The commit implements lazy eviction for turbine QUIC connections.
The cache is allowed to grow to 2 x capacity at which point at least
half of the entries with lowest stake are evicted, resulting in an
amortized O(1) performance.
2023-10-20 21:52:37 +00:00
samkim-crypto
dd2b1bb5a0
[zk-token-sdk] Limit max seed length for key derivations ( #33700 )
...
* limit max seed length for elgamal keypairs
* limit max seed length for authenticated encryption keys
* Apply suggestions from code review
Co-authored-by: Jon Cinque <me@jonc.dev>
* rename `SeedLengthTooLarge` to `SeedLengthTooLong`
---------
Co-authored-by: Jon Cinque <me@jonc.dev>
2023-10-20 13:02:37 -07:00
Alexander Meißner
a5c7c999e2
Bump solana_rbpf to v0.8.0 ( #33679 )
...
* Bumps solana_rbpf to v0.8.0
* Adjustments:
Replaces declare_syscall!() with declare_builtin_function!().
Removes Config::encrypt_runtime_environment.
Simplifies error propagation.
2023-10-20 21:39:50 +02:00
behzad nouri
dc3c827299
prunes repair QUIC connections ( #33775 )
...
The commit implements lazy eviction for repair QUIC connections.
The cache is allowed to grow to 2 x capacity at which point at least
half of the entries with lowest stake are evicted, resulting in an
amortized O(1) performance.
2023-10-20 17:50:54 +00:00
Thomas P
96052d230a
Docker images > 1.17.0 are broken because of wrong baseimage ( #33709 )
...
fix(dockerfile): make sure to use the bullseye image for building
Solana's release image is based on bullseye, make sure we compile Solana with the same environment
2023-10-21 01:17:03 +08:00
Jeff Washington (jwash)
e13756133a
ancient: add many_refs_this_is_newest_alive ( #33741 )
...
* add many_refs_this_is_newest_alive
* fix pathological case, add comments
* add log
* update comments
* add log when we fail to pack
* use with_capacity
* fix log comment
* clippy
2023-10-20 09:55:37 -07:00
Will Hickey
e5dfc9cb27
Add check for CHANGELOG.md change when changelog label applied to PR ( #33675 )
...
* Add check for CHANGELOG.md change when changelog label applied to PR
* Update changelog
2023-10-20 11:01:52 -05:00
Pankaj Garg
59cb3b57ee
Set a global fork graph in program cache ( #33776 )
...
* Set a global fork graph in program cache
* fix deadlock
* review feedback
2023-10-20 08:47:03 -07:00
steviez
c98c24bd6d
Revert "Split compute budget instructions process from struct itself … ( #33784 )
...
Revert "Split compute budget instructions process from struct itself (#33513 )"
This reverts commit c73bebe984
. This
was found to be a consensus breaking change.
2023-10-20 15:53:45 +02:00
Pierre
e1a9f8ef17
CLI remove unwrap_or_default() on rpc calls ( #33782 )
2023-10-20 14:27:31 +02:00
Nishit Mehta
092c2132d6
Fixed typing errors ( #33778 )
2023-10-20 11:33:41 +02:00
ripatel-fd
6798e05b0a
Fix typo in feature_set.rs ( #33777 )
...
Co-authored-by: Richard Patel <ripatel@jumptrading.com>
2023-10-20 10:26:13 +02:00
Joe C
6b1e9b8974
SDK: update error variants in `Feature::from_account_info` ( #33750 )
2023-10-20 07:35:22 +02:00
Joe C
37d093a30e
program error: add `ArithmeticOverflow` ( #33767 )
2023-10-20 07:33:21 +02:00