mergify[bot]
e4068cb1bc
SPL token balance in transaction metadata (bp #13673 ) ( #14752 )
...
* SPL token balance in transaction metadata (#13673 )
* feat: store pre / post token balances
* move helper functions into separate include
* move token balance functionality to transaction-status crate
* fix blockstore processor test
* fix bigtable legacy test
* add caching to decimals
(cherry picked from commit 13db3eca9f
)
# Conflicts:
# core/src/banking_stage.rs
# storage-proto/Cargo.toml
# storage-proto/src/convert.rs
* resolve merges storage-proto banking_stage
* fix bpf tests with token deltas
Co-authored-by: Josh <josh.hundley@gmail.com >
2021-01-22 02:58:51 +00:00
mergify[bot]
47cf0726f9
Add signer/writable de/escalation tests (bp #14726 ) ( #14738 )
...
* Add signer/writable de/escalation tests (#14726 )
(cherry picked from commit aa96ad042b
)
# Conflicts:
# programs/bpf/tests/programs.rs
* resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-01-21 21:35:58 +00:00
mergify[bot]
53ea18d3b3
Add block_time to getConfirmedSignaturesForAddress2 and getConfirmedTransaction (bp #14572 ) ( #14727 )
...
* Add block_time to getConfirmedSignaturesForAddress2 and getConfirmedTransaction (#14572 )
* add block_time to get_confirmed_signatures_for_address2 and protobuf implementation for tx_by_addr
* add tests for convert
* update cargo lock
* run cargo format after rebase
* introduce legacy TransactionByAddrInfo
* move LegacyTransactionByAddrInfo back to storage-bigtable
(cherry picked from commit 1de6d28eaf
)
# Conflicts:
# storage-proto/src/convert.rs
* merge storage proto convert
* fix bpf test for ConfirmedTransaction
Co-authored-by: Josh <josh.hundley@gmail.com >
2021-01-21 17:19:30 +00:00
mergify[bot]
540e23c987
Prevent the invoke and upgrade of programs in the same tx batch (bp #14653 ) ( #14679 )
...
* Prevent the invoke and upgrade of programs in the same tx batch (#14653 )
* Prevent the invoke and upgrade of programs in the same tx batch
* Pass program address as writable in the upgrade instruction
(cherry picked from commit e3bd9e5300
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/Cargo.toml
# programs/bpf/tests/programs.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-19 18:28:23 -08:00
mergify[bot]
b064956e20
Add load/execute/store timings ( #14561 ) ( #14590 )
...
Co-authored-by: sakridge <sakridge@gmail.com >
2021-01-15 21:13:09 +00:00
mergify[bot]
667402531f
Bail on all CPI errors (bp #14500 ) ( #14506 )
...
* Bail on all CPI errors (#14500 )
* Bail on all CPI errors
* whitespace
(cherry picked from commit ec48631fc5
)
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-10 06:27:27 +00:00
mergify[bot]
463e377ccc
Enable program upgrades via CPI ( #14449 ) ( #14502 )
...
(cherry picked from commit 5eacc5d08d
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-09 01:30:42 +00:00
mergify[bot]
6960eed856
Upgradeable programs needs program account's program id (bp #14417 ) ( #14419 )
...
* Upgradeable programs needs program account's address as program id (#14417 )
(cherry picked from commit 0619805806
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-05 00:42:20 +00:00
mergify[bot]
b88c56cd36
Limit CPI instruction size (bp #14317 ) ( #14354 )
...
* Limit CPI instruction size (#14317 )
(cherry picked from commit 5524938a50
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 20:23:52 +00:00
mergify[bot]
cfb28a1b2e
Prevent bpf loader impersonators (bp #14278 ) ( #14353 )
...
* Prevent bpf loader impersonators (#14278 )
(cherry picked from commit ee0a80a092
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
# runtime/src/message_processor.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 20:10:13 +00:00
mergify[bot]
4e6e415e40
Upgradeable programs called same as non-upgradeable ( #14239 ) ( #14347 )
...
* Upgradeable programs called same as non-upgradeable
* nudge
(cherry picked from commit ab205b682a
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 06:53:16 +00:00
mergify[bot]
7eb5db98cf
Limit CPI from calling loader or native programs ( #14252 ) ( #14319 )
...
(cherry picked from commit 0b479ab180
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 06:39:22 +00:00
mergify[bot]
cd5bb89a15
Add Program loader/environment instruction errors (bp #14120 ) ( #14333 )
...
* Add Program loader/environment instruction errors (#14120 )
(cherry picked from commit d513b0c4ca
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* resolve conflicts
* update error
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 01:19:02 +00:00
mergify[bot]
403220a559
Add CPI support for upgradeable loader (bp #14193 ) ( #14335 )
...
* Add CPI support for upgradeable loader (#14193 )
(cherry picked from commit e8cc0bef6c
)
* update crate version
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 23:05:40 +00:00
mergify[bot]
ebfbe5ed8a
Fix program account rent exemption ( #14176 ) ( #14334 )
...
(cherry picked from commit 593ad80954
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 22:32:32 +00:00
mergify[bot]
db55eead5c
Upgradeable loader (bp #13689 ) ( #14318 )
...
* Upgradeable loader (#13689 )
(cherry picked from commit 9e90394583
)
# Conflicts:
# cli/src/cli.rs
# ledger/src/builtins.rs
# programs/bpf_loader/src/lib.rs
# sdk/src/feature_set.rs
* fix conflits
* fix commitment
* fix local cluster test
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 20:01:17 +00:00
mergify[bot]
e91b124cd9
check for resize access violations (bp #14142 ) ( #14151 )
...
* check for resize access violations (#14142 )
(cherry picked from commit 025f886e10
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-16 12:20:52 +00:00
mergify[bot]
c01bff61f8
Fix priv escalation test ( #14046 ) ( #14049 )
...
(cherry picked from commit 5ea80e673f
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-11 00:08:21 +00:00
mergify[bot]
f52feddfcd
Cap CPI signers (bp #14021 ) ( #14023 )
...
* Cap CPI signers (#14021 )
(cherry picked from commit e1a4251b07
)
# Conflicts:
# programs/bpf/tests/programs.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-09 11:46:46 +00:00
mergify[bot]
a46d14a2d7
Don't use stale executor cache (bp #13966 ) ( #13969 )
...
* Don't use stale executor cache (#13966 )
(cherry picked from commit 882d033233
)
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-09 09:11:31 +00:00
Jack May
be0f9d4837
Bump rust-sysroot to v0.13 ( #14001 )
2020-12-07 13:26:12 -08:00
Jack May
0f3705340b
Cap seeds not signers ( #13943 )
2020-12-03 11:46:34 -08:00
mergify[bot]
f705340971
Invoke with empty account slice (bp #13931 ) ( #13940 )
...
* Invoke with empty account slice (#13931 )
(cherry picked from commit 1c51711c75
)
* nudge ci
Co-authored-by: Jack May <jack@solana.com >
2020-12-03 09:52:08 -08:00
mergify[bot]
501fea7a3c
Translate data length and owner as writable (bp #13914 ) ( #13918 )
...
* Translate data length and owner as writable (#13914 )
(cherry picked from commit 85bec37be4
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
* Resolve conflicts
* nudge
* fmt funk
* ugh
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-12-02 19:28:15 +00:00
mergify[bot]
01d9062f7b
Check that the program was granted access to program_id (bp #13890 ) ( #13893 )
...
* Check that the program was granted access to program_id (#13890 )
(cherry picked from commit 733fcbaa6c
)
# Conflicts:
# programs/bpf/Cargo.toml
# programs/bpf/tests/programs.rs
* Resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-01 17:49:17 +00:00
mergify[bot]
4e4fd03b65
Add builtin mem tests (bp #13429 ) ( #13437 )
...
* Add builtin mem tests (#13429 )
(cherry picked from commit 84b139cc94
)
* resolve crate version
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-11-07 01:15:35 +00:00
mergify[bot]
3b2bdd9f8a
Fix duplicate records of inner instructions ( #13380 ) ( #13413 )
...
* Fix duplicate records of inner instructions
* fix tests
* fix clippy
* Remove bad_inner_instructions
(cherry picked from commit c24fbb6f8b
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-11-06 01:30:24 +00:00
mergify[bot]
40a3885d3b
Native/builtin programs now receive an InvokeContext (bp #13286 ) ( #13298 )
...
* Native/builtin programs now receive an InvokeContext
(cherry picked from commit df8dab9d2b
)
* Remove MessageProcessor::loaders
(cherry picked from commit 2664a1f7ef
)
* Remove Entrypoint type
(cherry picked from commit 225bed11c7
)
* Remove programs clone()
(cherry picked from commit 33884d847a
)
* Add sol_log_compute_units syscall
(cherry picked from commit 66e51a7363
)
* Add Bank::set_bpf_compute_budget()
(cherry picked from commit 7d686b72a0
)
* Rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-30 07:47:17 +00:00
Alexander Meißner
36b7c2ea97
Refactors the common code of test and bench targets into the solana_runtime::bpf_test_utils module. ( #13203 )
...
(cherry picked from commit 65ee3a6bdd
)
2020-10-29 22:03:09 -07:00
mergify[bot]
4ecb78d303
Move KeyedAccount out of solana-program. Native programs are not supported by solana-program (bp #13159 ) ( #13181 )
...
* Move KeyedAccount out of solana-program. Native programs are not supported by solana-program
(cherry picked from commit 1b343665a1
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-27 05:43:14 +00:00
mergify[bot]
dd33aae3cf
Add --bpf-out-dir argument to control where the final build products land ( #13099 )
...
(cherry picked from commit b169d9cfbe
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-23 07:56:35 +00:00
mergify[bot]
edfbd8d65a
Add replacements for Pubkey::new_rand()/Hash::new_rand() (bp #12987 ) ( #13076 )
...
* Add pubkey_new_rand(), mark Pubkey::new_rand() deprecated
(cherry picked from commit 0e68ed6a8d
)
* Add hash_new_rand(), mark Hash::new_rand() as deprecated
(cherry picked from commit 76f11c7dae
)
* Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand`
(cherry picked from commit 7bc073defe
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
# runtime/benches/accounts.rs
# runtime/src/accounts.rs
* Run `codemod --extensions rs Hash::new_rand solana_sdk:#️⃣ :new_rand`
(cherry picked from commit 17c391121a
)
* Remove unused pubkey::Pubkey imports
(cherry picked from commit 959880db60
)
# Conflicts:
# runtime/src/accounts_index.rs
* Resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-22 05:08:01 +00:00
mergify[bot]
bc96332899
Respect RefCell when calling invoke ( #12858 ) ( #12891 )
...
* Respect RefCell when calling invoke
* nudge
(cherry picked from commit 969f7b015b
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-15 02:15:36 +00:00
mergify[bot]
3d8ccbc079
terminology update, nonce to bump seed ( #12840 ) ( #12851 )
...
(cherry picked from commit 56211378d3
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-13 18:31:48 +00:00
mergify[bot]
7a1889aaf9
Add adjustable stack size and call depth (bp #12728 ) ( #12770 )
...
* Add adjustable stack size and call depth (#12728 )
(cherry picked from commit c3907be623
)
# Conflicts:
# programs/bpf/Cargo.toml
# programs/bpf_loader/Cargo.toml
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-09 22:08:01 +00:00
mergify[bot]
4b9f2e987a
Bump max invoke depth to 4 ( #12742 ) ( #12764 )
...
(cherry picked from commit 2cd7cd3149
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-09 18:49:44 +00:00
mergify[bot]
7a53ca18a6
Store program logs in blockstore / bigtable (TransactionWithStatusMeta) ( #12678 ) ( #12735 )
...
* introduce store program logs in blockstore / bigtable
* fix test, transaction logs created for successful transactions
* fix test for legacy bincode implementation around log_messages
* only api nodes should record logs
* truncate transaction logs to 100KB
* refactor log truncate for improved coverage
(cherry picked from commit 8f5431551e
)
Co-authored-by: Josh <josh.hundley@gmail.com >
2020-10-08 20:19:26 +00:00
Jack May
973f0965e1
Add ristretto multiply syscall ( #12699 )
2020-10-06 23:52:13 -07:00
Jack May
630eb3b907
Local program allocator ( #12679 )
2020-10-06 11:03:51 -07:00
Jack May
d0aa8a6446
Fix zero-len slice translations ( #12642 )
2020-10-02 17:45:39 -07:00
Jack May
adeb06e550
Check CPI program is executable ( #12644 )
2020-10-02 13:55:22 -07:00
Jack May
058bca6632
add sha256 syscall ( #12569 )
2020-09-29 23:29:20 -07:00
Jack May
777342a1ef
Add rand dependency test ( #12566 )
...
* Add rand dependency test
* nudge
2020-09-30 00:25:51 +00:00
Jack May
74fcb184b2
Pipe FeatureSet though InvokeContext ( #12536 )
...
* Pipe FeatureSet though InvokeContext
* gate program size cap
* nit
2020-09-29 21:36:30 +00:00
Jack May
2ff983647f
Move process_instruction defs to runtime ( #12507 )
2020-09-29 01:36:46 -07:00
Michael Vines
aa5c008fa8
Add pico-inflation feature
2020-09-28 08:25:00 -07:00
Jack May
7c4822efb1
Nit: bpf test cleanup ( #12401 )
2020-09-25 17:02:48 -07:00
Jack May
d326512121
Add ComputeBudget tuner ( #12476 )
2020-09-25 09:01:22 -07:00
Justin Starry
6601ec8f26
Record and store invoked instructions in transaction meta ( #12311 )
...
* Record invoked instructions and store in transaction meta
* Enable cpi recording if transaction sender is some
* Rename invoked to innerInstructions
2020-09-24 22:36:22 +08:00
sakridge
f561eb917f
Add way to look at tx instructions ( #11943 )
2020-09-19 12:17:46 -07:00