behzad nouri
9ee53e594d
patches clippy errors from new rust nightly release ( #28028 )
2022-09-23 20:57:27 +00:00
apfitzge
ca55fc8a05
root_bank_cache ( #27985 )
...
* BankForks: atomic root
* root bank cache
* fix and clean up
* added some tests
2022-09-23 15:01:03 -05:00
apfitzge
e8014aaf84
fix typo: lamporots to lamports ( #27987 )
2022-09-23 15:00:31 -05:00
Jeff Washington (jwash)
89b0abcf4d
get_one_epoch_old_slot_for_hash_calc_scan to handle many old append vecs ( #28000 )
2022-09-23 11:17:02 -07:00
Brooks Prumo
d9b31fd6b0
ahv: Add debug logging for EAH ( #27998 )
2022-09-23 14:04:48 -04:00
Jeff Biseda
206cc9407b
allow unsigned repair requests ( #27910 )
2022-09-23 10:11:08 -07:00
behzad nouri
97c9af4c6b
plumbs through flag to generate merkle variant of shreds
2022-09-23 16:45:18 +00:00
behzad nouri
7d3f3b2f7d
generates merkle shreds from ledger entries
...
The commit adds methods to convert &[Entry] to vector of Merkle shreds.
2022-09-23 16:45:18 +00:00
Will Hickey
0a97a5a006
Update CI error message when the version number needs to be bumped ( #27997 )
...
* Update CI error message when the version number needs to be bumped
* Move channel version check to its own file and put it before nits
2022-09-23 11:09:45 -05:00
dependabot[bot]
2f24a357b6
chore: bump reqwest from 0.11.11 to 0.11.12 ( #28003 )
...
* chore: bump reqwest from 0.11.11 to 0.11.12
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.11 to 0.11.12.
- [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.11...v0.11.12 )
---
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>
2022-09-23 10:09:27 -06:00
behzad nouri
315707504e
boxes StakeState in stake_account::Error::InvalidDelegation ( #28006 )
...
This avoids clippy::result_large_err error on newer rust versions:
https://rust-lang.github.io/rust-clippy/master/#result_large_err
2022-09-23 14:04:44 +00:00
Alessandro Decina
bad09812e3
AccountSharedData: optimize set_data_from_slice
...
Remove memcmp and try to avoid allocations by trying to reuse or extend
existing capacity.
2022-09-23 11:31:33 +01:00
steviez
e4affb9fea
Add Blockstore::highest_slot() method ( #27981 )
2022-09-23 04:53:43 -05:00
Michael Vines
fb686cc83b
Nodes with 0% commission are now included in the `getBlock` RPC method `rewards` response field.
2022-09-22 20:31:41 -07:00
dependabot[bot]
9ba9d057cd
chore: bump semver from 1.0.13 to 1.0.14 ( #27971 )
...
* chore: bump semver from 1.0.13 to 1.0.14
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.13...1.0.14 )
---
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
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>
2022-09-22 18:15:25 -06:00
steviez
eaa4787201
Cleanup blockstore test ( #27999 )
2022-09-22 23:37:47 +00:00
dependabot[bot]
d84a7a4ce9
chore: bump futures from 0.3.23 to 0.3.24 ( #27972 )
...
* chore: bump futures from 0.3.23 to 0.3.24
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.23 to 0.3.24.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.23...0.3.24 )
---
updated-dependencies:
- dependency-name: futures
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>
2022-09-22 16:26:18 -06:00
dependabot[bot]
da9206fb87
chore: bump serde_yaml from 0.8.26 to 0.9.13 ( #27970 )
...
* chore: bump serde_yaml from 0.8.26 to 0.9.13
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.26 to 0.9.13.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.26...0.9.13 )
---
updated-dependencies:
- dependency-name: serde_yaml
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 <dependabot-buildkite@noreply.solana.com>
2022-09-22 16:25:20 -06:00
behzad nouri
9a57c64f21
patches clippy errors from new rust nightly release ( #27996 )
2022-09-22 22:23:03 +00:00
Brooks Prumo
ff71df4695
Remove unnecessary call to `set_startup_verification_complete()` ( #27986 )
2022-09-22 16:54:17 -04:00
steviez
0a0d31e5fb
Add missing rootSlot documentation ( #27709 )
2022-09-22 14:59:31 -05:00
Jon Cinque
f3fcbdba29
bench-tps: Add instruction padding program support ( #27813 )
...
* bench-tps: Add instruction padding program support
* Add ability to customize program id
* Improve names and comments
2022-09-22 21:37:40 +02:00
apfitzge
64f64dedea
Use regex in get_snapshot_file_kind ( #27728 )
...
refactor get_snapshot_file_kind to use regex
2022-09-22 13:55:48 -05:00
Brooks Prumo
1ee595ca9c
remove AccountsDb::initial_blockstore_processing_complete ( #27974 )
2022-09-22 13:52:04 -04:00
apfitzge
a846d50b6a
Interleaved snapshot unpack versioning ( #27484 )
...
* Issue #27346 - deserialize and check snapshot version before account fields
* Update comment on SnapshotFileKind
Co-authored-by: Brooks Prumo <brooks@prumo.org>
* SnapshotStorageRebuilderResult to RebuiltSnapshotStorage
* better error propagation from rebuild_storage
Co-authored-by: apfitzge <apfitzge@users.noreply.github.com>
Co-authored-by: Brooks Prumo <brooks@prumo.org>
2022-09-22 11:44:25 -05:00
Justin Starry
91d556dc66
docs: Add versioned tx info to exchange integration guide ( #27564 )
...
* docs: Add versioned tx info to exchange integration guide
* feedback, extra tips, formatting
2022-09-22 14:19:36 +08:00
Justin Starry
108b245e6b
Require program account to be writable in extend program data ix ( #27911 )
...
* Require program account to be writable in extend program data ix
* feedback
2022-09-22 12:03:06 +08:00
Justin Starry
00b0a92ec4
Support sending versioned txs in rpc client ( #27933 )
...
* Support sending versioned txs in rpc client
* Revert adding instructions_mut function
2022-09-22 01:25:43 +00:00
Varga-Somogyi Ákos
e15a5c010e
feat: implement addSignature in VersionedTransaction ( #27945 )
...
* Implement addSignature in VersionedTransaction
* Update asserts
* VersionedTransaction.addSignature test
* Update VersionedTransaction tests
2022-09-21 17:22:40 -07:00
dependabot[bot]
e1a49f7766
chore: bump indicatif from 0.17.0 to 0.17.1 ( #27968 )
...
* chore: bump indicatif from 0.17.0 to 0.17.1
Bumps [indicatif](https://github.com/console-rs/indicatif ) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/console-rs/indicatif/releases )
- [Commits](https://github.com/console-rs/indicatif/compare/0.17.0...0.17.1 )
---
updated-dependencies:
- dependency-name: indicatif
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>
2022-09-21 23:32:11 +00:00
dependabot[bot]
ca6f13a14d
chore: bump sha3 from 0.10.2 to 0.10.4 ( #27656 )
...
* chore: bump sha3 from 0.10.2 to 0.10.4
Bumps [sha3](https://github.com/RustCrypto/hashes ) from 0.10.2 to 0.10.4.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha3-v0.10.2...sha3-v0.10.4 )
---
updated-dependencies:
- dependency-name: sha3
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
* Revert sha3 bump in zk-token-sdk
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: Tyera Eulberg <tyera@solana.com>
2022-09-21 15:31:42 -06:00
dependabot[bot]
c4fa849844
chore: bump itertools from 0.10.3 to 0.10.5 ( #27962 )
...
* chore: bump itertools from 0.10.3 to 0.10.5
Bumps [itertools](https://github.com/rust-itertools/itertools ) from 0.10.3 to 0.10.5.
- [Release notes](https://github.com/rust-itertools/itertools/releases )
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/commits )
---
updated-dependencies:
- dependency-name: itertools
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>
2022-09-21 15:28:49 -06:00
dependabot[bot]
11b7c45bff
chore: bump systemstat from 0.1.11 to 0.2.0 ( #27967 )
...
Bumps [systemstat](https://github.com/unrelentingtech/systemstat ) from 0.1.11 to 0.2.0.
- [Release notes](https://github.com/unrelentingtech/systemstat/releases )
- [Commits](https://github.com/unrelentingtech/systemstat/compare/v0.1.11...v0.2.0 )
---
updated-dependencies:
- dependency-name: systemstat
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-21 15:28:31 -06:00
Alessandro Decina
14952590bd
Improve serialization benches ( #27718 )
...
* serialization benches: fix index_in_callee
* serialize benches: bench the whole serialize_parameters()
* Add serialization benches for max num of instruction accounts
2022-09-21 20:47:36 +01:00
dependabot[bot]
8e460773dc
chore: bump fd-lock from 3.0.5 to 3.0.6 ( #27963 )
...
* chore: bump fd-lock from 3.0.5 to 3.0.6
Bumps [fd-lock](https://github.com/yoshuawuyts/fd-lock ) from 3.0.5 to 3.0.6.
- [Release notes](https://github.com/yoshuawuyts/fd-lock/releases )
- [Commits](https://github.com/yoshuawuyts/fd-lock/compare/v3.0.5...v3.0.6 )
---
updated-dependencies:
- dependency-name: fd-lock
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 <you@example.com>
2022-09-21 18:29:54 +00:00
dependabot[bot]
00e4313542
chore: bump regex from 1.5.6 to 1.6.0 ( #27678 )
...
* chore: bump regex from 1.5.6 to 1.6.0
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.6 to 1.6.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.5.6...1.6.0 )
---
updated-dependencies:
- dependency-name: regex
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 <dependabot-buildkite@noreply.solana.com>
2022-09-21 18:09:33 +00:00
Tyera Eulberg
fa0550da32
Add missing fields to JSON-RPC docs ( #27964 )
...
* Add docs for computeUnitsConsumed field
* Add confirmationStatus to getSignaturesForAddress response docs
* Make field-type formatting consistent
2022-09-21 11:59:30 -06:00
Brooks Prumo
5d7130623f
abs: Snapshot requests are handled in priority-order ( #27942 )
2022-09-21 12:39:09 -04:00
dependabot[bot]
999acb43ba
chore: bump ctrlc from 3.2.2 to 3.2.3 ( #27677 )
...
Bumps [ctrlc](https://github.com/Detegr/rust-ctrlc ) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/Detegr/rust-ctrlc/releases )
- [Commits](https://github.com/Detegr/rust-ctrlc/compare/3.2.2...3.2.3 )
---
updated-dependencies:
- dependency-name: ctrlc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-21 10:17:36 -06:00
Jeff Washington (jwash)
7ddacc4bb4
remove extra accounts cap call at startup ( #27949 )
2022-09-21 09:13:00 -07:00
Dmitri Makarov
6d25f21bc2
Adjust solana program threshold for stable tests in CI
2022-09-21 01:11:20 +00:00
samkim-crypto
751ec864da
Add syscall curve group ops tests ( #27937 )
...
* resolve rebase conflict
* fix logic when group ops fail
* update bpf loader id
2022-09-21 09:50:47 +09:00
Brooks Prumo
ceac6a1094
abs: Refactor determining the accounts package type ( #27944 )
2022-09-20 20:31:08 -04:00
Jeff Washington (jwash)
6e24edb771
log metric in case of race condition ( #27951 )
2022-09-20 16:23:25 -07:00
Ian Macalinao
ab8b3386a1
runtime: fix typo for 'exempt' ( #27947 )
2022-09-20 16:58:57 -06:00
samkim-crypto
4de25897a3
Add curve validation syscall tests ( #27936 )
...
* add syscall test for curve validation
* add edwards point validation syscall tests
* rename ristretto test
2022-09-21 06:50:49 +09:00
Ian Macalinao
aa52b8aec1
runtime: fix 'governed' typo ( #27946 )
2022-09-20 13:05:13 -06:00
Jeff Washington (jwash)
4893dd3490
re-enable caching of hash calculation ( #27920 )
2022-09-20 10:44:57 -07:00
Jeff Washington (jwash)
d74480a125
when shrinking, don't send entire old append vec to clean ( #27914 )
2022-09-20 06:32:07 -07:00
Yueh-Hsuan Chiang
cccade42b3
Optimize get_slots_since() using the batched version of multi_get() ( #27686 )
...
#### Problem
The current implementation of get_slots_since() invokes multiple rocksdb::get().
As a result, each get() operation may end up requiring one disk read. This leads
to poor performance of get_slots_since described in #24878 .
#### Summary of Changes
This PR makes get_slots_since() use the batched version of multi_get() instead,
which allows multiple get operations to be processed in batch so that they can
be answered with fewer disk reads.
2022-09-19 21:52:13 -07:00