mergify[bot]
4ce59bbbb5
Reject close of active vote accounts (backport #22651 ) ( #22895 )
...
* Reject close of active vote accounts (#22651 )
* 10461 Reject close of vote accounts unless it earned no credits in the previous epoch. This is checked by comparing current epoch (from clock sysvar) with the most recent epoch with credits in vote state.
(cherry picked from commit 75563f6c7b
)
# Conflicts:
# programs/vote/src/vote_processor.rs
# programs/vote/src/vote_state/mod.rs
# runtime/src/bank.rs
# sdk/program/src/instruction.rs
# sdk/program/src/program_error.rs
# storage-proto/proto/transaction_by_addr.proto
# storage-proto/src/convert.rs
* Resolve merge conflicts
* lint
* Clippy cleanup
* Add import to test module
* remove vote processor
* Update test_abi_digest hash
* cleanup
Co-authored-by: Will Hickey <csu_hickey@yahoo.com >
Co-authored-by: Will Hickey <will.hickey@solana.com >
2022-02-07 16:15:32 +00:00
mergify[bot]
70ec2cd244
Return actual committed transactions from process_transactions() (backport #22802 ) ( #22904 )
...
* Return actual committed transactions from process_transactions()
* resolve conflicts
* fixup comment
* Fixup banking_stage-dropped_tx_before_forwarding counter
* Count cost model throttled transactions
* fixup tx_count moved
* Fixup tests
* remove qos service
* Cleanup clippy
Co-authored-by: Carl Lin <carl@solana.com >
2022-02-04 03:52:11 +00:00
mergify[bot]
375a939000
Add new_from_parent() timings ( #22744 ) ( #22805 )
...
Co-authored-by: carllin <carl@solana.com >
2022-01-28 10:43:37 +00:00
mergify[bot]
fdc1b046bc
Set the correct root in block commitment cache initialization ( #22750 ) ( #22756 )
...
* Set the correct root in block commitment cache initialization
* clean up test
* bump
(cherry picked from commit d9c259a231
)
# Conflicts:
# replica-node/src/replica_node.rs
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-27 02:49:28 +00:00
mergify[bot]
6979d01e4c
spl-associated-token-account: Add feature for new program (backport #22648 ) ( #22718 )
...
* spl-associated-token-account: Add feature for new program (#22648 )
* spl-associated-token-account: Add feature for new program
* Address feedback
(cherry picked from commit fc21af4e6e
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/lib.rs
# sdk/src/feature_set.rs
* Fix merge conflicts
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2022-01-25 00:16:18 +00:00
mergify[bot]
de46df6b1b
Perf: Only check executors cache for executable bpf program ids (backport #22624 ) ( #22628 )
...
* Perf: Only check executors cache for executable bpf program ids (#22624 )
* Only check executors cache for executable bpf program ids
* switch to native loader check
* clean up tests
* fix tests
* clippy
(cherry picked from commit 7d34a7acac
)
# Conflicts:
# runtime/src/bank.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-22 14:12:29 +08:00
Justin Starry
4b7450e89e
Perf: Store deserialized sysvars in the sysvars cache (backport #22455 ) ( #22627 )
...
* Perf: Store deserialized sysvars in the sysvars cache (#22455 )
* resolve conflicts
* remove bench
2022-01-22 14:09:05 +08:00
Trent Nelson
9b90162564
Bump version to 1.8.15 ( #22670 )
2022-01-22 11:15:07 +08:00
anatoly yakovenko
cb5106a15b
Dedup v1.8 ( #22584 )
...
backport
2022-01-19 21:31:55 -08:00
Justin Starry
2d5957a4b4
Refactor: move sysvar cache to new module ( #22586 )
2022-01-20 03:27:03 +00:00
Justin Starry
db942269f0
Stop caching sysvars, instead load them ahead of time (backport #21108 ) ( #22572 )
...
* Bump version to v1.8.14
* Stop caching sysvars, instead load them ahead of time (backport #21108 )
Co-authored-by: Trent Nelson <trent@solana.com >
2022-01-19 17:42:43 +08:00
Trent Nelson
eede487797
Bump version to v1.8.14 ( #22573 )
2022-01-19 17:40:37 +08:00
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
Tao Zhu
3e131a5324
Added vote limits to be 75% of total block limit
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
Justin Starry
304afd42c6
Revert "Stop caching sysvars, instead load them ahead of time (backport #21108 ) ( #22466 )"
...
This reverts commit 5d3f3bc9b1
.
2022-01-14 11:13:04 +08:00
mergify[bot]
5d3f3bc9b1
Stop caching sysvars, instead load them ahead of time (backport #21108 ) ( #22466 )
...
* Stop caching sysvars, instead load them ahead of time. (#21108 )
(cherry picked from commit 29ad081555
)
# Conflicts:
# programs/bpf/tests/programs.rs
# programs/bpf_loader/src/syscalls.rs
# programs/stake/src/stake_instruction.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
# sdk/program/src/sysvar/mod.rs
# sdk/src/process_instruction.rs
* resolve conflicts
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-13 17:51:13 +00: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
mergify[bot]
a7aa5202ab
bank: fix executor cache metrics ( #22395 )
...
(cherry picked from commit 3b4aad9df1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2022-01-09 05:55:08 +00:00
Trent Nelson
9aa7821277
Bump version to v1.8.13
2022-01-08 12:27:11 -07:00
mergify[bot]
fee86726f2
improve multi executor cache addition ( #22381 )
...
(cherry picked from commit 4a9f4e2505
)
Co-authored-by: Jack May <jack@solana.com >
2022-01-08 12:52:16 +00:00
mergify[bot]
8c6df1f234
bank: prime new executor cache entry use-counts ( #22374 )
...
Co-authored-by: Trent Nelson <trent@solana.com >
2022-01-08 10:14:05 +00:00
mergify[bot]
6130466a21
Executor cache metrics (backport #22332 ) ( #22367 )
...
* Add helper macro for `AddAssign`ing with saturating arithmetic
* bank: Add executors cache metrics
Co-authored-by: Trent Nelson <trent@solana.com >
2022-01-08 02:19:36 +00:00
mergify[bot]
299a59f458
removes CowCachedExecutors (backport #22343 ) ( #22362 )
...
* removes CowCachedExecutors (#22343 )
Copy-on-write semantics for cached executors can be implemented by a
simple Arc<CachedExecutors> as opposed to CowCachedExecutors:
https://github.com/solana-labs/solana/blob/f1e2598ba/runtime/src/bank.rs#L244-L247
This will also avoid the need for double locking as in:
https://github.com/solana-labs/solana/blob/f1e2598ba/runtime/src/bank.rs#L3490-L3491
https://github.com/solana-labs/solana/blob/f1e2598ba/runtime/src/bank.rs#L3525-L3526
(cherry picked from commit c2389fc209
)
# Conflicts:
# runtime/src/bank.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-07 16:18:00 +00:00
mergify[bot]
cad0e7f04f
cache executors on failed transactions (backport #22308 ) ( #22327 )
...
* cache executors on failed transactions (#22308 )
(cherry picked from commit 12e160269e
)
# Conflicts:
# program-runtime/src/invoke_context.rs
# programs/bpf_loader/src/lib.rs
# runtime/src/bank.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2022-01-06 15:38:39 -08:00
mergify[bot]
c90fa6643e
Retain executor cache counts ( #22322 ) ( #22340 )
...
(cherry picked from commit f1e2598baa
)
Co-authored-by: Jack May <jack@solana.com >
2022-01-06 19:11:05 +00:00
mergify[bot]
e0d933f940
perf: skip updating already cached executors if unmodified (backport #22300 ) ( #22315 )
...
* Skip updating already cached executors if unmodified
(cherry picked from commit f2ed6f09ee
)
# Conflicts:
# program-runtime/src/invoke_context.rs
# runtime/src/bank.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-06 02:04:55 +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]
84d535b89e
re-calibrate limit based on mainnet data (backport #21995 ) ( #22211 )
...
* re-calibrate limit based on mainnet data, see issue #21917
(cherry picked from commit d743c2917c
)
# Conflicts:
# runtime/src/block_cost_limits.rs
* set secp256k1 cost similar to sigverify
(cherry picked from commit a2a7e91ad6
)
* removes backport merge conflicts
Co-authored-by: Tao Zhu <tao@solana.com >
2022-01-03 19:03:41 +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]
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
Brooks Prumo
acd03fc29b
Check file size of snapshot_version when unarchiving snapshot (backport #21925 ) ( #21987 )
2021-12-20 14:22:34 -06:00
Tyera Eulberg
0f6f0545d1
Revert "Revert "resolve conflicts ( #21795 )""
...
This reverts commit b73d23d50a
.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
89524d7b61
Revert "Revert "Nits in message-processor (backport #21755 ) ( #21761 )""
...
This reverts commit d3e92f4250
.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
4a66832fb0
Revert "Revert "Add more reporting for invalid stake cache members and prune them (backport #21654 ) ( #21740 )""
...
This reverts commit 8028f218a4
.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
5e9d20378d
Revert "Revert "Remove activated feature for filtering invalid stakes from rewards ( #21641 ) ( #21650 )""
...
This reverts commit 7bc9da3a97
.
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
a70e4c05d4
Revert "Revert "Fix transaction log collector indexing (backport #21420 ) ( #21423 )""
...
This reverts commit 49e9adbba4
.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
eefb9875bf
Revert "Revert "Add timing for accounts add_root (backport #21379 ) ( #21391 )""
...
This reverts commit 589eeb2432
.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
f4113d24b4
Revert "Revert "Accept only decimal digits in file names inside snapshot ( #21213 ) ( #21281 )""
...
This reverts commit 23be4d89ef
.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
f03b6d701d
Revert "Revert "Add timing metrics to bank creation and rewards calculation ( #21066 ) ( #21378 )""
...
This reverts commit dfa1bc1bbd
.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
83676aed53
Revert "Revert "spl-token: New program feature flag (backport #21354 ) ( #21376 )""
...
This reverts commit 36838427d4
.
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
Tao Zhu
f97d28caf4
reports bpf execution units without tx-wide-compute-cap feature
2021-12-13 12:56:46 -06:00
Trent Nelson
16abcac802
Bump version to 1.8.10
2021-12-13 12:46:23 -06:00