Tao Zhu
ced8f6a512
Add feature gate to remove support for RequestUnitsDeprecated instruction ( #27503 )
...
* feature gate: remove support for RequestUnitsDeprecated instruction #27500
* review update: stop support deprecated ix for prioritization
* Apply suggestions from code review
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
2022-09-09 22:24:21 +00:00
Steven Luscher
a98f58f0dc
chore: update the README for web3.js with compatibility notes ( #27706 )
2022-09-09 14:42:36 -07:00
Brooks Prumo
2b554560fd
Send snapshot request for correct bank in set_root() ( #27673 )
2022-09-09 17:30:37 -04:00
apfitzge
6561428278
Separate add_un_ref for easier tracing ( #27652 )
2022-09-09 16:14:55 -05:00
Justin Starry
e42a39024d
feat: add source field to parsed account key responses ( #27702 )
2022-09-09 21:06:54 +00:00
Brooks Prumo
fc396f965c
Fixup log of Epoch Accounts Hash when freezing bank ( #27688 )
2022-09-09 16:33:12 -04:00
Justin Starry
080f085cb8
fix: ensure that Keypair.secretKey is a Uint8Array ( #27700 )
2022-09-09 16:31:18 -04:00
behzad nouri
37296caee8
removes set_{slot,index,last_in_slot} implementations for merkle shreds ( #27689 )
...
These methods are only used in tests but invoked on a merkle shred they
will always invalidate the shred because the merkle proof will no longer
verify. As a result the shred will not sanitize and blockstore will
avoid inserting them. Their use in tests will result in spurious test
coverage because the shreds will not be ingested.
The commit removes implementation of these methods for merkle shreds.
Follow up commits will entirely remove these methods from shreds api.
2022-09-09 17:58:04 +00:00
Tyera Eulberg
0bfc188375
Update getBlock/getTransaction rpc handling of return_data ( #27672 )
...
* Move return_data type to transaction-status crate
* Use UiTransactionReturnData in UiTransactionStatusMeta
* Fixup display handling
* Update docs
2022-09-08 21:10:57 +00:00
dependabot[bot]
7a1f4ffa6b
chore: bump sha2 from 0.10.2 to 0.10.5 ( #27620 )
...
* chore: bump sha2 from 0.10.2 to 0.10.5
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.10.2 to 0.10.5.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.2...sha2-v0.10.5 )
---
updated-dependencies:
- dependency-name: sha2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-09-08 14:07:27 -06:00
dependabot[bot]
0800a5bb83
chore: bump rpassword from 6.0.1 to 7.0.0 ( #27506 )
...
* chore: bump rpassword from 6.0.1 to 7.0.0
Bumps [rpassword](https://github.com/conradkleinespel/rpassword ) from 6.0.1 to 7.0.0.
- [Release notes](https://github.com/conradkleinespel/rpassword/releases )
- [Commits](https://github.com/conradkleinespel/rpassword/compare/v6.0.1...v7.0.0 )
---
updated-dependencies:
- dependency-name: rpassword
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-09-08 14:05:50 -06:00
Jeff Washington (jwash)
1f00b468e5
add enable_rehashing to AccountsPackage ( #27644 )
2022-09-08 09:25:25 -07:00
Tyera Eulberg
54284955de
Respect rewards parameter in getBlock transaction-level rewards ( #27655 )
...
* Respect options.show_rewards in UiTransactionStatusMeta
* Fixup docs
2022-09-08 10:17:02 -06:00
apfitzge
a9c5adbf88
UnprocessedPacketBatches pop_max fn are only used in tests ( #27645 )
2022-09-08 11:01:14 -05:00
Jeff Washington (jwash)
518e16744d
move --accounts-db-verify-refcounts under verify ( #27651 )
2022-09-08 07:59:24 -07:00
Maximilian Schneider
cc58968b76
add new leader slot metric to track account contention throttling ( #27654 )
2022-09-08 09:22:58 -05:00
Jeff Washington (jwash)
82d12c4dda
suppress large debug message on test ( #27646 )
2022-09-08 07:01:01 -07:00
Yihau Chen
54129c4f16
chore: make docs test upload test result when needed ( #27660 )
2022-09-08 14:09:07 +08:00
dependabot[bot]
f338aa62ba
chore: bump serde from 1.0.143 to 1.0.144 ( #27511 )
...
* chore: bump serde from 1.0.143 to 1.0.144
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.143 to 1.0.144.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-09-07 16:54:44 -06:00
Justin Starry
f8b5b517d2
fix: replace `TransactionMessage` `accountKeys` field with `payerKey` ( #27653 )
...
fix: replace TransactionMessage accountKeys field with payerKey
2022-09-07 18:11:24 -04:00
Xiang Zhu
4308c300b4
In ledger-tool delete the account files in the async way ( #27622 )
...
* In ledger-tool delete the account files in the async way
* format changes by ./cargo nightly fmt --all
2022-09-07 14:35:06 -07:00
Brooks Prumo
6a322de845
Make Accounts Background Services aware of Epoch Accounts Hash ( #27626 )
2022-09-07 20:41:40 +00:00
Lijun Wang
7f223dc582
Added option to turn on UDP for TPU transaction and make UDP based TPU off by default ( #27462 )
...
--tpu-enable-udp is introduced. And when this is on, the transaction receive and transaction forward is enabled using udp.
Except for a few tests which was hard-coded sending transactions using udp, most tests are being done with udp based tpu disabled.
2022-09-07 13:19:14 -07:00
Jeff Washington (jwash)
d3ca364e9e
reuse shared function ( #27642 )
2022-09-07 13:11:00 -07:00
apfitzge
c04747dd66
cluster_slot_state_verifier: clippy nightly fixes ( #27521 )
...
clippy nightly fixes
2022-09-07 15:04:56 -05:00
apfitzge
1465ec947d
replay_stage: clippy nightly fixes ( #27520 )
...
clippy nightly fixes
2022-09-07 15:04:46 -05:00
apfitzge
452866dbcf
shredder: clippy nightly fixes ( #27522 )
...
clippy nightly fixes
2022-09-07 15:04:32 -05:00
Brian Anderson
28f979b5a5
Fix solana_program::vote docs ( #27621 )
2022-09-07 13:05:52 -06:00
DimAn
6899af26b0
keygen: add the ability to use derivation path for new & grind commands ( #21614 )
...
* keygen: add --use-derivation-path for new & grind
* keygen: add prompt:// uri scheme to new and grind
* fmt
* migrate to clap-v3-utils
* Revert "migrate to clap-v3-utils"
This reverts commit 77f33262ce6c4e95ac1cc62cca32749516f7f357.
* Revert "fmt"
This reverts commit 038cd4ce9628c57dec1f5a4716e2c5baacbe57b3.
* Revert "keygen: add prompt:// uri scheme to new and grind"
This reverts commit 029ea61409a1a16ba2c45483ade2c01f84f25fac.
* - remove `use` from arg
- fix issue from first commit with default value for derivation path
- refactor arg definition and acquiring
2022-09-07 14:31:40 -04:00
apfitzge
d6a1e7498f
Add tests for deserialize_and_collect_packets ( #27623 )
2022-09-07 12:52:18 -05:00
Jeff Washington (jwash)
22007a3c96
allow accounts hash calc to specify enable_rehashing ( #27615 )
2022-09-07 10:16:52 -07:00
Jeff Washington (jwash)
a31d4a597d
serialize epoch_accounts_hash ( #27516 )
2022-09-07 10:07:00 -07:00
apfitzge
ebf10960b5
validator: clippy nightly fixes ( #27518 )
2022-09-07 10:45:52 -05:00
Tyera Eulberg
1df8830790
Skip loadedAddresses for jsonParsed tx meta ( #27618 )
...
Skip loaded_addresses for jsonParsed tx meta
2022-09-07 09:41:08 -06:00
skrrb
1fd04cdb42
test-validator clone with get_multiple_accounts
2022-09-07 08:21:01 -07:00
Brooks Prumo
1cf9077d06
Include the Epoch Accounts Hash in the Bank hash ( #27541 )
2022-09-07 10:10:49 -04:00
Brooks Prumo
93a4f80a2c
Handling snapshot requests is now required ( #27537 )
2022-09-07 10:08:42 -04:00
Jeff Washington (jwash)
acd846b90e
when storing detailed debug info on accounts hash, we're ok with > 1 storage ( #27617 )
2022-09-07 06:38:57 -07:00
Steven Luscher
6bc04b5e3a
fix: replace js-sha3 with `@noble/hashes/sha3` ( #27630 )
2022-09-06 22:38:11 -07:00
Steven Luscher
466e9948bf
feat: added `authorizeWithSeed` to the vote program in web3.js ( #27627 )
...
* fix: recursively size variable size structs in your buffer layouts
* feat: added `authorizeWithSeed` to the vote program in web3.js
2022-09-06 22:37:43 -07:00
Steven Luscher
a94ada8b3e
fix: recursively size variable size structs in your buffer layouts ( #27624 )
2022-09-06 22:37:27 -07:00
Steven Luscher
f420a89c2b
chore: tell Codecov about the web3.js move, a few years later ( #27633 )
2022-09-06 22:25:51 -07:00
Yueh-Hsuan Chiang
ed00365101
Add ledger tool command print-file-metadata ( #26790 )
...
Add ledger-tool command print-file-metadata
#### Summary of Changes
This PR adds a ledger tool subcommand print-file-metadata.
```
USAGE:
solana-ledger-tool print-file-metadata [FLAGS] [OPTIONS] [SST_FILE_NAME]
Prints the metadata of the specified ledger-store file.
If no file name is unspecified, then it will print the metadata of all ledger files
```
2022-09-06 21:46:35 -07:00
Justin Starry
204f272412
feat: support versioned txs in `sendTransaction` and `simulateTransaction` ( #27528 )
...
* feat: support versioned txs in sendTransaction and simulateTransaction
* chore: add docs for simulation config parameters
2022-09-06 23:53:42 -04:00
Justin Starry
9f81d27db8
feat: add `TransactionMessage` class ( #27526 )
...
feat: implement message v0 decompilation
2022-09-07 03:51:52 +00:00
Justin Starry
3374f41201
feat: implement message v0 compilation ( #27524 )
...
* feat: add PublicKey.unique method for tests
* feat: add MessageAccountKeys class
* feat: add CompiledKeys class for message compilation
* feat: implement message compilation using CompiledKeys
2022-09-06 23:43:22 -04:00
Yihau Chen
8c1093534e
chore: only generate test result on specific branches ( #27591 )
...
* chore: only generate test result on specific branches
* lint
2022-09-07 11:39:06 +08:00
Jeff Biseda
269eb519dd
track time to coalesce entries in recv_slot_entries ( #27525 )
2022-09-06 16:07:17 -07:00
Yueh-Hsuan Chiang
c62aef6e02
Add code comments for lowest_cleanup_slot functions ( #27497 )
...
#### Summary of Changes
Add code comments for lowest_cleanup_slot related functions to improve
the code readability for the consistency between blockstore purge logic
and the read side.
2022-09-06 16:03:42 -07:00
Jeff Washington (jwash)
ecbd5bb807
acctidx: avoid extra addref in combine ancient slots ( #27545 )
...
* acctidx: avoid extra addref in combine ancient slots
* make code common
2022-09-06 13:57:34 -07:00