Tao Zhu
fc8f61368d
Revert "Added vote limits to be 75% of total block limit"
...
This reverts commit 3e131a5324 .
2022-01-18 15:10:49 -07:00
mergify[bot]
aabcdcf8fb
Add execute metrics (backport #22296 ) ( #22334 )
...
* consolidate execute timings to a common module
* Add execute metrics
* Add metrics for executor creation
* Use saturating_add_assign macro
Co-authored-by: Trent Nelson <trent@solana.com >
Co-authored-by: Carl Lin <carl@solana.com >
2022-01-18 19:18:24 +00:00
mergify[bot]
81e65eae0b
Use VecDeque instead of Vec in sigverify stage ( #22538 ) ( #22549 )
...
avoid bad performance of remove(0) for a single sender
(cherry picked from commit 49443406fd )
# Conflicts:
# core/src/sigverify_stage.rs
Co-authored-by: sakridge <sakridge@gmail.com >
2022-01-17 22:19:25 +00:00
mergify[bot]
38e72982bc
metrics for generate new bank forks ( #22492 ) ( #22547 )
...
* metrics for generate new bank forks
* fixed
* Apply suggestions from code review
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* --fixup
* fixup!
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit 2d94e6e5d3 )
# Conflicts:
# core/src/replay_stage.rs
Co-authored-by: anatoly yakovenko <anatoly@solana.com >
2022-01-17 21:48:20 +00:00
Tao Zhu
3e131a5324
Added vote limits to be 75% of total block limit
2022-01-14 10:49:17 -06:00
Tao Zhu
5655ea0061
count vote transaction units to block cost
2022-01-14 10:49:17 -06:00
mergify[bot]
40ef11ec86
implements copy-on-write for staked-nodes (backport #19090 ) ( #22507 )
...
* implements copy-on-write for staked-nodes (#19090 )
Bank::staked_nodes and Bank::epoch_staked_nodes redundantly clone
staked-nodes HashMap even though an immutable reference will suffice:
https://github.com/solana-labs/solana/blob/a9014cece/runtime/src/vote_account.rs#L77
This commit implements copy-on-write semantics for staked-nodes by
wrapping the underlying HashMap in Arc<...>.
(cherry picked from commit f302774cf7 )
# Conflicts:
# runtime/src/bank.rs
# runtime/src/stakes.rs
# runtime/src/vote_account.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-14 15:26:11 +00:00
Michael Vines
debac00724
Soften vote account identity mismatch from panic to runtime error
2022-01-13 19:31:03 -08:00
Tao Zhu
1ef48f369e
downgrade individual per-program-timing to trace to reduce writes to influx
...
(cherry picked from commit 6614727be8 )
2022-01-12 22:01:56 -06:00
Justin Starry
05e75ae937
Don't forward packets received from TPU forwards port (backport #22078 ) ( #22180 )
...
* Don't forward packets received from TPU forwards port (#22078 )
* resolve conflicts
2022-01-10 14:36:56 +08:00
Trent Nelson
9aa7821277
Bump version to v1.8.13
2022-01-08 12:27:11 -07:00
mergify[bot]
f0de9b43be
Lower vote-only-mode to 400 ( #22210 ) ( #22271 )
...
(cherry picked from commit 2486e21ffe )
Co-authored-by: sakridge <sakridge@gmail.com >
2022-01-04 14:17:31 +00:00
mergify[bot]
6d7b64b140
Fix bug, add error specific timings ( #22225 ) ( #22251 )
...
(cherry picked from commit 005592998d )
Co-authored-by: carllin <carl@solana.com >
2022-01-04 09:23:49 +00:00
mergify[bot]
f506851ca1
removes epoch_authorized_voters from VoteTracker (backport #22192 ) ( #22250 )
...
* removes epoch_authorized_voters from VoteTracker (#22192 )
https://github.com/solana-labs/solana/pull/22169
verifies authorized-voter early on in vote-listener pipeline; and so
VoteTracker no longer needs to maintain and check for epoch authorized
voters.
(cherry picked from commit 69d71f8f86 )
# Conflicts:
# core/src/cluster_info_vote_listener.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-04 02:02:56 +00:00
mergify[bot]
22bbd91843
Count compute units even when transaction errors (backport #22182 ) ( #22198 )
...
* Resolve conflicts
* Return err
Co-authored-by: carllin <carl@solana.com >
2022-01-01 13:16:56 +00:00
mergify[bot]
a53dd611c0
uses enum for shred type (backport #21333 ) ( #22147 )
...
* uses enum for shred type
Current code is using u8 which does not have any type-safety and can
contain invalid values:
https://github.com/solana-labs/solana/blob/66fa062f1/ledger/src/shred.rs#L167
Checks for invalid shred-types are scattered through the code:
https://github.com/solana-labs/solana/blob/66fa062f1/ledger/src/blockstore.rs#L849-L851
https://github.com/solana-labs/solana/blob/66fa062f1/ledger/src/shred.rs#L346-L348
The commit uses enum for shred type with #[repr(u8)]. Backward
compatibility is maintained by implementing Serialize and Deserialize
compatible with u8, and adding a test to assert that.
(cherry picked from commit 57057f8d39 )
# Conflicts:
# core/src/retransmit_stage.rs
# gossip/src/cluster_info.rs
# ledger/Cargo.toml
# ledger/src/blockstore.rs
# ledger/src/shred.rs
* changes Blockstore::is_shred_duplicate arg type to ShredType
(cherry picked from commit 48dfdfb4d5 )
# Conflicts:
# ledger/src/blockstore.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-31 16:47:45 +00:00
mergify[bot]
ec970f9d69
checks for authorized voter early on in the vote-listener pipeline (backport #22169 ) ( #22188 )
...
* checks for authorized voter early on in the vote-listener pipeline (#22169 )
Before votes are verified that they are signed by the authorized voter,
they might be dropped in verified-vote-packets code. If there are
enough many spam votes from unauthorized voters, this may potentially
drop valid votes but keep the false ones.
https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168
(cherry picked from commit c0c6038654 )
# Conflicts:
# core/src/cluster_info_vote_listener.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-30 17:52:36 +00:00
mergify[bot]
3b895104f3
ClusterInfoVoteListener send only missing votes to BankingStage (backport #20873 ) ( #22135 )
...
* ClusterInfoVoteListener send only missing votes to BankingStage (#20873 )
(cherry picked from commit b30c94ce55 )
# Conflicts:
# core/src/cluster_info_vote_listener.rs
# core/src/verified_vote_packets.rs
# gossip/src/cluster_info.rs
# local-cluster/tests/local_cluster.rs
# runtime/src/bank.rs
* Resolve conflicts
* Remove Select
* Fixup tests
Co-authored-by: carllin <carl@solana.com >
2021-12-30 06:38:49 +00:00
mergify[bot]
a305fa0472
implements copy-on-write for vote-accounts (backport #19362 ) #22139 ( #22139 )
...
Bank::vote_accounts redundantly clones vote-accounts HashMap even though
an immutable reference will suffice:
https://github.com/solana-labs/solana/blob/95c998a19/runtime/src/bank.rs#L5174-L5186
This commit implements copy-on-write semantics for vote-accounts by
wrapping the underlying HashMap in Arc<...>.
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-28 21:18:37 +00:00
mergify[bot]
262b157d21
renames solana_runtime::vote_account::VoteAccount and makes it private (backport #19153 ) ( #22141 )
...
* makes solana_runtime::vote_account::VoteAccount private
VoteAccount is an implementation detail, and should not be public.
Only ArcVoteAccount is the public type.
(cherry picked from commit 1403eaeefc )
# Conflicts:
# runtime/src/vote_account.rs
* renames solana_runtime::vote_account::VoteAccount
Rename:
VoteAccount -> VoteAccountInner # the private type
ArcVoteAccount -> VoteAccount # the public type
(cherry picked from commit 00e5e12906 )
# Conflicts:
# core/src/progress_map.rs
# ledger/src/blockstore_processor.rs
# ledger/src/staking_utils.rs
# runtime/src/bank.rs
# runtime/src/epoch_stakes.rs
# runtime/src/serde_snapshot/tests.rs
# runtime/src/stakes.rs
# runtime/src/vote_account.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-28 18:26:23 +00:00
mergify[bot]
039244417e
removes redundant args from Shredder::try_recovery (backport #21226 ) ( #22126 )
...
* removes redundant args from Shredder::try_recovery (#21226 )
Shredder::try_recovery is already taking a Vec<Shred> as an argument. All the
other arguments are embedded in the shreds, and are so redundant.
(cherry picked from commit 5fb0ab9d00 )
# Conflicts:
# ledger/src/shred.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-27 21:02:33 +00:00
Trent Nelson
685e40cbf2
validator: add contact-info query to admin port
2021-12-23 20:23:48 +00:00
mergify[bot]
17d698d20a
report mem stats ( #21258 ) ( #22066 )
...
(cherry picked from commit f8dcb2f38b )
# Conflicts:
# Cargo.lock
# core/Cargo.toml
# core/src/system_monitor_service.rs
# runtime/src/bucket_map_holder_stats.rs
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-12-23 18:16:56 +00:00
mergify[bot]
cf34ae7d6f
chore: bump lru from 0.7.0 to 0.7.1 (backport #22018 ) ( #22079 )
...
* chore: bump lru from 0.7.0 to 0.7.1 (#22018 )
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.0...0.7.1 )
---
updated-dependencies:
- dependency-name: lru
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>
(cherry picked from commit 69d0b08dd8 )
# Conflicts:
# Cargo.lock
# core/Cargo.toml
# gossip/Cargo.toml
* Fix conflicts
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-12-23 02:57:40 +00:00
mergify[bot]
ddef156305
new net-stats require a new table (backport #21996 ) ( #21999 )
...
* new net-stats require a new table (#21996 )
(cherry picked from commit 3fe942ab30 )
# Conflicts:
# core/src/system_monitor_service.rs
* merge
Co-authored-by: Jeff Biseda <jbiseda@gmail.com >
2021-12-18 10:29:29 +00:00
Tyera Eulberg
a0669af872
Revert "Revert "Rename Packets to PacketBatch (backport #21794 ) ( #21804 )""
...
This reverts commit 13d40d6a66 .
2021-12-16 19:28:48 -07:00
Tyera Eulberg
01e932c6a4
Revert "Revert "adds back position field to coding-shred-header (backport #21600 ) ( #21619 )""
...
This reverts commit c901227d0f .
2021-12-16 19:28:48 -07:00
Tyera Eulberg
a523d09902
Revert "Revert "solana-test-validator no longer limits the size of the genesis archive""
...
This reverts commit c2891c392c .
2021-12-16 19:28:48 -07:00
Tyera Eulberg
9985f5fa5c
Revert "Revert "Remove deprecated slow epoch boundary methods (backport #21568 ) ( #21595 )""
...
This reverts commit 77a3adb5a6 .
2021-12-16 19:28:48 -07:00
Tyera Eulberg
9f53f3455a
Revert "Revert "Reformat imports to a consistent style for imports""
...
This reverts commit d7377d4794 .
2021-12-16 19:28:48 -07:00
Tyera Eulberg
32bcfb757b
Revert "Revert "Add bank drop service ( #21322 ) ( #21360 )""
...
This reverts commit a7eb10a787 .
2021-12-16 19:28:48 -07:00
Michael Vines
6bc52d4d47
Bump version to v1.8.12
2021-12-15 09:25:32 -08:00
Tao Zhu
4cae58bfe9
Bump version to 1.8.11
2021-12-13 12:58:29 -08:00
Trent Nelson
16abcac802
Bump version to 1.8.10
2021-12-13 12:46:23 -06:00
Trent Nelson
a5e6a188c1
Bump version to 1.8.9
2021-12-13 12:46:23 -06:00
Trent Nelson
9f44d60a39
Bump version to 1.8.8
2021-12-13 12:46:23 -06:00
Trent Nelson
9284c6fffb
Bump version to 1.8.7
2021-12-13 12:46:23 -06:00
Trent Nelson
2c49ab1ab4
Bump version to 1.8.6
2021-12-13 12:46:23 -06:00
Trent Nelson
9832ac54a4
Revert "Bump version to v1.8.6 ( #21329 )"
...
This reverts commit 336ee01aae .
2021-12-13 12:46:23 -06:00
Trent Nelson
a7eb10a787
Revert "Add bank drop service ( #21322 ) ( #21360 )"
...
This reverts commit b030d4be7c .
2021-12-13 12:46:23 -06:00
Trent Nelson
dc633e3385
Revert "Bump version to v1.8.7"
...
This reverts commit 008139f506 .
2021-12-13 12:46:23 -06:00
Trent Nelson
d7377d4794
Revert "Reformat imports to a consistent style for imports"
...
This reverts commit 139d15cd84 .
2021-12-13 12:46:23 -06:00
Trent Nelson
77a3adb5a6
Revert "Remove deprecated slow epoch boundary methods (backport #21568 ) ( #21595 )"
...
This reverts commit b6d040b0d7 .
2021-12-13 12:46:23 -06:00
Trent Nelson
c2891c392c
Revert "solana-test-validator no longer limits the size of the genesis archive"
...
This reverts commit 0cefd46d9d .
2021-12-13 12:46:23 -06:00
Trent Nelson
3369826bd1
Revert "Bump version to v1.8.8 ( #21609 )"
...
This reverts commit b8306a99d8 .
2021-12-13 12:46:23 -06:00
Trent Nelson
c901227d0f
Revert "adds back position field to coding-shred-header (backport #21600 ) ( #21619 )"
...
This reverts commit 6d1e1287bc .
2021-12-13 12:46:23 -06:00
Trent Nelson
c0794d6fbb
Revert "Bump version to v1.8.9 ( #21703 )"
...
This reverts commit 69027e3f7e .
2021-12-13 12:46:23 -06:00
Trent Nelson
400418fe2f
Revert "Bump version to 1.8.10 ( #21790 )"
...
This reverts commit 73acae9b5d .
2021-12-13 12:46:23 -06:00
Trent Nelson
13d40d6a66
Revert "Rename Packets to PacketBatch (backport #21794 ) ( #21804 )"
...
This reverts commit 39e27b130f .
2021-12-13 12:46:23 -06:00
mergify[bot]
39e27b130f
Rename Packets to PacketBatch (backport #21794 ) ( #21804 )
...
* Rename Packets to PacketBatch (#21794 )
(cherry picked from commit 254ef3e7b6 )
# Conflicts:
# core/src/ancestor_hashes_service.rs
# core/src/banking_stage.rs
# core/src/cluster_info_vote_listener.rs
# core/src/fetch_stage.rs
# core/src/serve_repair.rs
# core/src/shred_fetch_stage.rs
# core/src/sigverify_stage.rs
# core/src/verified_vote_packets.rs
# core/src/window_service.rs
# gossip/src/cluster_info.rs
# ledger/src/entry.rs
# streamer/src/streamer.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-11 17:32:17 +00:00