Jeff Washington (jwash)
1db136a8be
do not count 0 lamport accounts as rent-paying ( #26514 )
2022-07-11 22:16:46 -05:00
Jeff Washington (jwash)
36bd46bece
ancient append vec: reuse AccountsToStore ( #26572 )
2022-07-11 22:13:09 -05:00
Yueh-Hsuan Chiang
9985215bc8
Make report_rocksdb_read_perf() to take a operation name. ( #26351 )
...
#### Problem
report_rocksdb_read_perf() always uses the hard-coded operation name "get"
#### Summary of Changes
As we will add a new read operation -- multi_get(), report_rocksdb_read_perf()
needs to have an input parameter for operation name.
2022-07-12 07:18:49 +08:00
steviez
26ad45e723
Add log for missing start_slot in blockstore_processor ( #26566 )
...
blockstore_processor can do nothing in this case; the log might help
user realize that their snapshot and ledger are disjoint.
2022-07-11 18:11:16 -05:00
Justin Starry
8e8c6e60ff
Allow extending upgradeable program data account length ( #26386 )
...
* Allow extending upgradeable program data account length
* Add is_writable check
* Fix cargo version
* System program fix, comment, and test
* Switch to u32 for serialized bytes value in ix
2022-07-11 22:46:32 +01:00
apfitzge
1c2f6a4c41
Bugfix: slots_connected snapshot_slot not full ( #26506 )
...
* slots_connected check used by ledger-tool should not require a full slot for snapshot slot
* Cleaner Result<Option<>> unwrap/default
* return false if no meta for starting slot
* Add clarifying comments
2022-07-11 13:45:12 -05:00
Pankaj Garg
ea7448c568
Use client certs in QUIC to get peer's stake ( #26477 )
...
* Use client certs in QUIC to get peer's stake
* fixes to cert processing
* integrate the code
* clippy
* more cleanup
* sort cargo deps
* test fixes
* info -> debug
2022-07-11 18:06:40 +00:00
Tao Zhu
a3b094300b
Remove sender stakes from banking_stage buffer prioritization ( #26512 )
...
* remove sender stakes from banking_stage buffer prioritization
2022-07-11 12:46:15 -05:00
Nicholas Clarke
ee0a40937e
Add validator argument log_messages_bytes_limit to change log truncation limit.
...
Add new cli argument log_messages_bytes_limit to solana-validator to control how long program logs can be before truncation
2022-07-11 10:53:18 -05:00
Leopold Schabel
458a872234
explorer: mark verifiable builds as experimental ( #26553 )
...
Add "(experimental)" and use a neutral badge instead of a green one.
The current iteration of verifiable builds does not come with
particularly strong guarantees - best to avoid giving users
any false sense of security.
It relies on an unaudited third party service independent of the explorer,
and the nature of Cargo's build process means it is hard to make strong
claims about the resulting artifacts.
2022-07-11 16:02:42 +01:00
behzad nouri
128226c6cc
patches flaky test_push_votes_with_tower ( #26554 )
...
cargo test --package solana-gossip --release test_push_votes_with_tower
occasionally fails because with --release all votes are generated at
the same wallclock (milliseconds resolution) and so the new ones will
not necessarily override existing entries in the table.
The commit ensures that the new vote is pushed with a wallclock later
than existing entries.
2022-07-11 12:56:31 +00:00
behzad nouri
ba785cf8ab
removes erroneous uses of std::mem::swap ( #26536 )
...
All instances should be replace by std::mem::{replace,take},
or just plain assignment.
2022-07-11 11:33:15 +00:00
dependabot[bot]
f8669c6d52
chore:(deps): bump sass from 1.51.0 to 1.53.0 in /explorer ( #26549 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.51.0 to 1.53.0.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.51.0...1.53.0 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-11 08:47:19 +00:00
dependabot[bot]
68f67aba03
chore:(deps): bump @types/node from 16.11.12 to 18.0.3 in /explorer ( #26548 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.11.12 to 18.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-11 08:40:36 +00:00
dependabot[bot]
504e7d8189
chore:(deps): bump chai from 4.3.4 to 4.3.6 in /explorer ( #26547 )
...
Bumps [chai](https://github.com/chaijs/chai ) from 4.3.4 to 4.3.6.
- [Release notes](https://github.com/chaijs/chai/releases )
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md )
- [Commits](https://github.com/chaijs/chai/compare/v4.3.4...v4.3.6 )
---
updated-dependencies:
- dependency-name: chai
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>
2022-07-11 08:34:28 +00:00
dependabot[bot]
927b2bf49a
chore:(deps): bump @blockworks-foundation/mango-client from 3.6.5 to 3.6.7 in /explorer ( #26546 )
...
chore:(deps): bump @blockworks-foundation/mango-client in /explorer
Bumps [@blockworks-foundation/mango-client](https://github.com/blockworks-foundation/mango-client-v3 ) from 3.6.5 to 3.6.7.
- [Release notes](https://github.com/blockworks-foundation/mango-client-v3/releases )
- [Commits](https://github.com/blockworks-foundation/mango-client-v3/commits )
---
updated-dependencies:
- dependency-name: "@blockworks-foundation/mango-client"
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>
2022-07-11 08:29:11 +00:00
dependabot[bot]
28c7900f50
chore:(deps): bump @types/jest from 27.4.0 to 28.1.4 in /explorer ( #26545 )
...
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ) from 27.4.0 to 28.1.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
---
updated-dependencies:
- dependency-name: "@types/jest"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-11 08:20:04 +00:00
dependabot[bot]
89bceffd22
chore:(deps): bump typescript from 4.5.4 to 4.7.4 in /explorer ( #26544 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.5.4 to 4.7.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.4...v4.7.4 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-11 08:14:38 +00:00
dependabot[bot]
8a3a178cd9
chore:(deps): bump @sentry/react from 6.19.7 to 7.6.0 in /explorer ( #26541 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.19.7 to 7.6.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.19.7...7.6.0 )
---
updated-dependencies:
- dependency-name: "@sentry/react"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-11 08:08:42 +00:00
dependabot[bot]
802efbb67f
chore:(deps): bump @testing-library/react from 13.1.1 to 13.3.0 in /explorer ( #26540 )
...
chore:(deps): bump @testing-library/react in /explorer
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library ) from 13.1.1 to 13.3.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases )
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/react-testing-library/compare/v13.1.1...v13.3.0 )
---
updated-dependencies:
- dependency-name: "@testing-library/react"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-11 08:08:12 +00:00
ryleung-solana
4772a93109
Quic handshake timeout ( #26306 )
...
* Implement timeout for the quic client and server handshake
2022-07-11 14:10:12 +08:00
Jeff Washington (jwash)
275e47f931
do this right: add 2nd pass at hash calc when failure seen ( #26392 ) ( #26538 )
2022-07-10 23:10:22 -05:00
Jeff Washington (jwash)
602da5e51f
add accounts db config to bank tests ( #26517 )
2022-07-10 19:42:06 -05:00
Jeff Washington (jwash)
2b6c9852f1
add more slop to test_age_time ( #26537 )
2022-07-10 17:52:07 -05:00
Jeff Washington (jwash)
1babf460ab
collapse some bank test creation fns ( #26532 )
2022-07-10 17:51:38 -05:00
behzad nouri
105c7e19e1
moves check for feature activation out of accounts loop ( #26535 )
2022-07-10 17:39:19 +00:00
Jeff Washington (jwash)
8576832f2a
rename Bank::new_with_config_for_tests ( #26533 )
2022-07-10 09:33:13 -05:00
behzad nouri
df616a0dda
removes redundant clone in gossip PruneData::signable_data ( #26510 )
...
PruneData::signable_data redundantly clones inner fields, while only
references suffice:
https://github.com/solana-labs/solana/blob/d1370f2c7/gossip/src/cluster_info.rs#L219-L233
2022-07-10 13:13:07 +00:00
Michael Vines
9547b00f4c
epoch-info: Add epochCompletedPercent field to json output
2022-07-09 14:26:12 -07:00
dependabot[bot]
e3d1fe52a2
chore: bump js-sys from 0.3.57 to 0.3.58 ( #26508 )
...
* chore: bump js-sys from 0.3.57 to 0.3.58
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.57 to 0.3.58.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
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-07-09 00:35:29 -06:00
Trent Nelson
6be835d887
remote-wallet: add usb pids for ledger nano s plus
2022-07-09 01:07:26 +00:00
Trent Nelson
dcab37ecca
update `scripts/cargo-fmt.sh` to reflect changes in 9425478
2022-07-09 00:38:20 +00:00
Brooks Prumo
785a7a5936
Track more accounts data size changes ( #26467 )
2022-07-08 19:17:15 -05:00
Jack May
ff3289de93
cleanup feature: quick_bail_on_panic ( #26501 )
2022-07-08 23:41:32 +00:00
Justin Starry
0de0d4625e
chore: remove web3 examples ( #26515 )
2022-07-08 23:14:38 +01:00
Mike MacCana
6d7a569087
chore: make documentation and examples more prominent in README ( #26498 )
...
* Make documentation and examples more prominent in README
There's a lot more documentation to this library than many users would see looking at the current README
- Make a dedicated 'Documentation and examples' heading
- Bring the Solana Cookbook (which has more examples than all the other documentation listed in the README) to the top
- Mention the examples higher up in the README
* Update web3.js/README.md
* Update web3.js/README.md
2022-07-08 22:00:33 +01:00
behzad nouri
c99d9f00a9
preserves rent_epoch for rent exempt accounts ( #26479 )
...
https://github.com/solana-labs/solana/pull/22292
prevents rent paying account creation going forward. As a result
rent_epoch field for rent exempt accounts is redundant, and advancing
this field will incur expensive account rewrites and cause discrepancy
between accounts-db and cached vote/stake accounts.
This commit adds a feature which upon activation preserves rent_epoch
field for rent exempt accounts so that the field is frozen and is no
longer advanced.
2022-07-08 20:04:08 +00:00
Dmitri Makarov
f3bba9723e
Consolidate dep features in Cargo.toml files to minimize rebuilds
...
Indirect dependency packages introduce variations in features of other
dependencies, which affect the fingerprints of previously built
packages such as solana-program and cause redundant rebuilds of
affected packages. These changes specify several features in
dependencies specifications explicitly to a common set of
features. The result of such consolidation is improved re-usability of
previously built binary packages across programs/bpf/rust/ packages
when these packages are built in CI jobs.
2022-07-08 12:40:06 -07:00
HaoranYi
995756a550
Use RefCount type alias instead of u64 ( #26472 )
...
use RefCount type alias instead of u64
2022-07-08 13:51:16 -05:00
Jack May
cdbcf614ca
cleanup feature: executables_incur_cpi_data_cost ( #26500 )
2022-07-08 11:50:24 -07:00
Brooks Prumo
78b8a8a6db
Remove `get_total_resize_remaining()` and `total_resize_limit` from `TransactionContext` ( #26504 )
2022-07-08 20:26:54 +02:00
dependabot[bot]
d1370f2c7d
chore: bump bytemuck from 1.9.1 to 1.10.0 ( #26495 )
...
* chore: bump bytemuck from 1.9.1 to 1.10.0
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.9.1 to 1.10.0.
- [Release notes](https://github.com/Lokathor/bytemuck/releases )
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.9.1...v1.10.0 )
---
updated-dependencies:
- dependency-name: bytemuck
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
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-07-08 10:04:43 -06:00
kirill lykov
87a1404372
refactor and extract send batch logic ( #26067 )
...
* move send batch txs logic to new file
* refactor send batch
2022-07-08 16:34:38 +02:00
dependabot[bot]
b4b1f95b6a
chore: bump reed-solomon-erasure from 5.0.2 to 5.0.3 ( #26492 )
...
* chore: bump reed-solomon-erasure from 5.0.2 to 5.0.3
Bumps [reed-solomon-erasure](https://github.com/darrenldl/reed-solomon-erasure ) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/darrenldl/reed-solomon-erasure/releases )
- [Changelog](https://github.com/rust-rse/reed-solomon-erasure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/darrenldl/reed-solomon-erasure/compare/v5.0.2...v5.0.3 )
---
updated-dependencies:
- dependency-name: reed-solomon-erasure
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 <you@example.com>
2022-07-08 06:01:31 +00:00
Ashwin Sekar
734fedea4c
Create a more compact vote state update transaction ( #26092 )
...
* Create a more compact vote state update transaction
* pr comments
* change root to not be an option and update abi
2022-07-07 22:29:02 -07:00
Tyera Eulberg
b8b521535c
Add Pubsub getVersion, and support programSubscribe filter mapping ( #26482 )
...
* Add pubsub getVersion api
* Generalize maybe_map_filters
* Add filter mapping to blocking PubsubClient
* Add version tracking to nonblocking PubsubClient
* Add filter mapping to nonblocking PubsubClient
2022-07-07 20:55:18 -06:00
dependabot[bot]
312748721d
chore: bump rustversion from 1.0.6 to 1.0.7 ( #26488 )
...
* chore: bump rustversion from 1.0.6 to 1.0.7
Bumps [rustversion](https://github.com/dtolnay/rustversion ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/dtolnay/rustversion/releases )
- [Commits](https://github.com/dtolnay/rustversion/compare/1.0.6...1.0.7 )
---
updated-dependencies:
- dependency-name: rustversion
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
* Sync rustversions
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-07-07 20:54:27 -06:00
Jeff Washington (jwash)
d9eee72edb
remove FoundStoredAccount.account_size ( #26460 )
2022-07-07 18:37:14 -05:00
Brooks Prumo
3b759bcffb
Add fn to get max accounts data size from Bank ( #26478 )
2022-07-07 18:08:42 -05:00
Jeff Washington (jwash)
38d53ef8a2
add metrics for # scans active and scan distance ( #26395 )
2022-07-07 16:20:32 -05:00