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
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
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
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
78e7913352
Bump version to 1.9.3 ( #22065 )
2021-12-22 11:41:03 -06:00
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
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
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
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
bfa6302985
Bump version to 1.9.2
2021-12-15 16:18:14 -08:00
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
4b63d51e3e
Bump version to 1.9.1 ( #21802 )
2021-12-11 12:50:36 +00:00
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
7782d34bbf
Add StakesCache struct to abstract away locking ( #21738 ) ( #21796 )
2021-12-10 22:38:04 -05:00
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
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
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
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
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
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
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
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
46fe56171b
Make StakeHistory clone-on-write ( #21573 )
2021-12-03 12:10:29 -06:00
1430b58a6d
Remove deprecated slow epoch boundary methods ( #21568 )
2021-12-03 17:59:10 +00:00
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
0ef1b25e4b
Make StakeDelegations clone-on-write ( #21542 )
2021-12-03 08:54:38 -06:00
1a4a039913
Adds feature reject_empty_instruction_without_program. ( #21591 )
2021-12-03 15:47:18 +01:00
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
bdc33ba0a1
Remove unnecessary Option ( #21569 )
2021-12-02 20:19:22 +00:00
bf5b7f5d7f
report compute units without tx_wide_compute_cap feature enabled ( #21421 )
2021-12-02 12:14:57 -06:00
f0b32b75ab
AcctIdx: use ZeroLamport trait ( #21552 )
2021-12-02 12:10:11 -06:00
314605e149
AcctIdx: test cleanup ( #21550 )
2021-12-02 12:09:37 -06:00
976eb81d4f
Cleanup the bank's use of nonces ( #21246 )
2021-12-02 09:57:05 -08:00
bfdb775ffc
Unifies ThisInvokeContext and dyn trait InvokeContext. ( #21563 )
2021-12-02 18:47:16 +01:00
8dfa83c579
AcctIdx: minor code cleanup ( #21547 )
2021-12-02 11:05:54 -06:00
6bb884836c
address review feedback - use u64 instead of usize
2021-12-02 08:12:30 -08:00
adbf31b98c
avoid usize overflow for MAXIMUM_APPEND_VEC_FILE_SIZE on 32-bit platforms
2021-12-02 08:12:30 -08:00
c8a52337c8
AcctIdx: remove unused function ( #21546 )
2021-12-01 17:14:49 -06:00
1fae3d24de
bank: reuse last hash/fees helper to instatiate InvokeContext
2021-12-01 12:59:20 -07:00
91c6a10cda
bank: get hash and fee rate from the same source when storing accounts
2021-12-01 12:59:20 -07:00
308d7d40d0
aggressively flush cache based on cache size ( #21332 )
...
* aggressively flush cache based on cache size
* find_older_frozen_slots -> cached_frozen_slots
* remove 'WRITE_CACHE_LIMIT_BYTES_DEFAULT'
* tweaks to stats
* fix tests
2021-12-01 13:10:48 -06:00
1eefdeba85
AcctIdx: cleanup trait ( #21522 )
2021-12-01 12:19:06 -06:00
4a1ef12bd9
Refactor fns that calculate stake and voter balances ( #21529 )
2021-12-01 10:29:24 -06:00
b108d7ddaa
AcctIdx: insert goes directly to disk to avoid unnecessary allocations ( #21490 )
...
* AcctIdx: upsert avoids unnecessary allocation (during startup)
* feedback
2021-12-01 10:21:01 -06:00
cb368e6554
Pass Epoch by value in StakeHistory::get() ( #21523 )
2021-12-01 08:57:29 -06:00
b78f5b6032
Refactor: Cleanup InstructionProcessor ( #21404 )
...
* Moves create_message(), native_invoke() and process_cross_program_instruction()
from the InstructionProcessor to the InvokeContext so that they can have a useful "self" parameter.
* Moves InstructionProcessor into InvokeContext and Bank.
* Moves ExecuteDetailsTimings into its own file.
* Moves Executor into invoke_context.rs
* Moves PreAccount into its own file.
* impl AbiExample for BuiltinPrograms
2021-12-01 08:54:42 +01:00
e922c2da9d
Update to Rust 1.56.1
2021-11-30 23:28:07 -08:00
dd12d90eac
Upgrade to Rust 2021
2021-11-30 20:43:46 -08:00
8cf36e5cb0
Add GPU sigverify for verify path ( #20851 )
...
Allows the use of GPU acceleration in verifying the signatures in Entry's after deserialization in the replay stage
Co-authored-by: Stephen Akridge <sakridge@gmail.com >
Co-authored-by: Ryan Leung <ryan.leung@solana.com >
2021-11-30 21:16:13 -05:00
d8fb7ce511
AcctIdx: upsert avoids unnecessary allocation ( #21488 )
2021-11-30 11:36:46 -06:00