behzad nouri
1925b4f5cb
fans out gossip pull-requests to many randomly selected peers ( #25460 )
...
Each time a node generates gossip pull-requests, it sends out all the
requests to a single randomly selected peer:
https://github.com/solana-labs/solana/blob/fd7ad31ee/gossip/src/crds_gossip_pull.rs#L253-L266
This causes a burst of pull-requests at a single node at once. In order
to make gossip in-bound traffic less bursty, this commit fans out gossip
pull-requests to several randomly selected peers.
This should reduce spikes in inbound gossip traffic without changing the
average load which may help reduce number of times outbound data budget is
exhausted when responding to gossip pull-requests at the receiving node, and
reduce number of pull-requests dropped.
2022-05-26 12:45:53 +00:00
Christian Kamm
0efb7478cd
FindPacketSenderStake: Remove parallelism to improve performance ( #25562 )
...
* FindPacketSenderStake: Remove parallelism to improve performance
The work unit sizes were so small that using the thread pool
slowed down this stage significantly.
* fix checks
Co-authored-by: Justin Starry <justin@solana.com>
2022-05-26 21:17:52 +10:00
ryleung-solana
178eba4912
Slightly refactor start_verify_transactions to avoid an unnecessary loop through the vector ( #25559 )
...
* Small refactoring to remove an unnecessary loop through the vector
2022-05-25 23:27:30 -04:00
dependabot[bot]
1fda5110af
chore: bump quinn-proto from 0.8.2 to 0.8.3 ( #25543 )
...
Bumps [quinn-proto](https://github.com/quinn-rs/quinn ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/quinn-rs/quinn/releases )
- [Commits](https://github.com/quinn-rs/quinn/compare/0.8.2...0.8.3 )
---
updated-dependencies:
- dependency-name: quinn-proto
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-05-25 20:55:38 -06:00
Justin Starry
344c19dbe3
explorer: Add fee column to block history card ( #25573 )
2022-05-26 02:54:25 +00:00
dependabot[bot]
0c3639706b
chore: bump quinn from 0.8.2 to 0.8.3 ( #25542 )
...
* chore: bump quinn from 0.8.2 to 0.8.3
Bumps [quinn](https://github.com/quinn-rs/quinn ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/quinn-rs/quinn/releases )
- [Commits](https://github.com/quinn-rs/quinn/compare/0.8.2...0.8.3 )
---
updated-dependencies:
- dependency-name: quinn
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-05-25 20:44:45 -06:00
Brooks Prumo
7384c41ea7
Speed up bank::tests::test_max_accounts_data_size_exceeded() ( #25523 )
2022-05-25 22:22:30 -04:00
Artie Kushner
3bc8664a82
Update terminology.md
2022-05-25 18:08:49 -07:00
Justin Starry
26a02f6f59
Add invoke logging to builtin programs that don't have it yet ( #25230 )
...
* Refactor process_executor_chain
* Enable builtin program invoke logs by default
* feedback
2022-05-26 07:27:00 +08:00
samkim-crypto
d33cb2fa54
zk-token-sdk: implement convert traits for elgamal ciphertexts and ristretto points ( #25549 )
2022-05-26 05:46:29 +09:00
behzad nouri
cafa85bfbb
includes shred-type when computing turbine broadcast seed ( #25556 )
...
Indices for code and data shreds of the same slot overlap; and so they
will have the same random number generator seed when shuffling cluster
nodes for turbine broadcast.
This results in the same propagation path for code and data shreds of
the same index and effectively smaller sample size for re-transmitter
nodes. For example a 32:32 batch (32 code + 32 data shreds), is
retransmitted through _at most_ 32 unique nodes, whereas ideally we want
~64 unique re-transmitters.
This commit adds shred-type to seed function so that code and data
sherds of the same (slot, index) will (most likely) have different
propagation paths.
2022-05-25 20:31:53 +00:00
behzad nouri
880684565c
limits read access into Packet data to Packet.meta.size ( #25484 )
...
Bytes past Packet.meta.size are not valid to read from.
The commit makes the buffer field private and instead provides two
methods:
* Packet::data() which returns an immutable reference to the underlying
buffer up to Packet.meta.size. The rest of the buffer is not valid to
read from.
* Packet::buffer_mut() which returns a mutable reference to the entirety
of the underlying buffer to write into. The caller is responsible to
update Packet.meta.size after writing to the buffer.
2022-05-25 16:52:54 +00:00
Alexander Meißner
f10c80b49f
Refactor: Rebase offset of `index_in_caller` ( #25531 )
...
* Removes the offset InstructionContext::get_number_of_program_accounts() from InstructionAccount::index_in_caller.
* Removes unreachable SyscallError::InvalidLength in orig_data_lens.get().
2022-05-25 13:43:20 +02:00
buffalu
7b98ff1929
Refactor: pull out fee payer balance check ( #25519 )
2022-05-25 20:44:03 +10:00
Brooks Prumo
b7149f7f54
Add helper fn to set accounts_data_size_initial for tests ( #25522 )
2022-05-25 02:43:54 +00:00
apfitzge
328cca9fcd
Add a --debug-key option to ledger-tool verify ( #25391 )
2022-05-24 19:56:35 -05:00
Brooks Prumo
0dd3c6bf1f
Split up accounts data size field ( #25495 )
2022-05-24 20:26:32 -04:00
Tyera Eulberg
a3d82b8d06
Find epoch start slot for estimated time elapsed ( #25491 )
...
* Find epoch start slot for estimated time elapsed
* Only do stuff requiring additional queries when output != json
2022-05-24 17:13:47 -06:00
Tyera Eulberg
82eba41a7d
Add extra error line ( #25521 )
2022-05-24 17:13:25 -06:00
Alexander Meißner
2fb096c486
Refactor: Adds `index_in_callee` to `InstructionAccount` ( #25490 )
...
* Adds InstructionAccount::index_in_callee
* Adjusts tests and benches.
* Adds documentation for InstructionAccount.
* Adds InstructionContext::is_duplicate()
2022-05-25 00:04:46 +02:00
carllin
9651cdad99
Refactor Sigverify trait ( #25359 )
2022-05-24 16:01:41 -05:00
steviez
e1684e94f5
Update to call split local-cluster-slow scripts ( #25510 )
2022-05-24 14:31:33 -05:00
Jeff Biseda
61c5a471e8
preserve optimistic_slot in blockstore ( #25311 )
2022-05-24 12:03:28 -07:00
Jack May
0376ab41a9
Update SECURITY.md
2022-05-24 10:39:33 -07:00
Justin Starry
e66ea7cb6a
Clean up Bank::commit_transactions parameters
2022-05-24 20:24:42 +08:00
Justin Starry
cad1c41ce2
Add Packet::deserialize_slice convenience method
2022-05-24 17:31:14 +08:00
Yihau Chen
79df1954eb
chore: fix docs pipeline ( #25504 )
...
* chore: change trigger rule
* chore: check tag and file modifed
2022-05-24 11:55:28 +08:00
Tyera Eulberg
514f73f4b1
Remove retain_mut dep ( #25494 )
2022-05-23 21:45:49 +00:00
steviez
ec7ca411dd
Make PacketBatch packets vector non-public ( #25413 )
...
Upcoming changes to PacketBatch to support variable sized packets will
modify the internals of PacketBatch. So, this change removes usage of
the internal packet struct and instead uses accessors (which are
currently just wrappers of Vector functions but will change down the
road).
2022-05-23 15:30:15 -05:00
dependabot[bot]
e75569e85a
chore: bump systemstat from 0.1.10 to 0.1.11 ( #25471 )
...
Bumps [systemstat](https://github.com/unrelentingtech/systemstat ) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/unrelentingtech/systemstat/releases )
- [Commits](https://github.com/unrelentingtech/systemstat/compare/v0.1.10...v0.1.11 )
---
updated-dependencies:
- dependency-name: systemstat
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-05-23 20:08:47 +00:00
dependabot[bot]
3566fb5660
chore: bump regex from 1.5.5 to 1.5.6 ( #25488 )
...
* chore: bump regex from 1.5.5 to 1.5.6
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.5 to 1.5.6.
- [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.5...1.5.6 )
---
updated-dependencies:
- dependency-name: regex
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-05-23 13:45:43 -06:00
Christian Kamm
6429aff13b
findpacketsenderstake: add discard after receive ( #25458 )
...
This mimics a similar change in sigverify, see #25388
2022-05-23 21:27:20 +02:00
ryleung-solana
ef8c06dcf2
Add datapoints to help debug the invalid blockhash issue with quic ( #24908 )
...
* Add datapoints to help debug the invalid blockhash issue with quic
2022-05-23 15:09:47 -04:00
HaoranYi
be630a5213
typo ( #25479 )
2022-05-23 18:42:43 +00:00
kirill lykov
2cb500a388
fix problem with matches in ledger-tool ( #25482 )
2022-05-23 12:39:58 -05:00
dependabot[bot]
4fab83ba87
chore: bump goauth from 0.12.0 to 0.13.0 ( #25472 )
...
* chore: bump goauth from 0.12.0 to 0.13.0
Bumps [goauth](https://github.com/durch/rust-goauth ) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/durch/rust-goauth/releases )
- [Commits](https://github.com/durch/rust-goauth/commits )
---
updated-dependencies:
- dependency-name: goauth
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-05-23 11:27:58 -06:00
dependabot[bot]
2a864e597b
chore: bump smpl_jwt from 0.7.0 to 0.7.1 ( #25473 )
...
* chore: bump smpl_jwt from 0.7.0 to 0.7.1
Bumps [smpl_jwt](https://github.com/durch/rust-jwt ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/durch/rust-jwt/releases )
- [Commits](https://github.com/durch/rust-jwt/commits )
---
updated-dependencies:
- dependency-name: smpl_jwt
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-05-23 11:27:49 -06:00
Josh
105562bb89
feat(explorer): superstruct checking for token-2022 instructions ( #25405 )
2022-05-23 10:57:14 -06:00
behzad nouri
c248fb3f51
renames Packet Meta::{,set_}addr methods to {,set_}socket_addr ( #25478 )
...
In order to distinguish between Meta.addr field which is an IpAddr and
the methods which refer to a SocketAddr.
2022-05-23 15:48:59 +00:00
Jeff Washington (jwash)
bac05dc55a
calc slot info on max slot once per hash calc ( #25422 )
2022-05-23 10:11:00 -05:00
Jeff Washington (jwash)
41f30a2383
stop logging misleading bank hash mismatch ( #25427 )
2022-05-23 08:43:25 -05:00
Michael Vines
3608801a54
Avoid clippy::significant_drop_in_scrutinee
2022-05-22 22:22:21 -07:00
Michael Vines
9d9773bd2a
Use write! instead of format! to pacify clippy
2022-05-22 22:22:21 -07:00
Michael Vines
9c20a06068
Remove unused lifetime
2022-05-22 22:22:21 -07:00
Michael Vines
b05c7d91ed
Fix derive_partial_eq_without_eq clippy lint
2022-05-22 22:22:21 -07:00
sakridge
e22be02d3a
sigverify: add discard before dedup ( #25388 )
2022-05-23 03:40:33 +02:00
behzad nouri
9e8a05ce47
partially reverts #25429 ( #25466 )
...
This partially reverts commit f8842032c6
.
Apparently CI runs for
https://github.com/solana-labs/solana/pull/25380
https://github.com/solana-labs/solana/pull/25429
have interleaved each other resulting in a broken master.
2022-05-23 01:01:05 +00:00
Michael
c3cb1c9897
Update docs for validator identity change to include --no-wait-for-vote-to-start-leader ( #25461 )
2022-05-22 10:35:45 -07:00
Brooks Prumo
f8842032c6
clippy: fix "this let-binding has unit value" warnings ( #25429 )
2022-05-22 12:17:59 -04:00
Dmitri Makarov
dfefc01c7b
Resolve conflicts of 506ee0014a
revert
2022-05-22 06:38:07 -07:00