Trent Nelson
402d72bc48
Revert "SDK: Add stdlib.h include to pull in abort()
(backport #21700 ) ( #21704 )"
...
This reverts commit 32f507dc51
.
2021-12-13 12:46:23 -06:00
Trent Nelson
c0794d6fbb
Revert "Bump version to v1.8.9 ( #21703 )"
...
This reverts commit 69027e3f7e
.
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
Trent Nelson
400418fe2f
Revert "Bump version to 1.8.10 ( #21790 )"
...
This reverts commit 73acae9b5d
.
2021-12-13 12:46:23 -06:00
Tao Zhu
73acae9b5d
Bump version to 1.8.10 ( #21790 )
2021-12-10 18:44:32 -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
Alexander Meißner
69027e3f7e
Bump version to v1.8.9 ( #21703 )
2021-12-08 18:33:05 +01:00
mergify[bot]
32f507dc51
SDK: Add stdlib.h include to pull in abort()
(backport #21700 ) ( #21704 )
...
* SDK: Add stdlib.h include to pull in `abort()` (#21700 )
(cherry picked from commit 923720f529
)
# Conflicts:
# sdk/bpf/c/inc/sol/assert.h
* Fix merge conflict
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-12-08 17:26:31 +00: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
Trent Nelson
b8306a99d8
Bump version to v1.8.8 ( #21609 )
2021-12-04 10:00:35 -07: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
Michael Vines
008139f506
Bump version to v1.8.7
2021-12-01 11:44:18 -08:00
Michael Vines
e5aa5efbac
Fix more BPF alignment issues on arm64
2021-11-30 17:26:01 -08:00
Dmitri Makarov
04cc50126b
Bump bpf-tools to v1.20 ( #21361 )
2021-11-23 18:24:08 +00: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]
f3ea9bc995
Fix authority in bpf_loader_upgradeable::close_any ( #21344 ) ( #21353 )
...
(cherry picked from commit 1a7cefded7
)
Co-authored-by: Kirill Fomichev <fanatid@ya.ru >
2021-11-19 09:10:48 -08:00
Tyera Eulberg
336ee01aae
Bump version to v1.8.6 ( #21329 )
2021-11-17 17:16:20 -07:00
mergify[bot]
40c86a0605
Fix BPF parameter alignment to work regardless of target ABI ( #21271 ) ( #21299 )
...
(cherry picked from commit 7e600bd451
)
Co-authored-by: Ben Newhouse <newhouseb@gmail.com >
2021-11-16 21:06:42 +00:00
sakridge
80c3591391
Bump version to 1.8.5 ( #21295 )
2021-11-16 11:58:57 -07:00
mergify[bot]
8bfba571f2
Make cargo-build-bpf clean up after failed installation of bpf-tools ( #21143 ) ( #21157 )
...
(cherry picked from commit 55d19e61da
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-11-15 23:45:15 +00:00
mergify[bot]
1a0eabe340
add new macro: pubkey!
(backport #21245 ) ( #21288 )
2021-11-15 13:42:30 -08:00
mergify[bot]
a05c08e711
Bump bpf-tools to v1.19 ( #21256 ) ( #21264 )
...
Toolchain upgrade to rust 1.56.0 and clang 13.0.
(cherry picked from commit 3f4f05865d
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-11-15 20:59:58 +00:00
Tyera Eulberg
09ef4d12f7
Bump version to 1.8.4 ( #21232 ) ( #21235 )
...
Co-authored-by: sakridge <sakridge@gmail.com >
2021-11-10 15:20:41 -07:00
Tyera Eulberg
74684a107c
Revert "Bump version to 1.8.4 ( #21232 )"
...
This reverts commit 19b3ba0442
.
2021-11-10 11:19:39 -07:00
sakridge
19b3ba0442
Bump version to 1.8.4 ( #21232 )
2021-11-10 16:38:44 +01:00
mergify[bot]
b6fe051d24
Document next_account_info(s) ( #21076 ) ( #21080 )
...
(cherry picked from commit 62c8fb4792
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-10-29 22:22:09 +00:00
Tyera Eulberg
8dd3c1ece1
Bump version to v1.8.3 ( #21040 )
2021-10-28 11:17:11 -06: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]
afe229a89e
Document entrypoint!
, custom_heap_default!
, and custom_panic_default!
( #21003 ) ( #21015 )
...
(cherry picked from commit ced1505b75
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-10-27 07:49:14 +00:00
mergify[bot]
0a698fc48f
Instruction sysvar fixes, additions (backport #20958 ) ( #21001 )
...
* Instruction sysvar fixes, additions (#20958 )
(cherry picked from commit 4fe3354c8f
)
# Conflicts:
# programs/bpf/rust/sysvar/src/lib.rs
# programs/bpf/tests/programs.rs
# sdk/program/src/sysvar/instructions.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-10-27 01:00:01 +00:00
mergify[bot]
307cda52ac
Fixed bug in AccountInfo::serialize() ( #20923 )
...
Closes #20917
(cherry picked from commit edf5bc242c
)
Co-authored-by: Eugene Lomov <eugene.v.lomov@gmail.com >
2021-10-25 02:26:18 +00:00
Trent Nelson
23b6ce7980
Bump version to 1.8.2
2021-10-21 00:43:40 -06: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]
53f4bde471
add checked instructions sysvar api (backport #20790 ) ( #20816 )
...
* add checked instructions sysvar api (#20790 )
(cherry picked from commit a8098f37d0
)
# Conflicts:
# programs/bpf/rust/sysvar/src/lib.rs
# runtime/src/accounts.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-10-20 18:11:51 +00: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
mergify[bot]
ece4ecb792
stake: Add BorshSerialize
trait to structs ( #20784 ) ( #20792 )
...
(cherry picked from commit dc1b8ddea1
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-10-19 20:23:24 +00: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
Michael Vines
ef55045724
rebase
2021-10-07 07:44:12 -07:00
Michael Vines
81d2c3261c
Derive Pod/Zeroable for Pubkey
...
(cherry picked from commit f966859829
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
# sdk/program/Cargo.toml
2021-10-07 07:44:12 -07:00
Tao Zhu
348ba57b12
Bump version to 1.8.1
2021-10-06 17:57:06 -07:00