Tyera Eulberg
5df386ae0e
Bump version to v1.6.28 ( #20300 )
2021-09-28 20:23:27 +00:00
Tyera Eulberg
c5d174c170
Use single feature ( #20289 )
2021-09-28 04:30:11 -06:00
Tyera Eulberg
9b6ec0b6d5
v1.6: Restore ability for programs to upgrade themselves ( #20263 )
...
* Make helper associated fn
* Add feature definition
* Restore program-id write lock when upgradeable loader is present; restore bpf upgrade-self test
* Remove spurious comment
2021-09-27 22:29:59 +00:00
sakridge
8bf5cdb349
bump 1.6 version ( #19988 )
2021-09-18 00:09:39 +00:00
Michael Vines
ca55bce522
Bump version to 1.6.26 ( #19894 )
2021-09-14 23:29:33 -06:00
Tyera Eulberg
7232b01a02
Bump version to v1.6.25 ( #19880 )
2021-09-14 20:33:13 +00:00
Tyera Eulberg
a4ebbc9f55
Remove demote_program_write_locks feature ( #19877 )
...
* Remove demote_program_write_locks feature
* Update test
2021-09-14 12:25:42 -06:00
Stephen Akridge
d401c3f5ab
Bump version
2021-09-14 08:12:02 -07:00
mergify[bot]
53f8e58300
Demote write locks on transaction program ids (backport #19593 ) (backport #19633 ) ( #19637 )
...
* Demote write locks on transaction program ids (backport #19593 ) (#19633 )
* Demote write locks on transaction program ids (#19593 )
* Add feature
* Demote write lock on program ids
* Fixup bpf tests
* Update MappedMessage::is_writable
* Comma nit
* Review comments
(cherry picked from commit decec3cd8b
)
# Conflicts:
# core/src/banking_stage.rs
# core/src/cost_model.rs
# core/src/cost_tracker.rs
# ledger-tool/src/main.rs
# program-runtime/src/instruction_processor.rs
# programs/bpf/tests/programs.rs
# programs/bpf_loader/src/syscalls.rs
# rpc/src/transaction_status_service.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
# sdk/benches/serialize_instructions.rs
# sdk/program/src/message/mapped.rs
# sdk/program/src/message/sanitized.rs
# sdk/src/transaction/sanitized.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit fcda5d4a7d
)
# Conflicts:
# cli-output/src/display.rs
# core/src/transaction_status_service.rs
# program-test/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
# sdk/benches/serialize_instructions.rs
# sdk/program/src/message.rs
# sdk/src/feature_set.rs
# transaction-status/src/parse_accounts.rs
* Replace feature and fix conflicts
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-09-04 09:10:57 +00:00
sakridge
715c5e64c4
Bump version to 1.6.23 ( #19447 )
2021-08-26 18:09:15 +00:00
Trent Nelson
011fe72aa2
Bump version to v1.6.22
2021-08-18 22:08:12 -06:00
Tyera Eulberg
4d77ac1688
Bump version to v1.6.21 ( #18953 )
2021-07-28 23:47:03 +00:00
Jon Cinque
ba8426e0fd
1.6: Bump crates to 1.6.20 ( #18805 )
2021-07-21 17:44:41 +02:00
Trent Nelson
d7b381c90c
Bump version to v1.6.19
2021-07-17 08:57:44 +00:00
Trent Nelson
3dbdaa5341
Bump version to v1.6.18
2021-07-16 09:57:58 +00:00
sakridge
06b1c980d4
Bump version to v1.6.17 ( #18393 )
2021-07-02 19:40:37 +00:00
Trent Nelson
31dc79a4f9
Bump version to v1.6.16
2021-06-30 22:53:51 -06:00
Trent Nelson
06d6e357ae
Bump version to v1.6.15 ( #18108 )
2021-06-21 14:23:43 -06:00
Tyera Eulberg
1201ef172e
Bump version to v1.6.14 ( #18050 )
2021-06-17 20:42:10 +00:00
Ryo Onodera
337de51088
Bump version to v1.6.13 ( #17972 )
2021-06-15 23:47:22 +09:00
mergify[bot]
a29344e681
Document ProgramTest::new and fix ProgramTest::add_program ( #17754 ) ( #17767 )
...
* document ProgramTest::new
* simplify ProgramTest::new doc-string
* make ProgramTest::add_program noisier
`add_program` (and `new`, implicitly) now prints a warning when the user
supplies a bogus program name to a ProgramTest and invokes `test-bpf`.
Additionally, it is now impossible to ask for a regular `test` and for
the generated ProgramTest to load BPF code instead of native code.
Previously, this was caused by a precedence issue: BPF code would always
be preferred over native if the program name was valid, regardless of
user choice.
(cherry picked from commit 2aaf55795f
)
Co-authored-by: xuoe <alex@psi.io >
2021-06-06 05:56:24 +00:00
Tyera Eulberg
3a3454d788
Bump version to v1.6.12 ( #17651 )
2021-06-01 21:40:36 -06:00
Tyera Eulberg
ae1687bc0a
Bump version to v1.6.11 ( #17484 )
2021-05-25 15:35:50 -06:00
Tyera Eulberg
409ac4dcfa
Bump version to v1.6.10 ( #17250 )
2021-05-15 01:47:56 +00:00
Michael Vines
65e1b881f9
Bump version to v1.6.9
2021-05-08 06:28:08 +00:00
Michael Vines
524b380a71
Bump version to 1.6.8
2021-05-04 12:46:57 -07:00
Sebastian.Bor
ebb5fc1285
chore: conflate use statement
...
(cherry picked from commit 6d11d5dd9f
)
2021-05-04 10:28:45 -07:00
Sebastian.Bor
4cfb3dcc7b
fix: add bpf_loader_upgradeable to ProgramTest default builtins
...
(cherry picked from commit 4ede5117f9
)
2021-05-04 10:28:45 -07:00
mergify[bot]
5f5fa38d85
program-test: Add large bootstrap stake for realistic warmups (backport #16739 ) ( #16741 )
...
* program-test: Add large bootstrap stake for realistic warmups (#16739 )
(cherry picked from commit f4214637a9
)
# Conflicts:
# program-test/Cargo.toml
* Fix merge conflict
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-04-22 23:07:52 +00:00
Michael Vines
f59d4f29d9
clippy
2021-04-19 04:12:16 +00:00
Trent Nelson
4e94446fc3
Bump version to v1.6.7
2021-04-16 23:31:30 +00:00
Michael Vines
4ef3a679a4
Bump version to v1.6.6
2021-04-14 10:27:02 -07:00
mergify[bot]
6da4bec41d
Return sysvars via syscalls (bp #16422 ) ( #16497 )
...
* Return sysvars via syscalls (#16422 )
(cherry picked from commit fa83f3bd73
)
* bad merge
* Fix branch diffs
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-04-14 05:33:27 +00:00
mergify[bot]
ec8ba76e4d
Fix account copy step in program test message processor ( #16469 ) ( #16472 )
...
(cherry picked from commit 278c125d99
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-04-11 20:31:22 +08:00
Michael Vines
270749185c
Adjust tokio version to just "1"
...
(cherry picked from commit 43feef7362
)
# Conflicts:
# faucet/Cargo.toml
# net-utils/Cargo.toml
2021-04-05 14:02:34 -07:00
Tyera Eulberg
5da83c1491
Bump version to v1.6.5 ( #16361 )
2021-04-04 22:00:40 -06:00
sakridge
a788021181
Bump version to v1.6.4 ( #16345 )
2021-04-04 13:31:35 -07:00
mergify[bot]
8fd3465f8a
Cleanup use (bp #16327 ) ( #16328 )
...
* Cleanup use (#16327 )
(cherry picked from commit dee655df35
)
# Conflicts:
# Cargo.lock
# program-test/Cargo.toml
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-04-02 19:54:00 +00:00
mergify[bot]
b8198f8cc5
removes OrderedIterator and transaction batch iteration order ( #16153 ) ( #16285 )
...
In TransactionBatch,
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/transaction_batch.rs#L4-L11
lock_results[i] is aligned with transactions[iteration_order[i]]:
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/bank.rs#L2414-L2424
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/accounts.rs#L788-L817
However load_and_execute_transactions is iterating over
lock_results[iteration_order[i]]
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/bank.rs#L2878-L2889
and then returning i as for the index of the retryable transaction.
If iteratorion_order is [1, 2, 0], and i is 0, then:
lock_results[iteration_order[i]] = lock_results[1]
which corresponds to
transactions[iteration_order[1]] = transactions[2]
so neither i = 0, nor iteration_order[i] = 1 gives the correct index for the
corresponding transaction (which is 2).
This commit removes OrderedIterator and transaction batch iteration order
entirely. There is only one place in blockstore processor which the
iteration order is not ordinal:
https://github.com/solana-labs/solana/blob/e50f59844/ledger/src/blockstore_processor.rs#L269-L271
It seems like, instead of using an iteration order, that can shuffle entry
transactions in-place.
(cherry picked from commit 3f63ed9a72
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-04-01 01:28:01 +00:00
mergify[bot]
20754a7115
Drop write lock on sysvars ( #15497 ) ( #16233 )
...
* Drop write lock on sysvars
* adds env var for demoting sysvar write lock demotion
* moves demote logic to is_writable
* feature gates sysvar write lock demotion
* adds builtins to write lock demotion
* adds system program id to builtins
* adds Feature111...
* adds an abi-freeze test
* mvines set of builtin program keys
Co-authored-by: Michael Vines <mvines@gmail.com >
* update tests
* adds bpf loader keys
* Add test sysvar
* Plumb demote_sysvar to is_writable
* more plumbing of demote_sysvar_write_locks to is_writable
* patches test_program_bpf_instruction_introspection
* hard codes demote_sysvar_write_locks to false for serialization/encoding methods
* Revert "hard codes demote_sysvar_write_locks to false for serialization/encoding methods"
This reverts commit ae3e2d2e777437bddd753933097a210dcbc1b1fc.
* change the hardcoded ones to demote_sysvar_write_locks=true
* Use data_as_mut_slice
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 54c68ea83f
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-03-31 20:23:20 +00:00
mergify[bot]
3157b464c4
Align ProcessInstruction error handling ( #16232 ) ( #16238 )
...
(cherry picked from commit ce7f7c2b6c
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-30 21:55:08 +00:00
Trent Nelson
634959b3ab
Bump version to v1.6.3
2021-03-30 16:17:47 +00:00
Trent Nelson
03b21f2e9d
Bump version to v1.6.2
2021-03-30 00:06:01 -06:00
mergify[bot]
bd48344de2
Fix handling of invoked ix accounts in program-test ( #16170 ) ( #16176 )
...
(cherry picked from commit 27ab415ecc
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-03-29 01:55:11 +00:00
mergify[bot]
4e3f2c3d2d
program-test: Fix warp and staking issue ( #16002 ) ( #16031 )
...
Since program-test creates a test genesis and then adds fees and rent,
some of the genesis accounts get rent-collected after warping. Most
notably, `StakeConfig` gets rent-collected, causing any stake operations
to fail after warp. This fix creates genesis with the `Rent` and
`FeeRateGovernor` actually used by the bank.
(cherry picked from commit 6cc22e62d4
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-03-19 14:54:58 +00:00
mergify[bot]
f5d56eabf3
Build full SPL in CI (bp #15886 ) ( #15964 )
...
* Build full SPL in CI
(cherry picked from commit 82269f1351
)
* Avoid changing signature of ProgramTest::add_account
(cherry picked from commit 03180b502d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-17 22:46:55 +00:00
Michael Vines
b1a90c3580
=1.6.1
2021-03-16 08:41:28 +00:00
Michael Vines
87963764fa
Export tokio for program-test clients
...
(cherry picked from commit 430ed6d774
)
2021-03-15 22:14:17 -07:00
Michael Vines
be00246fb5
Bump version to v1.6.1
2021-03-15 14:47:58 -06:00
Jeff Washington (jwash)
952c3bcbb7
AccountSharedData construction ( #15790 )
2021-03-11 18:09:04 -06:00