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
Jeff Washington (jwash)
3419a5446e
AccountSharedData.set_data ( #15781 )
...
* account.set_data and resize_data
* remove data_resize
2021-03-11 16:40:45 -06:00
Jack May
478518308d
Share RO and Executable accounts within invocations ( #15799 )
2021-03-10 23:04:00 -08:00
Jeff Washington (jwash)
52e54e1100
account.data -> data() ( #15778 )
2021-03-09 22:31:33 +00:00
Jeff Washington (jwash)
8a3135d17b
Account->AccountSharedData ( #15691 )
2021-03-09 15:06:07 -06:00
Jack May
b53cb8eb2d
Deprecate Instruction::new ( #15695 )
2021-03-04 05:46:48 +00:00
Jack May
3cd00965a7
Enable BPF program instruction traces ( #15613 )
2021-03-01 23:11:58 -08:00
Michael Vines
5df36aec7d
Pacify clippy
2021-02-19 20:08:41 -08:00
Michael Vines
995bd0cb6b
Rename IOError to BorshIoError
2021-02-19 10:54:39 -08:00
Justin Starry
7b67a6d208
Load memo v2 into genesis for test validator ( #15425 )
...
* Load memo v2 into genesis for test validator
* feedback
* versions
* remove .so
* add .so
2021-02-19 15:59:31 +08:00
Jon Cinque
0f6f6080f3
sdk: Add Borsh support for types and utilities ( #15290 )
...
* sdk: Add Borsh to Pubkey
* Add serialization error for easier borsh integration
* Add Borsh usage to banks-client and sdk
* Rename SerializationError -> IOError
* Add new errors to proto
* Update Cargo lock
* Update Cargo.lock based on CI
* Clippy
* Update ABI on bank
* Address review feedback
* Update sanity program instruction count test
2021-02-18 11:14:56 +01:00
Trent Nelson
7f7370c306
Re-allow clippy::integer_arithmetic at crate-level
2021-02-17 13:55:08 -07:00
Michael Vines
aa97da2146
Upgrade to SPL Token 3.1.0 program binary
2021-02-12 21:57:53 +00:00
Jon Cinque
c5be226821
program-test: Add warp tests for rent and stake rewards ( #15136 )
...
* program-test Add rent collection and stake rewards
* Improve tests to initialize vote state
* Update comment
* Update program-test/src/lib.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
* Review feedback
* cargo fmt
* Avoid using hard-coded slots in tests
* Make genesis_config private
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-02-05 22:08:00 +01:00
Tyera Eulberg
d1563f0ccd
Bump tonic, prost, tarpc, tokio ( #15013 )
...
* Update tonic & prost, and regenerate proto
* Reignore doc code
* Revert pull #14367 , but pin tokio to v0.2 for jsonrpc
* Bump backoff and goauth -> and therefore tokio
* Bump tokio in faucet, net-utils
* Bump remaining tokio, plus tarpc
2021-02-05 00:21:53 -07:00
Jon Cinque
8e93a784f3
program-test: Add ability to warp to the future ( #14998 )
...
* program-test: Add ability to warp to the future
* Make `start_local_server` take by value
* Remove clear_invoke_context
2021-02-03 23:31:36 +01:00
Jon Cinque
4324374ab5
program-test: Set context without panic ( #14997 )
...
* program-test: Fix CPI and multiple instructions
* Whitespace
* Add CPI test in program-test
2021-02-03 13:45:29 +01:00
Jon Cinque
0ce08274f9
program-test: Expose bank task to fix fuzzing ( #14908 )
...
* program-test: Expose bank task to fix fuzzing
* Run cargo fmt and clippy
* Remove unnecessary print in test
* Review feedback
* Transition to AtomicBool
2021-01-29 14:23:59 +01:00
Jack May
77572a7c53
Track account writable deescalation ( #14626 )
2021-01-22 15:28:01 -08:00
Jack May
0d29f9e82c
Fix program-test's CPI support ( #14594 )
...
* Fix program-test's CPI support
* feedback
2021-01-15 03:27:37 +00:00
sakridge
907f518f6d
Add load/execute/store timings ( #14561 )
2021-01-14 14:14:16 -08:00
Michael Vines
e5bd9ee0ff
Require tokio 0.3.5
2020-12-31 06:26:53 +00:00
Michael Vines
1e977ac025
Bump version to v1.6.0
2020-12-15 18:28:04 +00:00
Michael Vines
7143aaa89b
Clippy
2020-12-14 08:03:29 -08:00
Michael Vines
9f2d154588
Rework TestValidator API to be more like ProgramTest
2020-12-13 07:45:55 +00:00
dependabot[bot]
88d950e5a8
chore: bump log from 0.4.8 to 0.4.11 ( #13691 )
...
* chore: bump log from 0.4.8 to 0.4.11
Bumps [log](https://github.com/rust-lang/log ) from 0.4.8 to 0.4.11.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.8...0.4.11 )
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
2020-12-13 13:48:23 +09:00