apfitzge
af971e63ab
Create all shared buffer readers before spawning threads ( #27512 )
...
* Create all shared buffer readers before spawning threads
* Allow 'needless' collect - clippy is wrong
* move clippy allow, spacing
2022-08-31 22:49:02 -05:00
dependabot[bot]
66717ff87d
chore: bump chrono from 0.4.21 to 0.4.22 ( #27509 )
...
* chore: bump chrono from 0.4.21 to 0.4.22
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.21 to 0.4.22.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/v0.4.22/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.21...v0.4.22 )
---
updated-dependencies:
- dependency-name: chrono
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-08-31 22:39:12 +00:00
dependabot[bot]
e22842f5db
chore: bump enum-iterator from 0.8.1 to 1.2.0 ( #27496 )
...
* chore: bump enum-iterator from 0.8.1 to 1.2.0
Bumps [enum-iterator](https://github.com/stephaneyfx/enum-iterator ) from 0.8.1 to 1.2.0.
- [Release notes](https://github.com/stephaneyfx/enum-iterator/releases )
- [Commits](https://github.com/stephaneyfx/enum-iterator/compare/0.8.1...1.2.0 )
---
updated-dependencies:
- dependency-name: enum-iterator
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Make versions consistent, and a-z toml
* Accommodate new apis
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2022-08-31 15:07:29 -06:00
Florian Hartwig
12f921386f
Make CommitmentLevel constructors const ( #27367 )
...
make CommitmentLevel constructors const
2022-08-31 13:20:53 -06:00
dependabot[bot]
2e7dc64dbd
chore: bump caps from 0.5.3 to 0.5.4 ( #27187 )
...
* chore: bump caps from 0.5.3 to 0.5.4
Bumps [caps](https://github.com/lucab/caps-rs ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/lucab/caps-rs/releases )
- [Commits](https://github.com/lucab/caps-rs/compare/v0.5.3...v0.5.4 )
---
updated-dependencies:
- dependency-name: caps
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-08-31 18:52:06 +00:00
dependabot[bot]
d99618957c
chore: bump cc from 1.0.71 to 1.0.73 ( #27186 )
...
* chore: bump cc from 1.0.71 to 1.0.73
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.71 to 1.0.73.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.71...1.0.73 )
---
updated-dependencies:
- dependency-name: cc
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-08-31 11:36:14 -06:00
Nick Frostbutter
1f8258f547
[docs] developers home page ( #27436 )
...
* feat: developers landing page
* fix: updated links
* fix: updated labels for translateIds
* refactor: updated index page to use Card component
* style: removed whitespace
* refactor: added static labels for developer sidebar items
* feat: developer's sidebar and new layout file
* chore: removed whitespace
* fix: removed duplicate CLI sidebar item
* fix: card shadows and RPC card text
2022-08-31 12:32:36 -05:00
Alexander Meißner
84b5a2bcf4
Refactor: `TransactionContext` ABIv2 adjustments ( #27476 )
...
* Marks methods and structs which are only to be used by the program runtime.
* Removes TransactionContext::get_keys_of_accounts().
* Adds InstructionContext::get_instruction_accounts_lamport_sum().
2022-08-31 17:47:47 +02:00
Yihau Chen
bbc3c5c32d
chore: add cargo audit at the beginning of secondary pipeline ( #27470 )
2022-08-31 15:45:29 +00:00
Brooks Prumo
93841a9484
ci: Fix steps in run-local ( #27499 )
2022-08-31 15:26:59 +00:00
Jeff Washington (jwash)
8c1e193d5d
delay trying to flush cached upserts until far future ( #26908 )
2022-08-31 08:56:26 -05:00
Tao Zhu
8bb039d08d
collect min prioritization fees when replaying sanitized transactions ( #26709 )
...
* Collect blocks' minimum prioritization fees when replaying sanitized transactions
* Limits block min-fee metrics reporting to top 10 writable accounts
* Add service thread to asynchronously update and finalize prioritization fee cache
* Add bench test for prioritization_fee_cache
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-08-31 08:00:55 -05:00
Justin Starry
292b2a1bfe
feat: update `Connection` to support versioned transactions ( #27068 )
...
feat: update Connection to support versioned transactions
2022-08-31 08:46:24 -04:00
dependabot[bot]
0eec25be1a
chore: bump iana-time-zone from 0.1.44 to 0.1.46 ( #27482 )
...
* chore: bump iana-time-zone from 0.1.44 to 0.1.46
Bumps [iana-time-zone](https://github.com/strawlab/iana-time-zone ) from 0.1.44 to 0.1.46.
- [Release notes](https://github.com/strawlab/iana-time-zone/releases )
- [Changelog](https://github.com/strawlab/iana-time-zone/blob/main/CHANGELOG.md )
- [Commits](https://github.com/strawlab/iana-time-zone/compare/0.1.44...v0.1.46 )
---
updated-dependencies:
- dependency-name: iana-time-zone
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 <you@example.com>
2022-08-30 23:39:35 -06:00
Yueh-Hsuan Chiang
6d070cee08
Fix the boundary inconsistency between delete_file_in_range and delete_range ( #27201 )
...
#### Problem
RocksDB's delete_range applies to [from, to) while delete_file_in_range
applies to [from, to] by default, and the rust-rocksdb api does not include
the option to make delete_file_in_range apply to [from, to). Such inconsistency
might cause `blockstore::run_purge` to produce an inconsistent result as it
invokes both delete_range and delete_file_in_range.
#### Summary of Changes
This PR makes all our purge / delete related functions to be inclusive
on both starting and ending slots.
2022-08-30 21:38:54 -07:00
Brennan Watt
9094076de7
Increase downstream-projects timeout ( #27486 )
2022-08-30 21:07:32 -07:00
Brennan Watt
dfdb422fb1
Minor shred constant cleanup ( #27472 )
...
* Minor shred constant cleanup to eliminate magic number
2022-08-30 18:53:05 -07:00
Jeff Washington (jwash)
b5cca0bfa3
add tests to AccountsDb::unref_accounts ( #27474 )
2022-08-30 18:51:20 -05:00
Jeff Washington (jwash)
3d03f7b47e
remove unused acct idx::upsert_on_disk ( #27479 )
2022-08-30 15:42:46 -05:00
Jeff Washington (jwash)
2e4a52d010
remove storages that only contain empty ( #27452 )
2022-08-30 14:04:17 -05:00
Jeff Washington (jwash)
1154bc8636
get rid of acquisition of read lock while unrefing accounts in scan ( #27388 )
2022-08-30 14:04:02 -05:00
Michael Vines
574097f640
Wait for first incremental snapshot after a full snapshot before restarting
2022-08-30 11:31:28 -07:00
Will Hickey
4aa2a42cc7
Fix test_bench_tps_local_cluster_solana ( #27448 )
...
* Fix test_bench_tps_local_cluster_solana
* Remove #[ignore] annotations from dos tests (which are also fixed by this change)
* Remove #[ignore] annotations from local cluster tests (which are also fixed by this change)
2022-08-30 13:04:31 -05:00
Jeff Washington (jwash)
9bde3261fd
cleanup ( #27453 )
...
* cleanup
* Update runtime/src/accounts_db.rs
Co-authored-by: Brooks Prumo <brooks@prumo.org>
Co-authored-by: Brooks Prumo <brooks@prumo.org>
2022-08-30 10:58:35 -05:00
Jeff Washington (jwash)
e35cd7a34a
comment loop in function ( #27454 )
2022-08-30 10:58:02 -05:00
Tyera Eulberg
7bd08ad3ae
Featurize spinner in rpc-client and tpu-client ( #27381 )
...
* Add spinner features to rpc-client and tpu-client, and disable where unneeded
* Add doc comment
2022-08-30 09:56:56 -06:00
Jeff Washington (jwash)
3d692ba046
refactor clean_dead_slots_from_accounts_index ( #27451 )
2022-08-30 10:06:52 -05:00
Jeff Washington (jwash)
73ee94d674
remove old bank hashes with ancient shrink ( #27450 )
2022-08-30 09:31:20 -05:00
Justin Starry
71a086863b
Update 0-community.md
2022-08-30 15:12:09 +01:00
Justin Starry
4e8d4a012f
Update 0-community.md
2022-08-30 15:08:54 +01:00
Justin Starry
470e6d726c
Update 0-community.md
2022-08-30 15:07:37 +01:00
Justin Starry
56d698de61
Separate the general issue template into community / core ( #27469 )
2022-08-30 15:00:42 +01:00
Jeff Washington (jwash)
a4b8ab2f59
clean_dead_slots_from_accounts_index unrefs correctly ( #27461 )
2022-08-30 08:40:21 -05:00
Haoran Yi
8f3c1e3ebb
report a datapoint
2022-08-29 19:06:30 -05:00
Haoran Yi
7e722f15f2
reduce log frequence to 1m when qlen is above the threshold
2022-08-29 19:06:30 -05:00
Haoran Yi
37bba64613
remove bank drop queue stat
...
remove try_send
add warn! for excessively long bank drop queue
2022-08-29 19:06:30 -05:00
Haoran Yi
5b64107626
make pruned_bank channel unbonded.
...
In kin-sim, we found that bounded channel causes halt for account
background services. As the number of accounts grows, the time for
pruning and cleaning increases, which would leads to longer intervals
between the pruning of deaded bank slots. With 1.7B accounts, we will
exceed the 10K bounded channel threshold that causes halt of account
back ground services. Without pruning, the node will eventually run out
of memory.
2022-08-29 19:06:30 -05:00
mwrites
59d61ee094
[docs] Terminology PDA - replace owner by authority ( #27437 )
...
replace owner by authority
2022-08-29 22:13:22 +00:00
Justin Starry
ada493f607
feat: add VersionedMessage.deserializeMessageVersion utility function ( #27415 )
2022-08-29 21:20:16 +01:00
Brooks Prumo
757e46c3c7
Set cap for new allocations per transaction ( #27385 )
2022-08-29 14:30:48 -04:00
apfitzge
49411aaae0
Feature: Interleaved Snapshot Untar and Indexing - Stage 1 ( #26590 )
...
* Add snapshot_storage_lengths_from_fields
* Add SnapshotUnpacker
* Add SnapshotStorageRebuilder
* Rebuild snapshot storage during unpack
* move snapshot unpacker back into snapshot_utils
* use SerializedAppendVecId in storage rebuilder
* create AccountStorageMap type alias
* Wrap storage and next_append_vec_id in a type
* fixed typo
* move use StorageAndNextAppendVecId
* calculate num_rebuilder_threads more concisely
2022-08-29 13:17:27 -05:00
Brooks Prumo
3c7cd62030
Move pruned_banks_receiver into PrunedBanksRequestHandler ( #27445 )
2022-08-29 13:30:06 -04:00
Steven Luscher
60f3dc5f72
fix: replace tweetnacl impl
...
* Install `@noble/ed25519` and create a shim
* Replace `tweetnacl` with `@noble/ed25519` in `Account` class
* Replace `tweetnacl` with `@noble/ed25519` in `Keypair` class
* Replace `tweetnacl` with `@noble/ed25519` in `PublicKey` class
* Replace `tweetnacl` with `@noble/ed25519` in `Ed25519Program` class
* Replace `tweetnacl` with `@noble/ed25519` in `Transaction` class
* Replace `tweetnacl` with `@noble/ed25519` in versioned `Transaction` class
* Remove `tweetnacl` from project
* Damnit, typedoc.
2022-08-28 12:11:34 -07:00
Nick Frostbutter
ad6b280b0a
[docs] Adding content pages under "developing" section ( #26816 )
...
* feat: added intro to dApps and programs pages
* style: removed whitespaces and updates MD syntax
* fix: spellcheck
* feat: what is rent page
* fix: fix typos and removed whitespaces
* fix: updated terminolgy
* feat: added what is web 3 page
* fix: removed dapps and web3 pages
* feat: added links to the developing sidebar
* fix: updated text based on comments
* fix: fixed link
2022-08-26 21:03:48 -05:00
samkim-crypto
bd88e2a11c
Zk token sdk/batch discrete log ( #27412 )
...
* zk-token-sdk: optimize discrete log search with batch compression
* zk-token-sdk: include batch size as part of discrete log struct
* zk-token-sdk: add a note on discrete log timings
* zk-token-sdk: add upper bound on the number of threads
* zk-token-sdk: minor
* zk-token-sdk: cargo.lock
2022-08-27 06:54:59 +09:00
Michael Vines
d0983c3cf7
Update runtime background hash verifier thread name
2022-08-26 13:44:11 -07:00
Trent Nelson
05fe061a7c
Address RUSTSEC-2022-0051
...
`lz4` to 1.24.0
`lz4-sys` to 1.9.4
2022-08-26 14:30:47 -06:00
kirill lykov
e446c5123e
add use_durable_nonce option ( #27151 )
...
* add use_durable_nonce option
* log creating nonce account in bench-tps
* try get account data in a loop
* Get account with commitment for nonce in bench-tps
* use get_multiple_accounts in bench-tps
* split accounts request into chunks
2022-08-26 22:08:27 +02:00
Brennan Watt
46a48760db
Switch concurrent replay from feature to param ( #27401 )
...
* Switch concurrent replay from feature to param
2022-08-26 12:36:02 -07:00
Steven Luscher
713e86e877
Update rollup script to exclude new secp256k1 and hmac/sha256 dependencies ( #27428 )
...
* fix: repair build script, not to bundle @noble libraries but to keep them as external deps
* chore: remove secp256k1 Typescript types
2022-08-26 12:33:29 -07:00