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
Trent Nelson
f7118258d6
test-validator: use `JsonRpcConfig::default_for_test` for consistency
2022-02-16 10:05:46 -07:00
gagliardetto
aaf657297f
Update jsonrpc-api.md ( #23190 )
2022-02-16 16:55:39 +00:00
anatoly yakovenko
83d31c9e65
shrink batches when over 80% of the space is wasted ( #23066 )
...
* shrink batches when over 80% of the space is wasted
2022-02-16 08:18:17 -08:00
Jeff Biseda
115d71536b
forward_buffered_packets return packet count in error path ( #23167 )
2022-02-16 07:46:32 -08:00
Jeff Washington (jwash)
c2435363f3
DiskIdx: fix race condition with holding ranges in mem ( #23158 )
2022-02-16 09:25:00 -06:00
Yueh-Hsuan Chiang
7939fdc3e5
Minor refactor on Shreds column family descriptor construction. ( #23103 )
2022-02-16 00:29:11 -08:00
Michael Vines
577fa4ec0c
Generate full snapshots 4x faster to keep incremental snapshots nice and small
2022-02-15 21:09:21 -08:00
Tyera Eulberg
88b66ae3a8
Allow cli users to authorize Staker signed by Withdrawer ( #23146 )
2022-02-15 22:08:53 -07:00
Michael Vines
a6d736572c
`solana-validator set-identity` now supports the `--require-tower` flag
2022-02-15 19:45:00 -08:00
Ashwin Sekar
6ae87109d2
Improve performance of root slot in slot hashes history check ( #22990 )
...
* Fold the root slot check into loop for performance
* Add assert in case vote state root is not older than slot hashes
2022-02-15 20:17:56 -07:00
Richard Patel
56e23432b0
rbpf-cli: only run static analysis when needed ( #23110 )
2022-02-16 02:35:05 +00:00
Tyera Eulberg
64f5e57666
Restore wait_for_nonzero_fees to TestValidatorGenesis::start_with_mint_address
2022-02-15 18:03:37 -08:00
Michael Vines
527f62c744
Add --skip-new-snapshot-check to exit and wait-for-restart-window subcommands
2022-02-15 16:22:31 -08:00
Tyera Eulberg
917113914d
Remove references to instruction parsing in SPL Token -> Depositing section ( #23161 )
2022-02-15 23:45:00 +00:00
Jeff Washington (jwash)
43393ea45d
assert on AcctInfo.store_id with cached store ( #21952 )
2022-02-15 15:22:36 -06:00
Michael Vines
b44f40ee3a
`solana-validator monitor` now reports identity changes
2022-02-15 13:12:30 -08:00
Tao Zhu
03bf66a51b
flag end-of-slot when poh bank is gone
2022-02-15 15:01:27 -06:00
Ashwin Sekar
ab92578b02
Fix the flaky test test_restart_tower_rollback ( #23129 )
...
* Add flag to disable voting until a slot to avoid duplicate voting
* Fix the tower rollback test and remove it from flaky.
2022-02-15 13:19:34 -07:00