Bruno
2e3eafaa11
RPC Client: Use Tokio's RwLock instead of std to make using in async easier ( #23299 )
2022-02-23 09:33:32 -08:00
Jeff Washington (jwash)
2996f1f783
add comments ( #23275 )
2022-02-23 10:53:11 -06:00
kirill lykov
05f04a22b7
Fix small problems in transaction-dos tool ( #23234 )
...
* Fix small problems in transaction-dos tool
2022-02-23 17:17:06 +01:00
Justin Starry
d0e85c293f
Fix rustfmt check ( #23296 )
2022-02-23 16:38:53 +08:00
Michael Vines
6872fc79ba
Derive Clone for AeCiphertext ( #23293 )
2022-02-22 22:47:26 -08:00
Dmitri Makarov
0a3a18744f
Update the consumed compute units cost for hashing syscalls
...
This change prevents zero-cost computation of hash functions on
unbound number of zero-length slices of data. The cost for each slice
is at least equal to the base cost of a memory operation, but could be
more for longer slices.
2022-02-23 02:32:41 +00:00
Trent Nelson
09d064c090
docs: clarify spl token account creation handling for exchange integrations
2022-02-23 00:22:44 +00:00
Masaya Funakoshi
ff604efc44
Grammar corrections ( #23206 )
...
* Accounts page grammar edits
* Runtime page grammar edits
* calling-between-programs page grammar edits
* transactions page grammar edits
* small changes with e.g. following Chicago Manual
2022-02-22 15:23:47 -08:00
Gavin Chan
20d031e2b8
Refactor ExecuteTimings w/ enum-indexed array ( #23085 )
2022-02-22 14:46:56 -08:00
Trent Nelson
5766567e9f
ci: revert cache version hack
2022-02-22 19:01:29 +00:00
Brooks Prumo
88e1192c6b
Refactor new() and default() for CostTracker ( #23267 )
2022-02-22 10:44:23 -06:00
Anton Lazarev
cadc2de77d
add github workflow to check solana-client compilation on android/ios targets
2022-02-22 09:05:51 -07:00
Jeff Washington (jwash)
8b32e80ee2
DiskIdx: rename 'remove' to 'evict' ( #23188 )
2022-02-22 09:40:25 -06:00
Jeff Washington (jwash)
7ebf398ed7
AcctIdx: env var "SOLANA_TEST_ACCOUNTS_INDEX_MEMORY_LIMIT_MB" ( #23194 )
...
* AcctIdx: env var "SOLANA_TEST_ACCOUNTS_INDEX_MEMORY_LIMIT_MB"
* ignore env var when starting as validator
* Update runtime/src/bucket_map_holder.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2022-02-22 09:40:12 -06:00
Brooks Prumo
ac70070e5b
Add MINIMUM_STAKE_DELEGATION constant ( #23259 )
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-02-22 09:21:23 -06:00
microwavedcola1
f00016b647
add support for time in force order type ( #23255 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-02-22 21:12:02 +08:00
Justin Starry
bcda74f42f
Fix builtin handling on epoch boundaries ( #23256 )
2022-02-22 20:54:08 +08:00
Justin Starry
c97f34a0fd
Add script for running nightly rustfmt on all workspaces ( #23244 )
...
* Add script for running nightly rustfmt on all workspaces
* invalidate ci cache
2022-02-22 11:59:06 +08:00
Michael Vines
72c68695b5
Do not keep oldest full snapshot
2022-02-21 17:10:31 -07:00
Alexander Meißner
d0d256ee9a
Bump rbpf to v0.2.24 ( #23263 )
2022-02-21 23:38:12 +01:00
Tyera Eulberg
7e08ae1d0c
Revert "Add simulation detection countermeasure ( #22880 )" ( #23261 )
...
This reverts commit c42b80f099
.
2022-02-21 21:15:37 +00:00
Pierre
ebe3d2d59d
fix: simulateTransaction accounts items can be null ( #23229 )
...
* fix: simulated accounts can be null
* Use Missing rather than token program id
Co-authored-by: Arrowana <8245419+Arrowana@users.noreply.github.com>
2022-02-21 14:20:11 +08:00
HaoranYi
04d23a1597
fix memory ordering in append_vec ( #23215 )
2022-02-20 20:30:49 -06:00
dependabot[bot]
42bdf1d864
chore:(deps): bump url-parse from 1.5.1 to 1.5.7 in /explorer ( #23245 )
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.5.1 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.7 )
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-19 11:34:37 +00:00
Yueh-Hsuan Chiang
8c872e9ce0
(LedgerStore/FIFO) Refactor FIFO options and sanity check. ( #23131 )
2022-02-19 00:58:38 -08:00
buffalu
70ebab2c82
Add rustfmt.toml and `cargo fmt` ( #23238 )
...
* fmt
* formatted
Co-authored-by: Lucas B <buffalu@jito.network>
2022-02-19 13:32:29 +08:00
Yueh-Hsuan Chiang
1add82aa9e
(Ledger Store Benchmark) Add flags for checking shred storage size. ( #22451 )
2022-02-18 19:35:28 -08:00
Trent Nelson
e2d0ede630
cli: accept 'system' program id mnemonic for with seed
2022-02-18 19:51:18 -07:00
Trent Nelson
dcd0a39cb6
cli: coerce with seed program id mnemonics to uppercase
2022-02-18 19:51:18 -07:00
Justin Starry
1719d2349f
Skip adding builtins if they will be removed ( #23233 )
...
* Add failing test for precompile transition
* Skip adding builtins if they will be removed
* cargo clean
* nits
* fix abi check
* remove workaround
Co-authored-by: Jack May <jack@solana.com>
2022-02-18 18:36:59 -08:00
Alexander Meißner
ee7e411d68
Replaces `KeyedAccount` by `BorrowedAccount` in `system_instruction_processor`. ( #23217 )
...
* Adds InstructionContext::check_number_of_instruction_accounts() and InstructionContext::get_instruction_account_key().
Bases check_sysvar_account() on instuction account indices.
* Adds instruction_account_indices enums to system_instruction_processor.
* Reorders parameters and adds InstructionContext.
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 1).
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 2).
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 3).
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 4).
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 5).
* Code cleanup
2022-02-19 02:06:33 +01:00
Jack May
970f543ef6
Precompiles owned by the native loader ( #23237 )
2022-02-18 15:41:59 -08:00
Justin Starry
1351c1bbcf
Explorer: Add ed25519 sigverify precompile to search results ( #23228 )
2022-02-18 07:18:01 +00:00
Will Hickey
c696944d36
Add --locked to spl-token-cli install ( #23223 )
2022-02-17 22:09:29 -06:00
mooori
5726f42a7c
feat(stake-program): support `splitWithSeed` ( #23213 )
2022-02-17 12:21:07 -07:00
Dmitri Makarov
ae7fedf0b1
Extend buildkite cargo cache name to include host side rust version
2022-02-17 09:53:51 -08:00
samkim-crypto
b4100a9b5d
Add additional zkp for fee ( #23112 )
...
* zk-token-sdk: add equality proof for fee
* zk-token-sdk: tweak some naming conventions for readability
* zk-token-sdk: add verify withdraw withheld instruction
* zk-token-sdk: add test for withdraw withheld verification
* zk-token-sdk: more renaming of variables for readability
* zk-token-sdk: cargo fmt
* zk-token-sdk: minor
* zk-token-sdk: resolve bpf compilation warnings
* zk-token-sdk: minor update to doc
2022-02-17 12:45:07 -05:00
Alexander Meißner
1a68f81f89
Replaces `KeyedAccount` by `BorrowedAccount` in `nonce_keyed_account`. ( #23214 )
...
* Adds get_sysvar_with_account_check2 for ABIv2.
* Replaces get_signers() and get_sysvar_with_account_check() in system_instruction_processor.
* Replaces KeyedAccount by BorrowedAccount in nonce_keyed_account.
2022-02-17 17:36:55 +01:00
Alexander Meißner
da00b39f4f
Cleanup: get_program_key() and get_loader_key() in TransactionContext ( #23191 )
...
* Moves TransactionContext::get_program_key() to InstructionContext::get_program_key().
* Removes TransactionContext::get_loader_key().
* Test full program and loader executable account chain in BPF loader.
2022-02-17 10:16:28 +01:00
carllin
619335df1a
Add execute timings ( #23097 )
2022-02-17 01:14:32 -05:00
Trent Nelson
fa680a35ea
docs: remove wallet ads
2022-02-16 22:19:10 -07:00
sethgirvan
b66a304e7b
docs: fix typos ( #22320 )
2022-02-16 22:57:22 -06:00
Tao Zhu
3c235503de
remove block limit for bench tests to avoid skew test result ( #23204 )
2022-02-17 03:44:34 +00:00
Michael Vines
a102453bae
accounts_index: Add SPL Token account indexing for token-2022 accounts ( #23043 )
2022-02-16 16:23:25 -08:00
carllin
bca1d51735
Fix flaky optimistic confirmation tests ( #23178 )
2022-02-16 16:13:58 -05:00
dependabot[bot]
6e28a03c73
chore: bump rcgen from 0.8.14 to 0.9.1 ( #23148 )
...
* chore: bump rcgen from 0.8.14 to 0.9.1
Bumps [rcgen](https://github.com/est31/rcgen ) from 0.8.14 to 0.9.1.
- [Release notes](https://github.com/est31/rcgen/releases )
- [Changelog](https://github.com/est31/rcgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/est31/rcgen/compare/v0.8.14...v0.9.1 )
---
updated-dependencies:
- dependency-name: rcgen
dependency-type: direct:production
update-type: version-update:semver-minor
...
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>
2022-02-16 12:33:56 -07:00
Justin Starry
813725dfec
Fix ed25519 builtin program handling ( #23182 )
...
* Fix ed25519 builtin program handling
* Fix tests
* Add integration tests for processing transactions with ed25519 ixs
* Fix another test
* fix formatting
2022-02-16 18:48:55 +00:00
Trent Nelson
de30699fa5
validator: invert vote account sanity check arg
2022-02-16 10:05:46 -07:00
Trent Nelson
aeda27433f
rpc: genericize client constructors
2022-02-16 10:05:46 -07:00
Trent Nelson
4213ece7bd
rpc: make `getGenesisHash` part of minimal api
2022-02-16 10:05:46 -07:00