Justin Starry
1430b58a6d
Remove deprecated slow epoch boundary methods ( #21568 )
2021-12-03 17:59:10 +00:00
Michael Vines
377efefead
Update OSX build to XCode 12
...
Vendored OpenSSL is failing to build on the Travis default OS X image
2021-12-03 09:26:34 -08:00
Michael Vines
b8837c04ec
Reformat imports to a consistent style for imports
...
rustfmt.toml configuration:
imports_granularity = "One"
group_imports = "One"
2021-12-03 09:19:13 -08:00
Brooks Prumo
0ef1b25e4b
Make StakeDelegations clone-on-write ( #21542 )
2021-12-03 08:54:38 -06:00
Alexander Meißner
1a4a039913
Adds feature reject_empty_instruction_without_program. ( #21591 )
2021-12-03 15:47:18 +01:00
Alexander Meißner
015250f96c
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-03 15:45:25 +01:00
Alexander Meißner
a9d5ef2055
Cleanup: InvokeContext accessors ( #21574 )
...
* Removes blockhash accessors from InvokeContext.
* Removes lamports_per_signature accessors from InvokeContext.
* Removes return_data accessors from InvokeContext.
* Removes feature_set accessor from InvokeContext.
* Removes instruction_recorders and instruction_index accessors from InvokeContext.
* Moves get_sysvars() into InvokeContext.
* Removes compute_meter parameter from InvokeContext::new().
* Removes InvokeContext::new_mock_with_sysvars_and_features().
* Removes InvokeContext::update_timing().
2021-12-03 12:15:22 +01:00
dependabot[bot]
dab0e8fdc7
chore:(deps): bump @metaplex/js from 4.5.1 to 4.6.0 in /explorer ( #21588 )
...
Bumps [@metaplex/js](https://github.com/metaplex/js ) from 4.5.1 to 4.6.0.
- [Release notes](https://github.com/metaplex/js/releases )
- [Changelog](https://github.com/metaplex/js/blob/main/CHANGELOG.md )
- [Commits](https://github.com/metaplex/js/compare/v4.5.1...v4.6.0 )
---
updated-dependencies:
- dependency-name: "@metaplex/js"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-03 09:09:10 +00:00
dependabot[bot]
70de8313df
chore:(deps): bump @blockworks-foundation/mango-client in /explorer ( #21587 )
...
Bumps [@blockworks-foundation/mango-client](https://github.com/blockworks-foundation/mango-client-v3 ) from 3.2.9 to 3.2.10.
- [Release notes](https://github.com/blockworks-foundation/mango-client-v3/releases )
- [Commits](https://github.com/blockworks-foundation/mango-client-v3/commits )
---
updated-dependencies:
- dependency-name: "@blockworks-foundation/mango-client"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-03 09:09:02 +00:00
dependabot[bot]
877a05ec19
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21586 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.556 to 0.2.588.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.556...v0.2.588 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-03 09:08:55 +00:00
Jarred Nicholls
18a16ad956
Support building solana-program on 32-bit architectures that do not ( #21577 )
...
have 64-bit atomics by using a Mutex<u64> on 32-bit architectures.
Currently the usage of atomics are only in functions that support
tests and benchmarks.
2021-12-03 01:18:21 +00:00
Michael Vines
1ae9cdcb43
RPC: Ensure innerInstructions/logMessages metadata is `null` when `--enable-cpi-and-log-storage` is disabled
2021-12-02 16:24:54 -08:00
Tyera Eulberg
2b269dbe0e
Ledger-tool: only require ledger dir when necessary ( #21575 )
...
* Don't canonicalize ledger_path unless ledger_path will be used
* Single use statement
2021-12-02 17:23:51 -07:00
Brooks Prumo
bdc33ba0a1
Remove unnecessary Option ( #21569 )
2021-12-02 20:19:22 +00:00
Tao Zhu
bf5b7f5d7f
report compute units without tx_wide_compute_cap feature enabled ( #21421 )
2021-12-02 12:14:57 -06:00
Jeff Washington (jwash)
f0b32b75ab
AcctIdx: use ZeroLamport trait ( #21552 )
2021-12-02 12:10:11 -06:00
Jeff Washington (jwash)
314605e149
AcctIdx: test cleanup ( #21550 )
2021-12-02 12:09:37 -06:00
behzad nouri
9886366977
exempts AccountsHashes from stake check ( #21565 )
...
Otherwise getHealth fails if account hashes are not propagated.
2021-12-02 18:01:32 +00:00
Jack May
976eb81d4f
Cleanup the bank's use of nonces ( #21246 )
2021-12-02 09:57:05 -08:00
Alexander Meißner
bfdb775ffc
Unifies ThisInvokeContext and dyn trait InvokeContext. ( #21563 )
2021-12-02 18:47:16 +01:00
Jeff Washington (jwash)
8dfa83c579
AcctIdx: minor code cleanup ( #21547 )
2021-12-02 11:05:54 -06:00
Anton Lazarev
6bb884836c
address review feedback - use u64 instead of usize
2021-12-02 08:12:30 -08:00
Anton Lazarev
adbf31b98c
avoid usize overflow for MAXIMUM_APPEND_VEC_FILE_SIZE on 32-bit platforms
2021-12-02 08:12:30 -08:00
Caio
d1d7182365
[sdk] Remove unused dependency
2021-12-02 08:03:56 -08:00
Anton Lazarev
3c8b33eaef
don't check x86 features on non-x86 architectures
2021-12-02 08:02:48 -08:00
Alexander Meißner
c825b0a84d
Fixes invoke_context.get_return_data() shadowing program_id. ( #21562 )
2021-12-02 13:12:11 +01:00
dependabot[bot]
8ba676e4c7
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21561 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.541 to 0.2.556.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.541...v0.2.556 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 09:09:51 +00:00
dependabot[bot]
a696afe08c
chore:(deps): bump @metaplex/js from 4.5.0 to 4.5.1 in /explorer ( #21560 )
...
Bumps [@metaplex/js](https://github.com/metaplex/js ) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/metaplex/js/releases )
- [Changelog](https://github.com/metaplex/js/blob/main/CHANGELOG.md )
- [Commits](https://github.com/metaplex/js/compare/v4.5.0...v4.5.1 )
---
updated-dependencies:
- dependency-name: "@metaplex/js"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 09:07:38 +00:00
Alexander Meißner
6330cbcf33
Refactor: Use InvokeContext in all Syscalls ( #21545 )
...
* Adds ComputeMeter::mock_set_remaining().
* Adds InvokeContext::get_loader()
* Adds a LogCollector to InvokeContext::new_mock().
* Adds "invoke_context: Rc<RefCell<&'a mut dyn InvokeContext>>,"
to all SyscallObjects.
* Adds LogCollector::get_recorded_content().
* Removes loader_id parameter from bind_syscall_context_objects() and create_vm().
2021-12-02 08:58:02 +01:00
Anton Lazarev
9079de825b
avoid using unavailable udp_socket optimizations on ios targets
2021-12-01 22:19:00 -08:00
Anton Lazarev
60fe1d00e8
Avoid using unavailable RTLD_NODELETE flag on Android targets
2021-12-01 22:13:44 -08:00
Trent Nelson
04c0f124c4
cli: always print feature version info with status query
2021-12-01 20:07:20 -07:00
Tyera Eulberg
0fc1c2e1fb
Add missing InstructionError::IllegalOwner conversion ( #21524 )
...
* Add missing InstructionError code
* Add test that will fail on missing conversion
* Move enum-iterator to dev-only
2021-12-01 16:28:50 -07:00
Jeff Washington (jwash)
c8a52337c8
AcctIdx: remove unused function ( #21546 )
2021-12-01 17:14:49 -06:00
Trent Nelson
1fae3d24de
bank: reuse last hash/fees helper to instatiate `InvokeContext`
2021-12-01 12:59:20 -07:00
Trent Nelson
91c6a10cda
bank: get hash and fee rate from the same source when storing accounts
2021-12-01 12:59:20 -07:00
Jeff Washington (jwash)
308d7d40d0
aggressively flush cache based on cache size ( #21332 )
...
* aggressively flush cache based on cache size
* find_older_frozen_slots -> cached_frozen_slots
* remove 'WRITE_CACHE_LIMIT_BYTES_DEFAULT'
* tweaks to stats
* fix tests
2021-12-01 13:10:48 -06:00
Jeff Washington (jwash)
1eefdeba85
AcctIdx: cleanup trait ( #21522 )
2021-12-01 12:19:06 -06:00
Jeff Washington (jwash)
f598ee696c
AcctIdx: disk bucket cleanup ( #21520 )
2021-12-01 12:17:32 -06:00
Lijun Wang
f5b0764795
Accountsdb plugin transaction part 4 -- postgres plugin implementations -- DB models ( #21407 )
...
AccountsDb plugin for transactions -- part 4 -- persisting to the Db.
1. DB models for transactions
2. Rust models for transactions
3. Transform from SDK models to rust db models
4. Unit tests
2021-12-01 09:23:26 -08:00
Michael Vines
3d21b062cc
Build openssl statically
2021-12-01 09:05:39 -08:00
Michael Vines
0212a71d3e
Remove unused bpfloader openssl dependency
2021-12-01 09:05:39 -08:00
Brooks Prumo
4a1ef12bd9
Refactor fns that calculate stake and voter balances ( #21529 )
2021-12-01 10:29:24 -06:00
Jeff Washington (jwash)
b108d7ddaa
AcctIdx: insert goes directly to disk to avoid unnecessary allocations ( #21490 )
...
* AcctIdx: upsert avoids unnecessary allocation (during startup)
* feedback
2021-12-01 10:21:01 -06:00
Brooks Prumo
cb368e6554
Pass Epoch by value in StakeHistory::get() ( #21523 )
2021-12-01 08:57:29 -06:00
Alexander Meißner
3da914330d
Fix #21397 ( #21535 )
...
Adds InvokeContext::get_instruction_keyed_accounts() to skip first_instruction_account keyed_accounts in CPI.
2021-12-01 14:57:59 +01:00
Ikko Ashimine
1f13fd64bd
Fix typo in system_instruction.rs ( #21539 )
...
Uninitalized -> Uninitialized
2021-12-01 06:31:12 -05:00
dependabot[bot]
b2d9bff18c
chore:(deps): bump @metaplex/js from 4.4.1 to 4.5.0 in /explorer ( #21537 )
...
Bumps [@metaplex/js](https://github.com/metaplex/js ) from 4.4.1 to 4.5.0.
- [Release notes](https://github.com/metaplex/js/releases )
- [Changelog](https://github.com/metaplex/js/blob/main/CHANGELOG.md )
- [Commits](https://github.com/metaplex/js/compare/v4.4.1...v4.5.0 )
---
updated-dependencies:
- dependency-name: "@metaplex/js"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-01 09:32:58 +00:00
dependabot[bot]
4e66a1f407
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21536 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.523 to 0.2.541.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.523...v0.2.541 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-01 09:08:43 +00:00
Alexander Meißner
b78f5b6032
Refactor: Cleanup InstructionProcessor ( #21404 )
...
* Moves create_message(), native_invoke() and process_cross_program_instruction()
from the InstructionProcessor to the InvokeContext so that they can have a useful "self" parameter.
* Moves InstructionProcessor into InvokeContext and Bank.
* Moves ExecuteDetailsTimings into its own file.
* Moves Executor into invoke_context.rs
* Moves PreAccount into its own file.
* impl AbiExample for BuiltinPrograms
2021-12-01 08:54:42 +01:00