mergify[bot]
92cc75b3ae
test_ed25519 fails if we randomly select index 1 ( #22779 )
...
(cherry picked from commit c1b543c74d
)
# Conflicts:
# sdk/src/ed25519_instruction.rs
Co-authored-by: Sean Young <sean@mess.org >
2022-01-27 13:02:42 +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
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
Justin Starry
c2dd9a006d
Fetch sysvars from invoke context for vote program (backport #22444 ) ( #22621 )
...
* Fetch sysvars from invoke context for vote program (#22444 )
* resolve conflicts
2022-01-21 02:59:33 +00: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
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
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]
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]
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]
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]
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
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
985fae2dcf
Revert "Revert "Ensure we have keys to activate these features ( #21669 ) ( #21673 )""
...
This reverts commit a0b73d5658
.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
90730899f1
Revert "Revert "Reject vote withdraws that create non-rent-exempt accounts (backport #21639 ) ( #21644 )""
...
This reverts commit ae11cc3297
.
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
83676aed53
Revert "Revert "spl-token: New program feature flag (backport #21354 ) ( #21376 )""
...
This reverts commit 36838427d4
.
2021-12-16 19:28:48 -07:00
Alexander Meißner
423a4d6546
Bumps solana_rbpf to v0.2.19 ( #21880 )
2021-12-14 14:06:08 -08:00
Alexander Meißner
2d93db9dec
Feature gates for rbpf v0.2.16 ( #21590 )
...
- Adds feature reject_section_virtual_address_file_offset_mismatch.
- Adds feature start_verify_shift32_imm.
- Enables enable_symbol_and_section_labels only in the rbpf-cli.
2021-12-14 14:06:08 -08:00
Alexander Meißner
e2850c84d2
Adds a feature gate to reject the deployment of programs with unresolved syscall symbols. ( #21298 )
2021-12-14 14:06:08 -08:00
Alexander Meißner
f9b7e24846
Bump solana_rbpf to version v0.2.14 ( #18869 )
...
* Feature gate for verify_mul64_imm_nonzero as discussed in #17520 .
2021-12-14 14:06:08 -08:00
Trent Nelson
36838427d4
Revert "spl-token: New program feature flag (backport #21354 ) ( #21376 )"
...
This reverts commit 42a67d30fc
.
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
cc75f576e2
Revert "Bump solana_rbpf to version v0.2.14 ( #18869 )"
...
This reverts commit 9d66458a40
.
2021-12-13 12:46:23 -06:00
Trent Nelson
4a186c5834
Revert "Adds a feature gate to reject the deployment of programs with unresolved syscall symbols. ( #21298 )"
...
This reverts commit 06a3e9b178
.
2021-12-13 12:46:23 -06:00
Trent Nelson
e68cd335d5
Revert "Feature gates for rbpf v0.2.16 ( #21590 )"
...
This reverts commit 6777ca244f
.
2021-12-13 12:46:23 -06:00
Trent Nelson
ae11cc3297
Revert "Reject vote withdraws that create non-rent-exempt accounts (backport #21639 ) ( #21644 )"
...
This reverts commit 83e01442a7
.
2021-12-13 12:46:23 -06:00
Trent Nelson
a0b73d5658
Revert "Ensure we have keys to activate these features ( #21669 ) ( #21673 )"
...
This reverts commit eeb2bef63e
.
2021-12-13 12:46:23 -06:00
Trent Nelson
8028f218a4
Revert "Add more reporting for invalid stake cache members and prune them (backport #21654 ) ( #21740 )"
...
This reverts commit 43e7368f3a
.
2021-12-13 12:46:23 -06:00
mergify[bot]
43e7368f3a
Add more reporting for invalid stake cache members and prune them (backport #21654 ) ( #21740 )
...
* Add more reporting for invalid stake cache members and prune them (#21654 )
* Add more reporting for invalid stake cache members
* feedback
(cherry picked from commit 6fc329180b
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
# runtime/Cargo.toml
# runtime/src/bank.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-10 14:13:33 -05:00
mergify[bot]
eeb2bef63e
Ensure we have keys to activate these features ( #21669 ) ( #21673 )
...
(cherry picked from commit 45e56c599d
)
Conflicts:
sdk/src/feature_set.rs
Co-authored-by: Sean Young <sean@mess.org >
2021-12-07 21:15:43 +00:00
mergify[bot]
83e01442a7
Reject vote withdraws that create non-rent-exempt accounts (backport #21639 ) ( #21644 )
...
* Reject vote withdraws that create non-rent-exempt accounts (#21639 )
* Reject vote withdraws that create non-rent-exempt accounts
* fix mocked instruction test
(cherry picked from commit e123883b26
)
# Conflicts:
# program-runtime/src/invoke_context.rs
# programs/vote/src/vote_instruction.rs
# sdk/src/feature_set.rs
* resolve conflicts
* fix old rust issue
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-07 11:28:40 -05:00
Alexander Meißner
6777ca244f
Feature gates for rbpf v0.2.16 ( #21590 )
...
- Adds feature reject_section_virtual_address_file_offset_mismatch.
- Adds feature start_verify_shift32_imm.
- Enables enable_symbol_and_section_labels only in the rbpf-cli.
2021-12-04 00:41:04 -07:00
Alexander Meißner
06a3e9b178
Adds a feature gate to reject the deployment of programs with unresolved syscall symbols. ( #21298 )
2021-12-04 00:41:04 -07:00
Alexander Meißner
9d66458a40
Bump solana_rbpf to version v0.2.14 ( #18869 )
...
* Feature gate for verify_mul64_imm_nonzero as discussed in #17520 .
2021-12-04 00:41:04 -07:00
Michael Vines
139d15cd84
Reformat imports to a consistent style for imports
...
rustfmt.toml configuration:
imports_granularity = "One"
group_imports = "One"
2021-12-03 09:41:09 -08:00
mergify[bot]
42a67d30fc
spl-token: New program feature flag (backport #21354 ) ( #21376 )
...
* spl-token: New program feature flag (#21354 )
* spl-token: Add feature flag for new release
* Remove all spl token version declarations
(cherry picked from commit 02bc4e3fc1
)
# Conflicts:
# account-decoder/Cargo.toml
# accounts-cluster-bench/Cargo.toml
# accounts-cluster-bench/src/main.rs
# rpc/Cargo.toml
# rpc/src/rpc.rs
# runtime/src/accounts_index.rs
# runtime/src/bank.rs
# runtime/src/lib.rs
# sdk/src/feature_set.rs
# tokens/Cargo.toml
# tokens/src/spl_token.rs
# transaction-status/Cargo.toml
* Fix merge issues
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-11-21 16:00:58 +00:00
mergify[bot]
1a0eabe340
add new macro: pubkey!
(backport #21245 ) ( #21288 )
2021-11-15 13:42:30 -08:00
mergify[bot]
66caead016
Add compute budget noops (backport #20992 ) ( #21014 )
...
* Add compute budget program as a noop (#20992 )
(cherry picked from commit 1e2bef76e3
)
# Conflicts:
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-10-27 12:47:35 -07:00
mergify[bot]
440ccd189e
Add program heap bump instruction (backport #20607 ) ( #20815 )
...
* Add program heap bump instruction (#20607 )
(cherry picked from commit 58164517e4
)
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-10-20 23:05:57 +00:00
mergify[bot]
d5fc81e12a
Reduce budget request instruction length ( #20636 ) ( #20644 )
...
(cherry picked from commit c231cfe235
)
Co-authored-by: Jack May <jack@solana.com >
2021-10-20 12:17:29 -07:00
mergify[bot]
63e37b2b20
Remove @brief annotations from Rust API docs (backport #20769 ) ( #20807 )
...
* Remove @brief annotations from Rust API docs (#20769 )
(cherry picked from commit d9b0fc0e3e
)
# Conflicts:
# programs/bpf/rust/invoke/src/instructions.rs
# programs/bpf/rust/invoke/src/processor.rs
# programs/bpf/rust/realloc/src/instructions.rs
# programs/bpf/rust/realloc/src/lib.rs
# programs/bpf/rust/realloc/src/processor.rs
# programs/bpf/rust/realloc_invoke/src/instructions.rs
# programs/bpf/rust/realloc_invoke/src/lib.rs
# programs/bpf/rust/realloc_invoke/src/processor.rs
# sdk/cargo-build-bpf/tests/crates/fail/src/lib.rs
# sdk/src/precompiles.rs
* Fix conflicts
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-10-19 19:17:33 -06:00
Sean Young
0619705ce5
Simplify ed25519 instruction index
...
Allow u16::MAX to be specified for the instruction index. This makes it
possible to specify the current instruction, so it is not necessary to
know the instruction number.
2021-10-18 15:41:24 +01:00
Sean Young
0a6bb84aec
feat: add ed25519 signature verify program
...
Solang requires a method for verify ed25519 signatures. Add a new
builtin program at address Ed25519SigVerify111111111111111111111111111
which takes any number of ed25519 signature, public key, and message.
If any of the signatures fails to verify, an error is returned.
The changes for the web3.js package will go into another commit, since
the tests test against a released solana node. Adding web3.js ed25519
testing will break CI.
(cherry picked from commit b491354e51
)
Conflicts:
Cargo.lock
Cargo.toml
programs/bpf/Cargo.lock
runtime/Cargo.toml
sdk/src/feature_set.rs
sdk/src/transaction.rs
sdk/src/transaction/sanitized.rs
2021-10-18 15:41:24 +01:00
Sean Young
c8f6a0817b
verify_precompiles needs FeatureSet
...
Rather than pass in individual features, pass in the entire feature set
so that we can add the ed25519 program feature in a later commit.
(cherry picked from commit 0f62771f42
)
Conflicts:
banks-server/src/banks_server.rs
core/src/banking_stage.rs
programs/secp256k1/src/lib.rs
rpc/src/rpc.rs
runtime/src/bank.rs
sdk/src/transaction.rs
sdk/src/transaction/sanitized.rs
2021-10-18 15:41:24 +01:00
Sean Young
ebe77a0985
Proposal: log binary data for Solidity
...
Rename "Program return data: " to "Program return: " since "data" is
redundant.
(cherry picked from commit b89177c8de
)
Conflicts:
programs/bpf_loader/src/syscalls.rs
sdk/bpf/c/inc/sol/log.h
sdk/program/Cargo.toml
sdk/src/feature_set.rs
sdk/src/process_instruction.rs
2021-10-13 14:34:36 +01:00
Sean Young
927d3b5e0d
Add return data implementation
...
This consists of:
- syscalls
- passing return data from invoked to invoker
- printing to stable log
- rust and C SDK changes
(cherry picked from commit 53b47b87b2
)
2021-10-12 18:31:42 +01:00
mergify[bot]
9acf708344
Remove support for dynamically loaded native programs (backport #20444 ) ( #20560 )
...
* Remove support for dynamically loaded native programs (#20444 )
(cherry picked from commit 785fcb63f5
)
# Conflicts:
# Cargo.lock
# Cargo.toml
# program-runtime/src/instruction_processor.rs
# programs/failure/Cargo.toml
# programs/failure/tests/failure.rs
# programs/noop/Cargo.toml
# programs/ownable/Cargo.toml
# programs/ownable/src/ownable_processor.rs
# runtime/src/bank.rs
# runtime/tests/noop.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-10-11 23:55:39 +00:00