mergify[bot]
133314e58c
bank: fix executor cache metrics ( #22396 )
...
(cherry picked from commit 3b4aad9df1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2022-01-09 06:06:35 +00:00
Trent Nelson
cb49ae21b4
Bump version to v1.9.5
2022-01-08 21:17:51 +00:00
mergify[bot]
8ce65878da
improve multi executor cache addition ( #22382 )
...
Co-authored-by: Jack May <jack@solana.com >
2022-01-08 13:03:46 +00:00
mergify[bot]
7cb147fdcd
Executor cache count primer (backport #22333 ) ( #22375 )
...
* bank: prime new executor cache entry use-counts
(cherry picked from commit 4ce48307bb
)
* --amend
(cherry picked from commit ad3cb0bc93
)
Co-authored-by: Trent Nelson <trent@solana.com >
2022-01-08 11:01:34 +00:00
mergify[bot]
50e716fc80
bank: Add executors cache metrics ( #22368 )
...
(cherry picked from commit 6d76db1de5
)
Co-authored-by: Trent Nelson <trent@solana.com >
2022-01-08 01:34:53 +00:00
Justin Starry
1f00926874
Add runtime support for address table lookups (backport #22223 ) ( #22354 )
2022-01-08 07:57:04 +08:00
mergify[bot]
662c6be51e
removes CowCachedExecutors ( #22343 ) ( #22363 )
...
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
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-07 16:04:13 +00:00
mergify[bot]
7b1da62763
Add execute metrics (backport #22296 ) ( #22335 )
...
* move `ExecuteTimings` from `runtime::bank` to `program_runtime::timings`
(cherry picked from commit 7d32909e17
)
# Conflicts:
# core/Cargo.toml
# ledger/Cargo.toml
# programs/bpf/Cargo.lock
* Add execute metrics
(cherry picked from commit b25e4a200b
)
* Add metrics for executor creation
(cherry picked from commit 848b6dfbdd
)
* Add helper macro for `AddAssign`ing with saturating arithmetic
(cherry picked from commit deb9344e49
)
* Use saturating_add_assign macro
(cherry picked from commit 72fc6096a0
)
* Consolidate process instruction execution timings to own struct
(cherry picked from commit 390ef0fbcd
)
Co-authored-by: Trent Nelson <trent@solana.com >
Co-authored-by: Carl Lin <carl@solana.com >
2022-01-07 09:11:18 +00:00
mergify[bot]
8214bc9db4
Retain executor cache counts ( #22322 ) ( #22341 )
...
(cherry picked from commit f1e2598baa
)
Co-authored-by: Jack May <jack@solana.com >
2022-01-06 19:00:29 +00:00
mergify[bot]
7267ebaaf2
Consume from AccountsDataMeter (backport #21994 ) ( #22323 )
...
* Consume from AccountsDataMeter (#21994 )
(cherry picked from commit 1460f00e0f
)
# Conflicts:
# program-runtime/src/invoke_context.rs
* fixup! conflicts
* fix tests for v1.9
* fixup! clippy
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-06 17:01:02 +00:00
mergify[bot]
4be6e52a4f
cache executors on failed transactions (backport #22308 ) ( #22328 )
...
* cache executors on failed transactions (#22308 )
(cherry picked from commit 12e160269e
)
# Conflicts:
# program-runtime/src/invoke_context.rs
# runtime/src/bank.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2022-01-06 09:14:48 +00:00
mergify[bot]
fc0c74d722
Only sum accounts data len from non-zero lamport accounts ( #22309 ) ( #22317 )
...
(cherry picked from commit ab13e39518
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-06 02:43:54 +00:00
mergify[bot]
687cd4779e
Add AccountsDataMeter to InvokeContext ( #21813 ) ( #22299 )
...
(cherry picked from commit 800472ddf5
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-06 01:31:11 +00:00
Will Hickey
ba0188a36d
Bump version to 1.9.4 ( #22304 )
2022-01-05 12:02:36 -06:00
mergify[bot]
8578429c4d
Refactor: Improve type safety and readability of transaction execution (backport #22215 ) ( #22289 )
...
* Refactor: Improve type safety and readability of transaction execution (#22215 )
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-05 23:01:15 +08:00
mergify[bot]
87f4a1f4b6
Bank gets accounts data len delta from MessageProcessor::process_message() ( #22288 )
...
(cherry picked from commit 635337d2ff
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-05 05:50:03 +00:00
mergify[bot]
17411f9b4c
Add accounts_data_len to Bank ( #21781 ) ( #22285 )
...
(cherry picked from commit eeb97fe7ce
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-05 02:24:52 +00:00
mergify[bot]
f89bf7b939
Compute accounts data len during generate_index() ( #21757 ) ( #22277 )
...
(cherry picked from commit ec7e17787e
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-04 22:44:51 +00:00
mergify[bot]
9764d4349b
Add return types to generate_index() ( #21735 ) ( #22275 )
...
(cherry picked from commit 1528f85112
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-04 18:27:40 +00:00
mergify[bot]
3b59f67562
Limit number of accounts that a transaction can lock (backport #22201 ) ( #22263 )
...
* Limit number of accounts that a transaction can lock (#22201 )
(cherry picked from commit 2b5e00d36d
)
# Conflicts:
# accountsdb-plugin-postgres/src/postgres_client/postgres_client_transaction.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# sdk/src/feature_set.rs
# sdk/src/transaction/error.rs
# storage-proto/proto/transaction_by_addr.proto
# storage-proto/src/convert.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-04 11:34:34 +00:00
mergify[bot]
0a9460ed8b
re-calibrate limit based on mainnet data (backport #21995 ) ( #22212 )
...
* 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:22:10 +00:00
mergify[bot]
113d261a2c
Count compute units even when transaction errors (backport #22182 ) ( #22199 )
...
* Count compute units even when transaction errors (#22182 )
(cherry picked from commit d06e6c7425
)
# Conflicts:
# program-runtime/src/invoke_context.rs
# runtime/src/cost_model.rs
# runtime/src/message_processor.rs
* Resolve conflicts
Co-authored-by: carllin <carl@solana.com >
2021-12-31 21:14:00 +00:00
carllin
7efd0391e9
Revert "Count compute units even when transaction errors (backport #22059 ) ( #22154 )" ( #22175 )
...
This reverts commit 401c542d2a
.
2021-12-30 02:39:25 -05:00
mergify[bot]
531f36c571
Don't forward packets received from TPU forwards port ( #22078 ) ( #22171 )
...
* Don't forward packets received from TPU forwards port
* Add banking stage test
(cherry picked from commit b1d9a2e60e
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-30 10:42:28 +08:00
mergify[bot]
401c542d2a
Count compute units even when transaction errors (backport #22059 ) ( #22154 )
...
* Count compute units even when transaction errors (#22059 )
(cherry picked from commit eaa8c67bde
)
# Conflicts:
# program-runtime/src/invoke_context.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
* Fix merge conflicts
Co-authored-by: carllin <carl@solana.com >
2021-12-29 08:04:12 +00:00
mergify[bot]
adc584ee22
Add (preflight) simulation to BanksClient ( #22084 ) ( #22149 )
...
* Add more-legitimate conversion from legacy Transaction to SanitizedTransaction
* Add Banks method with preflight checks
* Expose BanksClient method with preflight checks
* Unwrap simulation err
* Add Bank simulation method that works on unfrozen Banks
* Add simpler api
* Better name: BanksTransactionResultWithSimulation
(cherry picked from commit 422a095647
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-28 22:04:27 +00:00
Will Hickey
78e7913352
Bump version to 1.9.3 ( #22065 )
2021-12-22 11:41:03 -06:00
mergify[bot]
35ee48bec9
RPC Block Subscription (backport #21787 ) ( #21992 )
...
* RPC Block Subscription (#21787 )
* add stuff
* compiling
* add notify block
* wip
* feat: add blockSubscribe pubsub method
* address PR comments
Co-authored-by: Lucas B <buffalu@jito.network >
Co-authored-by: Zano <segfaultdoctor@protonmail.com >
(cherry picked from commit 76098dd42a
)
# Conflicts:
# Cargo.lock
# client-test/Cargo.toml
# rpc/src/rpc_subscriptions.rs
* Fix conflicts
Co-authored-by: segfaultdoctor <seg@jito.network >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-12-18 01:43:37 +00:00
mergify[bot]
02be3a6568
Check file size of snapshot_version
when unarchiving snapshot ( #21925 ) ( #21983 )
...
(cherry picked from commit 0f6e8d3385
)
Co-authored-by: mooori <moritz.zielke@gmail.com >
2021-12-17 21:02:53 +00:00
mergify[bot]
f4521002b9
Clean up demote program write lock feature (backport #21949 ) ( #21969 )
...
* Clean up demote program write lock feature (#21949 )
* Clean up demote program write lock feature
* fix test
(cherry picked from commit 6ff0be6a82
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# runtime/src/accounts.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-17 04:45:22 +00:00
mergify[bot]
301e38044a
Fixes the calculation of the "compute_meter_consumption" across process_instruction() and process_message(). ( #21944 ) ( #21945 )
...
(cherry picked from commit 49cb161203
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-12-16 16:28:28 +00:00
Michael Vines
bfa6302985
Bump version to 1.9.2
2021-12-15 16:18:14 -08:00
mergify[bot]
a9d4728c35
Deserialize accounts before acquiring stakes cache lock ( #21733 ) ( #21889 )
...
* Deserialize stored accounts before locking stakes cache
* fix test
(cherry picked from commit 2bbe1d875a
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-14 16:47:01 +00:00
Tao Zhu
4b63d51e3e
Bump version to 1.9.1 ( #21802 )
2021-12-11 12:50:36 +00:00
mergify[bot]
5bf4445ae6
Add address lookup table program (backport #21616 ) ( #21789 )
...
* Add address lookup table program (#21616 )
* Add address lookup table program
* feedback
(cherry picked from commit 9b41ddd9ba
)
# Conflicts:
# runtime/Cargo.toml
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-11 05:26:46 +00:00
Justin Starry
7782d34bbf
Add StakesCache struct to abstract away locking ( #21738 ) ( #21796 )
2021-12-10 22:38:04 -05:00
mergify[bot]
da9e6826ac
Move type alias and use it more broadly ( #21763 ) ( #21777 )
...
(cherry picked from commit 350845c513
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-10 21:44:41 +00:00
mergify[bot]
68fc72a7f4
Add more reporting for invalid stake cache members and prune them ( #21654 ) ( #21741 )
...
* Add more reporting for invalid stake cache members
* feedback
(cherry picked from commit 6fc329180b
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-10 18:30:16 +00:00
mergify[bot]
ef51778c78
Nits in message-processor ( #21755 ) ( #21762 )
...
* Fixup typo
* Simplify types slightly
(cherry picked from commit c1386d66e6
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-10 11:24:20 -05:00
mergify[bot]
2698a5c705
AcctIdx: env var to enable testing of disk buckets ( #21494 ) ( #21723 )
...
(cherry picked from commit 54862eba0d
)
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com >
2021-12-09 23:39:06 +00:00
mergify[bot]
ef970bb14a
- Implicitly fixes invoke_context.return_data not being reset between instructions in process_message. ( #21671 ) ( #21684 )
...
- Lets InvokeContext::process_cross_program_instruction() handle the first invocation depth too.
- Marks InvokeContext::verify(), InvokeContext::verify_and_update() and InvokeContext::process_executable_chain() private.
- Renames InvokeContext::process_cross_program_instruction() to InvokeContext::process_instruction().
- Removes InvokeContext::new_mock_with_sysvars().
(cherry picked from commit 1df88837c8
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-12-08 10:48:49 +00:00
mergify[bot]
46935c022e
Ensure that StakeDelegations and StakeHistory serde ( #21640 ) ( #21653 )
...
Add tests to StakeDelegations and StakeHistory to ensure that the outer
types serialize and deserialize correctly to/from the inner types.
(cherry picked from commit da4015a959
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2021-12-07 01:44:49 +00:00
mergify[bot]
8a7106bc08
Remove activated feature for filtering invalid stakes from rewards ( #21641 ) ( #21651 )
...
(cherry picked from commit a1adcb23b6
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-07 00:58:31 +00:00
mergify[bot]
b3fa1e4550
Move transaction error code into new module ( #21635 ) ( #21638 )
...
(cherry picked from commit 3dab1e711d
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-06 20:11:20 +00:00
Brooks Prumo
46fe56171b
Make StakeHistory clone-on-write ( #21573 )
2021-12-03 12:10:29 -06:00
Justin Starry
1430b58a6d
Remove deprecated slow epoch boundary methods ( #21568 )
2021-12-03 17:59:10 +00:00
Michael Vines
b8837c04ec
Reformat imports to a consistent style for imports
...
rustfmt.toml configuration:
imports_granularity = "One"
group_imports = "One"
2021-12-03 09:19:13 -08:00
Brooks Prumo
0ef1b25e4b
Make StakeDelegations clone-on-write ( #21542 )
2021-12-03 08:54:38 -06:00
Alexander Meißner
1a4a039913
Adds feature reject_empty_instruction_without_program. ( #21591 )
2021-12-03 15:47:18 +01:00
Alexander Meißner
a9d5ef2055
Cleanup: InvokeContext accessors ( #21574 )
...
* Removes blockhash accessors from InvokeContext.
* Removes lamports_per_signature accessors from InvokeContext.
* Removes return_data accessors from InvokeContext.
* Removes feature_set accessor from InvokeContext.
* Removes instruction_recorders and instruction_index accessors from InvokeContext.
* Moves get_sysvars() into InvokeContext.
* Removes compute_meter parameter from InvokeContext::new().
* Removes InvokeContext::new_mock_with_sysvars_and_features().
* Removes InvokeContext::update_timing().
2021-12-03 12:15:22 +01:00