Jack May
97f499ce12
Fix cli error message ( #14619 )
2021-01-15 15:53:30 -08:00
Tyera Eulberg
9a89689ad3
Use optimistic confirmation in getSignatureStatuses, and various downstream client methods ( #14430 )
...
* Add optimistically_confirmed field to TransactionStatus
* Update docs
* Convert new field to confirmation_status
* Update docs to confirmationStatus
* Update variants
* Update docs
* Just Confirmed
2021-01-15 16:05:05 +00:00
Tyera Eulberg
e4cf845974
Cli: Implement OutputFormat for some missing subcommands ( #14518 )
...
* Implement OutputFormat for solana leader-schedule
* Implement OutputFormat for solana inflation
2021-01-10 00:02:22 +00:00
Jack May
638f225dc4
Add cli command to query upgradeable account authorities ( #14491 )
2021-01-08 14:43:36 -08:00
Jack May
58487c6360
Add buffer authority to upgradeable loader ( #14482 )
2021-01-08 09:37:57 -08:00
Jeff Washington (jwash)
938d482135
consolidate constants related to time for future refactoring ( #14440 )
2021-01-07 09:49:24 -06:00
Ryo Onodera
54a5876c48
Introduce rpc url monikers for cli ( #14409 )
...
* Introduce rpc url monikers for cli
* Use https:// and support initials as well
2021-01-05 20:00:55 +09:00
Ryo Onodera
aa4da339ff
Improve solana catchup ( #14313 )
...
* Improve solana catchup
* Overidable port, retry, args error clean up
* print cleanup
* Reduce diff
* Tweak warns a bit
2021-01-05 10:10:27 +09:00
Michael Vines
2724f37d0e
Use max commitment when fetching epoch info for block production
2021-01-04 04:33:39 +00:00
Michael Vines
c63e14dd0e
Use singleGossip for program deployment
2021-01-02 07:47:51 -08:00
Trent Nelson
bd761e2a52
CLI: Support displaying past leader schedules
2020-12-28 20:03:48 +00:00
Jack May
3316e7166c
Rework upgradeable loader cli ( #14209 )
2020-12-21 13:02:53 -08:00
sakridge
da7d1e2302
Improved Transaction Forwarding ( #13944 )
...
* Forwarding
* Dedupe leaders
* Use consistent commitment for last_valid_slot in rpc send_transaction
* Plumb rpc send_transaction options into solana-validator
* Extend num slots banking-stage holds forwarded txs
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-12-17 15:37:22 -07:00
Ryo Onodera
bebfa6e93c
Correctly show reward percent changes
2020-12-16 08:51:41 -08:00
Michael Vines
db4ac17259
Switch `solana deploy` commitment default from "max" to "singleGossip"
2020-12-15 19:18:10 -08:00
Jack May
9e90394583
Upgradeable loader ( #13689 )
2020-12-14 15:35:10 -08:00
Michael Vines
7143aaa89b
Clippy
2020-12-14 08:03:29 -08:00
Michael Vines
52c2cbd630
stake-account command no longer errors when time goes backwards over an epoch
2020-12-12 03:31:09 +00:00
Ryo Onodera
26df122386
solana ping: add --blockhash and --print-timestamp ( #13980 )
...
* solana ping: add --blockhash and --print-timestamp
* fix typo in hash...
2020-12-07 21:10:50 +09:00
Tyera Eulberg
a877f347f4
Cli: output stake account credits-observed for verbose/json ( #13923 )
...
* Add credits_observed to verbose and json CliStakeStake prints
* Review comments
2020-12-02 22:02:52 +00:00
Michael Vines
4ef2da0ff0
Add `solana logs` command
2020-11-25 11:44:41 -08:00
Alexander Meißner
c833ede4af
Rbpf v0.2.1 ( #13732 )
...
* Refactoring to match rbpf-v0.2.1 and add JIT compilation caching.
* Removes obsolete bpf-trace.py which has been replaced by the rbpf CLI tool.
2020-11-24 18:00:19 +01:00
Jack May
64a3cf03e2
Remove program cap from CLI checks ( #13617 )
2020-11-16 21:11:55 +00:00
sakridge
598e5f58d5
Add wait for max stake command ( #13532 )
2020-11-12 13:48:34 -08:00
Ryo Onodera
89b474e192
Fix slow/stuck unstaking due to toggling in epoch ( #13501 )
...
* Fix slow/stuck unstaking due to toggling in epoch
* nits
* nits
* Add stake_program_v2 feature status check to cli
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-11-11 14:11:57 -07:00
Ryo Onodera
c5b9831bfb
Don't abort for missing epoch rewards; intead display warn ( #13457 )
2020-11-07 09:32:29 +00:00
Ryo Onodera
d08c3232e2
Show more detailed vote history in shorter format ( #13374 )
...
* Show more detailed vote history in shorter format
* Improve wording
* fmt
2020-11-07 00:07:40 +09:00
Alexander Meißner
4999fe298b
Rbpf v0.2.0 ( #13365 )
...
* Updates rbpf to v0.2.0,
which unifies the interfaces of the interpreter and the JIT.
However, the JIT is not enabled yet.
2020-11-04 18:46:26 +01:00
Michael Vines
6d9ca0ae15
Surface transaction logs in rpc client
2020-11-03 17:03:28 -08:00
Jack May
04c5e6cc48
more informative feature error message ( #13373 )
2020-11-04 00:08:08 +00:00
Michael Vines
4b65e32f22
Move Feature struct to solana-program
2020-10-30 17:57:51 -07:00
Michael Vines
da361afbb9
Revert "Updates rbpf to v0.2.0, ( #12951 )"
...
This reverts commit 6606590b81
.
2020-10-29 21:45:24 -07:00
Michael Vines
df8dab9d2b
Native/builtin programs now receive an InvokeContext
2020-10-29 21:45:24 -07:00
Alexander Meißner
6606590b81
Updates rbpf to v0.2.0, ( #12951 )
...
which unifies the interfaces of the interpreter and the JIT.
However, the JIT is not enabled yet.
2020-10-29 11:34:52 -07:00
Jack May
c458d4b213
move Account to solana-sdk ( #13198 )
2020-10-28 22:01:07 -07:00
Trent Nelson
a82971879f
CLI: Surface deploy transaction errors
2020-10-26 21:16:22 +00:00
Tyera Eulberg
16944e218f
Cli: deploy programs via TPU ( #13090 )
...
* Deploy: send write transactions to leader tpu
* Less apparent stalling during confirmation
* Add EpochInfo mock
* Only get cluster nodes once
* Send deploy writes to next leader
2020-10-23 10:03:29 -06:00
Tyera Eulberg
4669fa0f98
Add deploy err if program-account balance is too high ( #13091 )
...
* Add deploy err if program-account balance is too high
* Review comments
* Add system-program check
* Rename and unhide flag
2020-10-22 22:42:35 -06:00
Justin Starry
8b0242a5d8
Allow nodes to advertise a different rpc address over gossip ( #13053 )
...
* Allow nodes to advertise a different rpc address over gossip
* Feedback
2020-10-22 03:31:48 +00:00
Michael Vines
959880db60
Remove unused pubkey::Pubkey imports
2020-10-21 19:08:13 -07:00
Michael Vines
7bc073defe
Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand`
2020-10-21 19:08:13 -07:00
Trent Nelson
2905ccc7ec
CLI: Print address ephemeral keypair seed phrase to stderr on deploy failure
2020-10-21 01:09:37 -06:00
Michael Vines
ad65d4785e
Skip 'Stake by Feature Set' output when showing status of a single feature
2020-10-21 05:52:32 +00:00
Tyera Eulberg
cca318f805
Revert "CLI: Put `deploy` ephemeral keypair behind a flag" ( #12983 )
...
This reverts commit 5a5b7f39c1
.
2020-10-19 12:44:32 -06:00
Tyera Eulberg
b6bfed64cb
Check payer balance for program account rent as needed ( #12952 )
2020-10-16 18:03:50 +00:00
Trent Nelson
5a5b7f39c1
CLI: Put `deploy` ephemeral keypair behind a flag
2020-10-16 05:00:53 +00:00
Michael Vines
eec3d25ab9
Surface 'Program account allocation failed' error details
2020-10-15 09:17:48 +00:00
Michael Vines
14d793b22c
Cleanly handle RPC servers that don't have --enable-rpc-transaction-history enabled
2020-10-13 10:05:44 -07:00
Alexandre Esteves
6bbf6a79b7
Check ELF file for errors before deploy ( #12741 )
...
* Check ELF file for errors before deploy
* Update cli/src/cli.rs
Co-authored-by: Michael Vines <mvines@gmail.com>
* Fix formatting
* Bump solana_rbpf
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-10-11 21:19:47 -07:00
Michael Vines
c5c8da1ac0
Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli
2020-10-09 21:54:13 -07:00
Tyera Eulberg
5800217998
Fix typo ( #12780 )
2020-10-10 00:35:52 +00:00
Michael Vines
3a04026599
Minor variable name cleanup
2020-10-08 17:44:19 -07:00
Michael Vines
346890ded3
Display vote/stake account epoch rewards
2020-10-07 17:14:12 -07:00
Trent Nelson
4feead323d
clap-utils: Allow fine-tuning offline args
2020-10-07 23:14:39 +00:00
Michael Vines
9abaf6ec1d
`solana stakes` now employs server-side filtering if only one vote account is provided
2020-10-02 17:53:07 -07:00
Tyera Eulberg
19f385db76
Improve solana deploy ( #12621 )
...
* Check program account before attempting to create it
* Use last_valid_slot to timeout status checks
* Include transaction history in RpcClient::get_signature_statuses requests
* Improve solana-deploy send-transactions
* Clippy
* Improve mock deploy test
* Review comments
2020-10-02 13:35:39 -06:00
Michael Vines
978b26a9c5
`solana catchup` now retries if the initial RPC connection fails
2020-10-02 12:28:05 -07:00
Michael Vines
42aeead6b4
Add inflation subcommand
2020-10-01 22:57:09 -07:00
Michael Vines
14036ac580
Improve `block` command output
2020-10-01 22:56:42 -07:00
Tyera Eulberg
adf06b635b
Enable json output from solana feature status ( #12554 )
2020-09-29 19:26:08 +00:00
Trent Nelson
972619edb4
clap-utils: Allow nonce/offline args to be global
2020-09-29 10:42:49 -06:00
Michael Vines
322dbd894f
feature subcommand: display active stake by feature id when feature activation is not available
2020-09-29 05:10:02 +00:00
Tyera Eulberg
35208c5ee7
Enable commitment arg on solana deploy ( #12532 )
2020-09-28 16:24:38 -06:00
Michael Vines
3a2b8c5e5b
cli review feedback
2020-09-25 11:40:36 -07:00
Michael Vines
93ed0ab2bb
Add feature management commands
2020-09-25 11:40:36 -07:00
Michael Vines
c10da16d7b
Port instructions sysvar and secp256k1 program activation to FeatureSet
2020-09-25 11:40:36 -07:00
Michael Vines
35f5f9fc7b
Add feature set identifier to gossiped version information
2020-09-25 11:40:36 -07:00
Trent Nelson
7cab638297
Factor the rest of CLI offline module out to clap-utils and cli-output crates
2020-09-23 15:58:44 -06:00
Trent Nelson
325a7e9f86
Move CLI cli_output module to its own crate
2020-09-23 15:58:44 -06:00
Trent Nelson
ba353c2b1d
Move CLI blockhash_query module into client crate
2020-09-23 15:58:44 -06:00
Trent Nelson
0c58123b45
Move CLI Signer utils into clap-utils
2020-09-23 15:58:44 -06:00
Trent Nelson
be88e868bd
CLI: Drop unused helper
2020-09-23 15:58:44 -06:00
Trent Nelson
9a60353fa9
CLI: Encapsulate default signer attributes
2020-09-23 15:58:44 -06:00
Trent Nelson
eaf79152b3
CLI: Consolidate sign-only helpers
2020-09-23 15:58:44 -06:00
Trent Nelson
5e34af5a75
`return_signers` doesn't need a whole `CliConfig`
2020-09-23 15:58:44 -06:00
Trent Nelson
89cab47011
Move CLI fee payer arg into clap-utils
2020-09-23 15:58:44 -06:00
Trent Nelson
6cf74d1166
Move CLI offline args to clap-utils
2020-09-23 15:58:44 -06:00
Trent Nelson
3fb8428636
Move CLI nonce args to clap-utils
2020-09-23 15:58:44 -06:00
Trent Nelson
011b674d41
CLI: Remove unused `KeypairEq` type
2020-09-23 15:58:44 -06:00
Trent Nelson
a6533c3a21
Move CLI nonce account helpers in client
2020-09-23 15:58:44 -06:00
Trent Nelson
dda48e2d06
Move `CliNonceError` into client crate
2020-09-23 15:58:44 -06:00
Michael Vines
4fa443becf
Simplify cli node version output, display semver only by default
2020-09-22 07:03:43 +00:00
Trent Nelson
83f93fed02
CLI: Use Base58 encoding rather than deprecated Binary for TX decode
2020-09-16 04:36:50 +00:00
sakridge
3930cb865a
Add keccak-secp256k1 instruction ( #11839 )
...
* Implement keccak-secp256k1 instruction
Verifies eth addreses with ecrecover function
* Move secp256k1 test
2020-09-15 18:23:21 -07:00
Michael Vines
56282f0c01
`validator-info get/set` no longer crash on invalid account data
2020-09-15 16:59:17 -07:00
Michael Vines
27752c4e4d
Add block command
2020-09-06 12:45:32 -07:00
Michael Vines
6677996369
Add first-available-block command
2020-09-06 12:45:32 -07:00
Michael Vines
2332dd774f
Add --show-transactions flag to transaction-history command
2020-09-05 08:45:49 -07:00
Tyera Eulberg
39246f9dd7
Revert signature-notification format change ( #12032 )
...
* Use untagged RpcSignatureResult enum to avoid breaking downstream consumers of current signature subscriptions
* Clean up client duplication
* Clippy
2020-09-03 18:14:45 -06:00
Tyera Eulberg
6234909373
Fix use-deprecated-loader arg ( #11921 )
2020-08-31 08:41:00 +00:00
Michael Vines
b660704faa
Allow the sendTransaction preflight commitment level to be configured
2020-08-22 08:19:50 -07:00
Michael Vines
de736e00ad
Add (hidden) --use-deprecated-loader flag to `solana deploy`
2020-08-17 19:57:44 -07:00
Michael Vines
adc984a225
Rename Binary64 to Base64. Establish Base58 encoding
2020-08-17 17:26:29 -07:00
Michael Vines
757e147b3b
Rework UiAccountData encode/decode such that it works from Rust
2020-08-17 17:26:29 -07:00
Michael Vines
2ebc68a9e2
decode-transaction now supports binary64
2020-08-17 17:26:29 -07:00
Michael Vines
b5f3ced860
Add base64 (binary64) encoding for getConfirmedTransaction/getConfirmedBlock
2020-08-17 17:26:29 -07:00
Tyera Eulberg
6c5b8f324a
Rpc: Add until parameter for getConfirmedSignaturesForAddress2 ( #11644 )
...
* Refactor bigtable apis to accept start and end keys
* Make helper fn to deserialize cell data
* Refactor get_confirmed_signatures_for_address to use get_row_data range
* Add until param to get_confirmed_signatures_for_address
* Add until param to blockstore api
* Plumb until through client/cli
* Simplify client params
2020-08-15 10:42:17 -06:00
Tyera Eulberg
c0d6761f63
Fix solana CLI deploy ( #11520 )
...
* Refresh blockhash for program writes and finalize transactions
* Refactor to use current api, eliminating an rpc call
* Review comment
2020-08-11 02:42:29 -06:00
Tyera Eulberg
88ca04dbdb
Add config param to specify offset/length for single and program account info ( #11515 )
...
* Add config param to specify dataSlice for account info and program accounts
* Use match instead of if
2020-08-10 22:35:29 +00:00
Michael Vines
a4f5f3e978
account subcommand now requests binary64
2020-08-09 21:10:49 +00:00