Tyera Eulberg
66f85a0703
Fix backport
2022-03-03 15:12:47 -07:00
Jack May
3bee925967
Resized accounts must be rent exempt
2022-03-03 10:40:46 -08:00
mergify[bot]
46a02b7b4a
Allow sub-rent-exempt-minimum transfers to 1nc1nerator (backport #23382 ) ( #23404 )
...
* Allow sub-rent-exempt-minimum transfers to `1nc1nerator` (#23382 )
* Add failing test
* Allow small burns to incinerator
* Use check_id method
(cherry picked from commit 19448ba078 )
# Conflicts:
# runtime/src/account_rent_state.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-03-01 17:12:47 +00:00
mergify[bot]
f42f094dd0
Prevent new RentPaying state created by paying fees (backport #23358 ) ( #23360 )
...
* Prevent new RentPaying state created by paying fees (#23358 )
* Add failing test
* Check fee-payer rent-state change on load
* Add more test cases
* Review comments
(cherry picked from commit 36484f4f08 )
# Conflicts:
# runtime/src/account_rent_state.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-02-26 21:37:06 +00:00
mergify[bot]
ef9ffffcaa
followup safety checks for #23295 ( #23340 )
...
(cherry picked from commit 5e0086c1ee )
# Conflicts:
# runtime/src/builtins.rs
Co-authored-by: Trent Nelson <trent@solana.com >
2022-02-25 08:58:25 +00:00
mergify[bot]
f4f0b64af4
Hack fix for ICE as seen in CI ( #23306 )
...
(cherry picked from commit c81dd602c4 )
Co-authored-by: Trent Nelson <trent@solana.com >
2022-02-24 01:23:34 +00:00
Will Hickey
84c57dd0a8
Bump version to v1.9.10 ( #23304 )
2022-02-23 11:30:21 -06:00
mergify[bot]
215c708599
Fix builtin handling on epoch boundaries (backport #23256 ) ( #23273 )
...
* Fix builtin handling on epoch boundaries (#23256 )
(cherry picked from commit bcda74f42f )
# Conflicts:
# runtime/src/bank.rs
# runtime/src/genesis_utils.rs
* fix conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-02-22 16:15:10 +00:00
Tyera Eulberg
68d846c7a9
Revert "Add simulation detection countermeasure (backport #22880 ) ( #23143 )" ( #23262 )
...
This reverts commit 0fdbec9735 .
2022-02-21 13:38:40 -07:00
Will Hickey
08d6b9850d
Bump version to 1.9.9 ( #23247 )
2022-02-19 21:17:11 -06:00
mergify[bot]
4ebeb33602
Skip adding builtins if they will be removed (backport #23233 ) ( #23241 )
...
* Skip adding builtins if they will be removed (#23233 )
* Add failing test for precompile transition
* Skip adding builtins if they will be removed
* cargo clean
* nits
* fix abi check
* remove workaround
Co-authored-by: Jack May <jack@solana.com >
(cherry picked from commit 1719d2349f )
# Conflicts:
# runtime/src/bank.rs
# runtime/src/builtins.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
Co-authored-by: Jack May <jack@solana.com >
2022-02-19 08:28:30 +00:00
mergify[bot]
1f4ad0d1e8
Precompiles owned by the native loader ( #23237 ) ( #23240 )
...
(cherry picked from commit 970f543ef6 )
Co-authored-by: Jack May <jack@solana.com >
2022-02-19 02:45:15 +00:00
mergify[bot]
0fdbec9735
Add simulation detection countermeasure (backport #22880 ) ( #23143 )
...
* Add simulation detection countermeasure (#22880 )
* Add simulation detection countermeasures
* Add program and test using TestValidator
* Remove incinerator deposit
* Remove incinerator
* Update Cargo.lock
* Add more features to simulation bank
* Update Cargo.lock per rebase
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
(cherry picked from commit c42b80f099 )
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/Cargo.toml
* Update Cargo.lock
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2022-02-17 14:45:24 +00:00
Trent Nelson
c3098e99d1
Bump version to v1.9.8
2022-02-16 21:42:57 -07:00
mergify[bot]
08cc140d4a
accounts_index: Add SPL Token account indexing for token-2022 accounts ( #23043 ) ( #23203 )
...
(cherry picked from commit a102453bae )
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-02-17 02:20:38 +00:00
mergify[bot]
2120ef5808
Fix ed25519 builtin program handling (backport #23182 ) ( #23195 )
...
* Fix ed25519 builtin program handling (#23182 )
* Fix ed25519 builtin program handling
* Fix tests
* Add integration tests for processing transactions with ed25519 ixs
* Fix another test
* fix formatting
(cherry picked from commit 813725dfec )
* fix tests
Co-authored-by: Justin Starry <justin@solana.com >
Co-authored-by: Jack May <jack@solana.com >
2022-02-17 00:44:44 +00:00
Michael Vines
94f4748a34
Generate full snapshots 4x faster to keep incremental snapshots nice and small
...
(cherry picked from commit 577fa4ec0c )
2022-02-15 21:22:23 -08:00
mergify[bot]
2c8cfdb3f3
Add fees to tx-wide caps (backport #22081 ) ( #23095 )
...
* Add fees to tx-wide caps (#22081 )
(cherry picked from commit 3d9874b95a )
# Conflicts:
# runtime/src/bank.rs
* resolve
Co-authored-by: Jack May <jack@solana.com >
2022-02-15 01:36:02 +00:00
Will Hickey
2d144afec5
Bump version to 1.9.6 ( #23092 )
2022-02-11 15:00:06 -06:00
mergify[bot]
4698fbc036
Move cap_accounts_data_len feature gate only around new error ( #23048 ) ( #23057 )
...
(cherry picked from commit 0a1ab945bc )
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-10 20:41:15 +00:00
mergify[bot]
d64eebb799
estimate a program cost as 2 standard deviation above mean (backport #22286 ) ( #23019 )
...
* - estimate a program cost as 2 standard deviation above mean
- replaced get_average / get_mode with get_default to assign max units to unknown program
(cherry picked from commit a25ac1c988 )
# Conflicts:
# runtime/src/cost_model.rs
* use EMA in place of Welford
(cherry picked from commit 6587dbfa47 )
* 1. Persist to blockstore less frequently;
2. reduce alpha for EMA to 1 percent to have roughly 200 data points for estimatio
(cherry picked from commit 7aa1fb4e24 )
# Conflicts:
# core/src/cost_update_service.rs
# core/src/tvu.rs
# runtime/src/cost_model.rs
* fix tests after merge
(cherry picked from commit ba2d83f580 )
* fix merge
Co-authored-by: Tao Zhu <tao@solana.com >
2022-02-09 22:16:55 +00:00
mergify[bot]
0fe00bab7d
Return the accounts data len delta after processing messages ( #22986 ) ( #23023 )
...
(cherry picked from commit 869cfc9a1c )
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-09 03:06:57 +00:00
Jack May
d05b5b0902
Add get_processed_sibling_instruction syscall ( #22859 ) ( #22956 )
2022-02-08 09:21:11 -08:00
mergify[bot]
5c69af607d
Put accounts data len updates behind feature gate ( #22918 ) ( #23007 )
...
(cherry picked from commit f0f4042680 )
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-08 16:45:22 +00:00
mergify[bot]
dd6c365bd9
Resolve conflicts ( #22905 )
...
Co-authored-by: carllin <carl@solana.com >
2022-02-05 06:47:18 +00:00
mergify[bot]
539f303eb7
Handle accounts data size changes due to rent-collected accounts ( #22412 ) ( #22919 )
...
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-04 01:13:12 +00:00
mergify[bot]
85fef67213
Refactor Rent::due() with RentDue enum ( #22346 ) ( #22921 )
...
(cherry picked from commit d90d5ee9b6 )
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-03 22:15:54 +00:00
mergify[bot]
90a70d9b5b
Use lazy_rent_collection directly ( #22410 ) ( #22920 )
...
(cherry picked from commit 9bc2592da1 )
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-03 22:07:28 +00:00
mergify[bot]
643442e830
Reject close of active vote accounts (backport #22651 ) ( #22896 )
...
* 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
# sdk/src/feature_set.rs
* Resolve merge conflicts
Co-authored-by: Will Hickey <csu_hickey@yahoo.com >
Co-authored-by: Will Hickey <will.hickey@solana.com >
2022-02-03 19:59:07 +00:00
mergify[bot]
04281734e5
Cleanup serde snapshot common.rs ( #22854 ) ( #22863 )
...
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-02 00:35:50 +00:00
mergify[bot]
a98ca9037d
More serde snapshot cleanup (backport #22449 ) ( #22872 )
...
* More serde snapshot cleanup (#22449 )
(cherry picked from commit 2756abce39 )
# Conflicts:
# runtime/src/serde_snapshot.rs
# runtime/src/serde_snapshot/newer.rs
* fixup
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-01 22:25:04 +00:00
mergify[bot]
12e40a40f5
Cleanup serde snapshot's "future" to "newer" (backport #22431 ) ( #22870 )
...
* Refactor serde snapshot's "future" to "newer" (#22431 )
(cherry picked from commit 9c3144e286 )
# Conflicts:
# runtime/src/serde_snapshot.rs
* fixup conflicts
* fixup remove unused use
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-01 19:03:02 +00:00
mergify[bot]
93b44d8a4c
Add new_from_parent() timings ( #22744 ) ( #22806 )
...
(cherry picked from commit 94a5aee484 )
Co-authored-by: carllin <carl@solana.com >
2022-01-28 03:10:53 +00:00
mergify[bot]
b0e0410003
Set the correct root in block commitment cache initialization ( #22750 ) ( #22757 )
...
* Set the correct root in block commitment cache initialization
* clean up test
* bump
(cherry picked from commit d9c259a231 )
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-27 03:44:59 +00:00
mergify[bot]
d1174f677e
Perf: Reduce write locks on blockhash queue ( #22729 ) ( #22751 )
...
* Perf: Reduce write locks on blockhash queue
* Add comment about thread safety
* Add comment about write starvation
(cherry picked from commit 071e97053f )
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-26 10:03:50 +00:00
mergify[bot]
87c3e71bb8
spl-associated-token-account: Add feature for new program ( #22648 ) ( #22719 )
...
* spl-associated-token-account: Add feature for new program
* Address feedback
(cherry picked from commit fc21af4e6e )
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2022-01-24 19:20:30 -07:00
mergify[bot]
b354dae249
Perf: Only check executors cache for executable bpf program ids (backport #22624 ) ( #22629 )
...
* 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:08:15 +08:00
Trent Nelson
8bc4cc90d2
Bump version to 1.9.6
2022-01-21 20:15:43 -07:00
mergify[bot]
187ed6a387
Remove unused fields from Bank (backport #22491 ) ( #22630 )
...
* Remove unused fields from Bank (#22491 )
(cherry picked from commit 9977396d8f )
# Conflicts:
# runtime/src/serde_snapshot/future.rs
* fixup the backport
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-22 00:13:32 +00:00
mergify[bot]
91bc44931f
Add hidden cli option to allow validator reports replayed transaction cost metrics (backport #22369 ) ( #22519 )
...
* Add hidden cli option to allow validator reports replayed transaction cost metrics (#22369 )
* add hidden cli option to allow validator reports replayed transaction cost detail metrics
* Update validator/src/main.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
* - rebase master, using unbounded instead of channel; dowgrade to datapoint_trace
* removed cli arg, prefer log at trace
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit a724fa2347 )
# Conflicts:
# core/src/tvu.rs
* fix conflict
Co-authored-by: Tao Zhu <82401714+taozhu-chicago@users.noreply.github.com >
Co-authored-by: Tao Zhu <tao@solana.com >
2022-01-21 15:05:41 -07:00
mergify[bot]
2ddb5b27c1
Refactor: move instructions sysvar serialization out of Message ( #22544 ) ( #22595 )
...
(cherry picked from commit 7ba57e7a7c )
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-21 13:45:47 +08:00
mergify[bot]
7f10fd6a21
Refactor: move compute budget runtime logic into solana-program-runtime (backport #22543 ) ( #22545 )
...
* Refactor: move compute budget runtime logic into solana-program-runtime (#22543 )
(cherry picked from commit cc76a73c49 )
# Conflicts:
# programs/bpf/tests/programs.rs
# sdk/src/compute_budget.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-21 13:45:01 +08:00
mergify[bot]
59f406d78a
Refactor: move simple vote parsing to runtime (backport #22537 ) ( #22587 )
...
* Refactor: move simple vote parsing to runtime (#22537 )
(cherry picked from commit 7f20c6149e )
# Conflicts:
# core/src/cluster_info_vote_listener.rs
# core/src/verified_vote_packets.rs
# programs/vote/src/vote_transaction.rs
# rpc/src/rpc_subscriptions.rs
# runtime/src/bank.rs
# runtime/src/bank_utils.rs
# runtime/src/vote_sender_types.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-20 04:51:50 +00:00
mergify[bot]
dbf9a32883
Optimize packet dedup ( #22571 ) ( #22585 )
...
* Use bloom filter to dedup packets
* dedup first
* Update bloom/src/bloom.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Update core/src/sigverify_stage.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Update core/src/sigverify_stage.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Update core/src/sigverify_stage.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* fixup
* fixup
* fixup
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit d343713f61 )
# Conflicts:
# Cargo.lock
# core/Cargo.toml
# core/src/banking_stage.rs
# core/src/sigverify_stage.rs
# gossip/Cargo.toml
# perf/Cargo.toml
# programs/bpf/Cargo.lock
# runtime/Cargo.toml
Co-authored-by: anatoly yakovenko <anatoly@solana.com >
2022-01-20 02:51:49 +00:00
mergify[bot]
4079f12a3e
Perf: Store deserialized sysvars in the sysvars cache (backport #22455 ) ( #22480 )
...
* Perf: Store deserialized sysvars in the sysvars cache (#22455 )
* Perf: Store deserialized sysvars in sysvars cache
* add bench
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-15 08:48:34 +00:00
Tao Zhu
054e475c6c
ABI changed - added two more vote_cost related fields to cost_tracker
2022-01-14 10:49:43 -06:00
Tao Zhu
7a421fe602
Port counting vote CUs to block cost to v1.9
2022-01-14 10:49:43 -06:00
mergify[bot]
a6b7a3b7ff
Refactor: move sysvar cache to new module (backport #22448 ) ( #22461 )
...
* Refactor: move sysvar cache to new module
(cherry picked from commit 7171c95bdd )
# Conflicts:
# Cargo.lock
# program-runtime/Cargo.toml
# program-runtime/src/invoke_context.rs
# programs/bpf/Cargo.lock
# programs/bpf_loader/src/syscalls.rs
# programs/stake/src/stake_instruction.rs
# programs/vote/src/vote_instruction.rs
# runtime/src/message_processor.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-14 08:43:26 +00:00
mergify[bot]
9d69f2b324
Bank::get_fee_for_message is now nonce aware (backport #22494 ) ( #22499 )
...
* `Bank::get_fee_for_message` is now nonce aware
(cherry picked from commit 4c577d7f8c )
# Conflicts:
# runtime/src/bank.rs
# sdk/program/src/message/sanitized.rs
* Resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-01-14 03:25:10 +00:00
Tyera Eulberg
34984ed16e
v1.9: Only examine explicit tx accounts for rent state ( #22442 )
...
* Add failing test
* Fix: only examine accounts explicitly included in a tx
2022-01-11 20:55:10 -07:00