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
c6141925a9
Revert "Bumps solana_rbpf to v0.2.16 ( #21492 )"
...
This reverts commit f04e06e0c2
.
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
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
f04e06e0c2
Bumps solana_rbpf to v0.2.16 ( #21492 )
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
Alexander Meißner
765fbc9a8c
Bump solana_rbpf to version 0.2.13 ( #18068 )
...
* Moves syscall_registry into the rbpf Executable constructor.
* Adds the reject_unresolved_syscalls flag which is only set when deploying programs via the CLI.
2021-12-04 00:41:04 -07:00
Alexander Meißner
231a3bda8e
Bump solana_rbpf to version 0.2.12 ( #17585 )
...
Unify BPF verifiers.
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
Alexander Meißner
318d26f0ff
Reverts #21302 ( #21320 )
2021-11-17 10:31:07 +01:00
mergify[bot]
baa4c6eaf2
Bump solana_rbpf to version 0.2.13 ( #18068 ) ( #21302 )
...
* Moves syscall_registry into the rbpf Executable constructor.
* Adds the reject_unresolved_syscalls flag which is only set when deploying programs via the CLI.
(cherry picked from commit 8d5c04e257
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-11-17 01:23:15 +00: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
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]
07b71329a7
Update feature switch for reduced required deploy balance (backport #19999 ) ( #20012 )
...
* Update feature switch for reduced required deploy balance (#19999 )
(cherry picked from commit ea34eb8a4b
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* fix conflict
Co-authored-by: Justin Starry <justin@solana.com >
2021-09-19 23:17:59 +00:00
mergify[bot]
d0143dad8f
Reduce payer balance needed to deploy programs (backport #19645 ) ( #19998 )
...
* Reduce payer balance needed to deploy programs (#19645 )
* Reduce payer balance needed to deploy programs
* Fix test and unbalanced ix error
* fix test
* fix up tests
(cherry picked from commit efd024510a
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* fix conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-09-18 04:46:42 +00:00
mergify[bot]
37ee47c3e6
Add executor using the program's id during deploy ( #19555 ) ( #19572 )
...
(cherry picked from commit 622a6fba7f
)
Co-authored-by: Jack May <jack@solana.com >
2021-09-02 03:04:13 +00:00
mergify[bot]
bdb77b0c98
Add missing owner check to bpf loader close ix ( #19460 ) ( #19470 )
...
(cherry picked from commit 4305d4b7b1
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-08-27 10:19:14 -06:00
mergify[bot]
58bef3a94b
Allow closing upgradeable program accounts (backport #19319 ) ( #19411 )
...
* Allow closing upgradeable program accounts (#19319 )
(cherry picked from commit a89f180145
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
Co-authored-by: Justin Starry <justin@solana.com >
2021-08-27 08:56:51 +00:00
Ryo Onodera
c2320fceab
Remove sysvar special cases for rent and assign
2021-07-10 01:24:44 +09:00
mergify[bot]
8b87d86358
Bump compute budget for neon evm ( #17700 ) ( #18522 )
...
(cherry picked from commit 2867584985
)
Co-authored-by: Jack May <jack@solana.com >
2021-07-09 09:12:31 -07:00
Trent Nelson
fcabaa7eff
sdk: refactor pda generation
2021-06-22 11:36:05 -06:00
mergify[bot]
0e7512a225
Fix Nightly Clippy Warnings (backport #18065 ) ( #18070 )
...
* chore: cargo +nightly clippy --fix -Z unstable-options
(cherry picked from commit 6514096a67
)
# Conflicts:
# core/src/banking_stage.rs
# core/src/cost_model.rs
# core/src/cost_tracker.rs
# core/src/execute_cost_table.rs
# core/src/replay_stage.rs
# core/src/tvu.rs
# ledger-tool/src/main.rs
# programs/bpf_loader/build.rs
# rbpf-cli/src/main.rs
# sdk/cargo-build-bpf/src/main.rs
# sdk/cargo-test-bpf/src/main.rs
# sdk/src/secp256k1_instruction.rs
* chore: cargo fmt
(cherry picked from commit 789f33e8db
)
* Updates BPF program assert_instruction_count tests.
(cherry picked from commit c1e03f3410
)
# Conflicts:
# programs/bpf/tests/programs.rs
* Resolve conflicts
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-06-18 20:02:48 +00:00
mergify[bot]
498bf911eb
Add missing ProgramError to InstructionError mappings ( #16231 ) ( #17723 )
...
* Add missing ProgramError to InstructionError mappings
* add note
* Clarify process of adding new program error
(cherry picked from commit 83b9a046d1
)
Co-authored-by: Jack May <jack@solana.com >
2021-06-04 00:25:25 +00:00
mergify[bot]
2f7f243022
Always bail if program modifies a ro account (backport #17569 ) ( #17584 )
...
* Always bail if program modifies a ro account (#17569 )
(cherry picked from commit a3240aebde
)
* resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-05-28 20:34:10 +00:00
Dmitri Makarov
85b647d80f
Bump solana_rbpf to version 0.2.11 ( #17404 )
2021-05-25 08:05:35 +00:00
Alexander Meißner
855ae79598
Fix InvokeContext::push() account_deps ( #17350 )
...
* Reverts aliasing of account_deps with the previous invocation stack frame in InvokeContext::push().
* Adds explicit assert of programdata account content in test_program_bpf_upgrade_via_cpi.
2021-05-21 22:34:07 +02:00
Jack May
477898f682
Optimize aligned memory used by the runtime ( #17324 )
2021-05-19 13:43:59 -07:00
Jeff Washington (jwash)
541aa5ad85
tests: lamports -> lamports() ( #16982 )
2021-05-03 10:45:54 -05:00
Jeff Washington (jwash)
763c04adf3
lamports = -> .set_lamports() ( #16980 )
2021-04-30 21:17:05 +00:00
Jeff Washington (jwash)
ac87bc40ca
tests: .lamports -> .lamports() ( #16976 )
2021-04-30 18:16:58 +00:00
Jeff Washington (jwash)
59e19828ea
set_lamports() ( #16914 )
2021-04-29 10:43:26 -05:00
Jeff Washington (jwash)
a7a671b3aa
AccountSharedData.set_executable() ( #16881 )
2021-04-28 14:07:43 +00:00
Jeff Washington (jwash)
2021255f91
executable() ( #16880 )
2021-04-28 08:53:54 -05:00
Jeff Washington (jwash)
69bfbf9e98
AccountSharedData.set_executable ( #16836 )
2021-04-27 09:56:50 -05:00
Jeff Washington (jwash)
4e7e675c07
lamports += -> checked_add_lamports ( #16791 )
2021-04-27 09:11:35 -05:00
Jeff Washington (jwash)
aeff911c93
owner -> owner() ( #16784 )
2021-04-26 10:40:11 -05:00
Jeff Washington (jwash)
1a4a7059af
owner -> owner() ( #16785 )
2021-04-23 15:59:13 -05:00
Jeff Washington (jwash)
fb0b76c1f3
account.owner = X -> account.set_owner(X) ( #16754 )
2021-04-23 12:34:22 -05:00
Jack May
08d5253651
Enforce host aligned memory for program regions ( #16590 )
2021-04-20 11:07:30 -07:00
Alexander Meißner
9dfcb921cf
Refactoring: Move KeyedAccounts to InvokeContext ( #15410 )
...
Collects all parametric occurrences and the construction of keyed_accounts and puts them into InvokeContext.
2021-04-19 18:48:48 +02:00
Michael Vines
a911ae00ba
clippy
2021-04-18 20:55:02 -07:00
Jack May
dee655df35
Cleanup use ( #16327 )
2021-04-02 08:54:09 -07:00
Jeff Washington (jwash)
66c42f62d8
make AccountSharedData.data private to abstract storage ( #16091 )
...
* format
* 2 more tests
* use
2021-03-25 11:04:20 -05:00
Ryo Onodera
6d5c6c17c5
Simplify account.rent_epoch handling for sysvar rent ( #16049 )
...
* Add some code for special local testing
* Add comment to store_account_and_update_capitalization
* Simplify account.rent_epoch handling for sysvar rent
* Introduce *_for_test functions
* Add deprecation messages to existing api
2021-03-25 15:23:20 +09:00
Jeff Washington (jwash)
2d24d13046
AccountsSharedData: data copy on write ( #15800 )
...
* Arc<AccountData>
* try custom serializer
* adapt test from Behzad's change
* clippy
* simplify serialization
* remove abi example derive
* refactor 'take'
* remove serialization
* remove serialize calls
* remove account_data
* remove intos
* remove left over file
2021-03-23 15:19:31 -05:00
Jeff Washington (jwash)
64429104b1
account data.fill replacement ( #16037 )
2021-03-19 15:13:20 -05:00
Jack May
7f500d610c
Add Close instrruction and tooling to upgradeable loader ( #15887 )
2021-03-17 21:39:29 -07:00