Tyera Eulberg
b6083ca107
Cli: expose last-valid-slot in solana fees ( #10254 )
...
automerge
2020-05-26 14:08:07 -07:00
Michael Vines
56c7e4a66c
ping now reuses the same blockhash for a minute ( #10165 )
2020-05-21 14:11:47 -07:00
Michael Vines
357a00d2bc
transaction-history now searches over the entire history by default ( #10145 )
...
automerge
2020-05-20 14:15:31 -07:00
Greg Fitzgerald
d9919b99d2
Remove folds ( #10128 )
...
automerge
2020-05-19 18:13:41 -07:00
Tyera Eulberg
ed53a70b5c
Cli: transfer ALL; check spend+fee in client ( #10012 )
...
* lamports->SOL in user-facing error msg
* Check for sufficient balance for spend and fee
* Add ALL option to solana transfer
* Rework TransferAmount to check for sign_only in parse
* Refactor TransferAmount & fee-check handling to be more general
* Add addl checks mechanism
* Move checks out of cli.rs
* Rename to SpendAmount to be more general & move
* Impl ALL/spend helpers for create-nonce-account
* Impl spend helpers for create-vote-account
* Impl ALL/spend helpers for create-stake-account
* Impl spend helpers for ping
* Impl ALL/spend helpers for pay
* Impl spend helpers for validator-info
* Remove unused fns
* Remove retry_get_balance
* Add a couple unit tests
* Rework send_util fn signatures
2020-05-14 12:24:14 -06:00
Tyera Eulberg
ee7f15eff1
Rpc: optionally filter getLargestAccounts by circulating/nonCirculating ( #10007 )
...
* Add circ/non-circ filter to getLargestAccounts
* Plumb largest accounts into client and cli
* Bump timeout toward CI flakiness
* Update docs
2020-05-12 21:05:05 -06:00
Michael Vines
3b9dc50541
Fix up a couple cli commands that fail when a node is in the `--wait-for-supermajority` state ( #9985 )
...
automerge
2020-05-11 16:07:40 -07:00
Tyera Eulberg
dd78184f8f
Cli: Add solana supply command; hide total-supply ( #9956 )
...
* Add cli supply command; hide total-supply
* Use print-accounts arg instead of verbose
2020-05-10 12:05:14 -06:00
Tyera Eulberg
65a52a4145
Cli: Update OutputFormat method to return a String to restore consistency ( #9904 )
...
* Update OutputFormat method to return a String to restore consistency
* Remove process_show_account special case
2020-05-06 20:27:15 -06:00
Tyera Eulberg
b2672fd623
Cli: add cluster-date subcommand, and make block-time slot optional ( #9878 )
...
* Add CliBlockTime struct
* Add cli cluster-date subcommand
* Make slot param optional; also jsonify
* Make prints prettier
2020-05-05 09:42:03 -06:00
Kristofer Peterson
3aedb81d48
Avoid panic caused by converting non-positive / non-normal floating points values to duration ( #9867 )
2020-05-04 13:08:27 -07:00
Michael Vines
ffbbdd46e8
Add clap.rs default for --commitment ( #9859 )
2020-05-02 13:06:35 -07:00
Tyera Eulberg
6deaf649ef
Add commitment Root variant, and add fleshed out --commitment arg to Cli ( #9806 )
...
automerge
2020-04-29 21:55:33 -07:00
Michael Vines
6ed29b3653
Don't divide by zero
2020-04-29 11:04:52 -07:00
Michael Vines
0954ea19e8
catchup now estimates the time remaining ( #9782 )
...
automerge
2020-04-28 22:32:12 -07:00
Michael Vines
914b022663
cli: Add transaction-history ( #9614 )
...
automerge
2020-04-20 22:01:09 -07:00
Tyera Eulberg
679e7863cb
Tame wallet manager better ( #9567 )
...
automerge
2020-04-18 11:54:21 -07:00
Tyera Eulberg
5298e3872c
Cli: enable json output ( #9478 )
...
automerge
2020-04-14 12:10:25 -07:00
Michael Vines
3f33f4d3a9
Sort the output of `solana validators` by active stake ( #9459 )
...
automerge
2020-04-12 17:39:02 -07:00
Michael Vines
c5b2db72a2
Add option to monitor catchup at max commitment
2020-04-02 19:05:33 -07:00
Michael Vines
303a1207c1
Add --follow option to catchup command to allow for easy ongoing monitoring between two nodes
2020-04-02 19:05:33 -07:00
Michael Vines
23bf7b8d63
Add epoch subcommand ( #9249 )
...
automerge
2020-04-01 20:42:28 -07:00
sakridge
a8817fb973
Add some information about what an address can be for CLI commands ( #9233 )
2020-04-01 19:45:37 -07:00
Michael Vines
5f31444300
catchup now retries when the desired node is not yet online ( #9148 )
2020-03-29 09:40:53 -07:00
Greg Fitzgerald
c68e80c93b
Improve CLI usage messages ( #8972 )
...
* Improve CLI usage messages
* stragglers
* Apply review feedback
Co-authored-by: Trent Nelson <trent@solana.com>
2020-03-19 21:43:11 -06:00
Tyera Eulberg
6077458ad8
Cli: enable flexible flexible signer paths for pubkey args ( #8892 )
...
automerge
2020-03-16 15:17:13 -07:00
Trent Nelson
fbf2dd1672
CLI: Error message cleanup ( #8804 )
...
automerge
2020-03-12 23:20:49 -07:00
Jack May
6eb4973780
Don't use move semantics if not needed ( #8793 )
2020-03-11 14:37:23 -07:00
Michael Vines
132a2a73af
Add total-supply command ( #8722 )
...
automerge
2020-03-09 01:28:44 -07:00
Grimes
f89c22b5ee
`solana catchup` now detects when you try to catchup to yourself ( #8635 )
...
automerge
2020-03-04 14:44:21 -08:00
Grimes
09a0325534
`catchup` now supports an optional RPC URL argument for validators with private RPC ( #8629 )
...
automerge
2020-03-04 11:44:13 -08:00
Michael Vines
abf33b3b3b
Add commitment flag to `vote-account` and `validators` commands ( #8597 )
2020-03-03 17:53:30 -07:00
Tyera Eulberg
e4498adb1f
Make block-time more human-readable ( #8575 )
2020-03-02 14:58:15 -08:00
Sunny Gleason
db291234ed
feat: implement websocket_url as a get/set-able global parameter w/ value computation
2020-03-01 01:07:45 -07:00
Michael Vines
407d058611
live-slots now displays the rate the root slot is advancing
2020-02-25 20:59:05 -07:00
Tyera Eulberg
12a9b5f35e
CLI: collect and deduplicate signers ( #8398 )
...
* Rename (keypair util is not a thing)
* Add method to generate_unique_signers
* Cli: refactor signer handling and remote-wallet init
* Fixup unit tests
* Fixup intergation tests
* Update keypair path print statement
* Remove &None
* Use deterministic key in test
* Retain storage-account as index
* Make signer index-handling less brittle
* Cache pubkey on RemoteKeypair::new
* Make signer_of consistent + return pubkey
* Remove &matches double references
* Nonce authorities need special handling
2020-02-24 17:03:30 -07:00
Tyera Eulberg
4ddbf8d509
CLI: dynamic signing reboot ( #8384 )
...
* Add keypair_util_from_path helper
* Cli: impl config.keypair as a trait object
* SDK: Add Debug and PartialEq for dyn Signer
* ClapUtils: Arg parsing from pubkey+signers to Presigner
* Impl Signers for &dyn Signer collections
* CLI: Add helper for getting signers from args
* CLI: Replace SigningAuthority with Signer trait-objs
* CLI: Drop disused signers command field
* CLI: Drop redundant tests
* Add clap validator that handles all current signer types
* clap_utils: Factor Presigner resolution to helper
* SDK: `From` for boxing Signer implementors to trait objects
* SDK: Derive `Clone` for `Presigner`
* Remove panic
* Cli: dedup signers in transfer for remote-wallet ergonomics
* Update docs vis-a-vis ASK changes
* Cli: update transaction types to use new dynamic-signer methods
* CLI: Fix tests No. 1
what to do about write_keypair outstanding
* Work around `CliConfig`'s signer not necessarily being a `Keypair`
* CLI: Fix tests No. 2
* Remove unused arg
* Remove unused methods
* Move offline arg constants upstream
* Make cli signing fallible
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2020-02-21 14:55:53 -07:00
Tyera Eulberg
ab361a8073
Rename KeypairUtil to Signer ( #8360 )
...
automerge
2020-02-20 13:28:55 -08:00
Sunny Gleason
a7fa92b372
feat: implementation of live-slots command ( #8129 )
2020-02-06 14:16:30 -05:00
Tyera Eulberg
3db159f616
CLI cosmetic: make config get and verbose prints consistent ( #8119 )
...
* CLI cosmetic: make config get and verbose prints consistent
* Make print format consistent across cli
2020-02-05 11:14:44 -07:00
Michael Vines
4c0420b884
Delete uptime command, report total credits in `solana validators` instead
2020-02-03 16:55:33 -07:00
Michael Vines
1c82f84595
Add leader-schedule subcommand
2020-01-29 20:08:42 -07:00
Ryo Onodera
992e985972
Add column for slot range of epoch to epoch-info ( #7954 )
...
automerge
2020-01-23 20:44:37 -08:00
Jack May
c95e5346a4
Boot the mut ( #7926 )
2020-01-22 17:54:06 -08:00
Michael Vines
340424e03a
Use minimumLedgerSlot RPC API in block-production command
2020-01-21 14:05:26 -07:00
Michael Vines
356f246a74
Remove get-/show- prefix from cli commands
2020-01-21 08:43:07 -07:00
Michael Vines
a32de96ab1
Add show-stakes subcommand
2020-01-17 14:14:01 -07:00
Ryo Onodera
e710964d05
Revamp the progress of current epoch in get-epoch-info ( #7838 )
...
* Revamp the progress of current epoch in get-epoch-info
* Incorporate suggested more concise labelling
2020-01-17 09:39:47 +09:00
Tyera Eulberg
6d3b8b6d7d
Remove tuples from JSON RPC responses ( #7806 )
...
* Remove RpcConfirmedBlock tuple
* Remove getRecentBlockhash tuple
* Remove getProgramAccounts tuple
* Remove tuple from get_signature_confirmation_status
* Collect Rpc response types
* Camel-case epoch schedule for rpc response
* Remove getBlockCommitment tuple
* Remove getStorageTurn tuple
* Update json-rpc docs
2020-01-15 00:25:45 -07:00
Michael Vines
419da18405
show-block-production: Rename "missed" to "skipped" as not all skipped slots are missed slots ( #7599 )
2019-12-22 22:39:47 -07:00
Michael Vines
d51e42c707
MISSED -> SKIPPED
2019-12-22 10:19:35 -07:00
Michael Vines
d88d8e2dbb
Fix another silly bug
2019-12-21 09:20:12 -07:00
Michael Vines
3f69d58498
ledger-tool: Add --all option to bounds, to display all non-empty slots ( #7592 )
2019-12-20 20:43:53 -07:00
Michael Vines
8886db2000
--verbose now causes show-block-production to list all slots and highlight the specific misses ( #7582 )
2019-12-20 09:38:08 -07:00
Michael Vines
5e6c58716e
Speed up show-block-production command
2019-12-19 10:50:27 -07:00
Michael Vines
ff171baa67
Add show-block-production command
2019-12-19 00:02:11 -07:00
Justin Starry
dad5c62df5
Add uptime column to show-validators ( #7441 )
...
automerge
2019-12-11 22:04:54 -08:00
Tyera Eulberg
11521dca08
Use is_amount clap validator ( #7400 )
...
* Fix up is_amount to handle floats for SOL; expand amount_of test
* Use required_lamports_from and is_amount across CLI
* Remove obsolete test (now handled by clap)
2019-12-10 11:29:17 -07:00
Jack May
19ecce1e32
Fix offline stakes payer ( #7385 )
2019-12-09 23:11:04 -08:00
Michael Vines
5e0a69f68b
Improve get-epoch-info output for longer epoch durations
2019-12-09 23:42:00 -07:00
Michael Vines
deb7ac549c
Adjust show-validators column alignment ( #7359 )
...
automerge
2019-12-08 09:06:35 -08:00
Rob Walker
ae93d574c2
commission as percent ( #7239 )
...
* commission_as_percent
* fixup
2019-12-03 20:55:04 -08:00
Tyera Eulberg
58c144ee55
Add getBlockTime rpc api ( #7130 )
...
* Add getBlockTime rpc api
* Add getBlockTime to docs
* Fix duration rounding for common tick/slot durations; add slot duration calculation
* Expose slots_per_year
* Use genesis values instead of clock defaults to calculate block offset
* Add get-block-time cli subcommand
* Fix test_rent: decrease magic number usage
2019-11-26 00:40:36 -07:00
Michael Vines
d5beb8a9e4
cli: Add --confirmed option to a couple commands, also add --no-header ( #7112 )
...
* Add --confirmed option to get-slot, get-epoch-info, get-transaction-count
* Add --no-header option
2019-11-24 17:34:18 -07:00
Ryo Onodera
7ccc029f77
Make solana ping take optional lamports argument ( #7029 )
...
* Make solana ping take optional lamports argument
* Use clap's default_value
2019-11-19 14:50:09 +09:00
Michael Vines
b2db0b97fc
Add show-gossip command ( #6982 )
2019-11-15 13:15:34 -07:00
Michael Vines
f116cdeed9
Add validator catchup command ( #6922 )
2019-11-13 15:58:14 -07:00
Michael Vines
86faa3f995
Properly type RpcClient::get_version() ( #6919 )
2019-11-12 22:01:04 -07:00
Justin Starry
9807f47d4e
Rename genesis block to genesis config ( #6816 )
2019-11-08 23:56:57 -05:00
Michael Vines
efdfc5c327
Remove TODOs ( #6843 )
2019-11-08 16:43:18 -07:00
Tyera Eulberg
079682fbdc
Add ping cli option to use CommitmentLevel::Max, instead of CommitmentLevel::Recent ( #6775 )
2019-11-06 18:54:17 -07:00
Tyera Eulberg
b3a75a60a4
Use rooted bank by default in rpc bank selection ( #6759 )
...
* Name anonymous parameters for clarity
* Add CommitmentConfig to select bank for rpc
* Add commitment information to jsonrpc docs
* Update send_and_confirm retries as per commitment defaults
* Pass CommitmentConfig into client requests; also various 'use' cleanup
* Use _with_commitment methods to speed local_cluster tests
* Pass CommitmentConfig into Archiver in order to enable quick confirmations in local_cluster tests
* Restore solana ping speed
* Increase wallet-sanity timeout to account for longer confirmation time
2019-11-06 14:15:00 -07:00
Justin Starry
71ff269780
Add show-stake-history command to cli ( #6541 )
2019-10-25 12:20:08 -04:00
Michael Vines
d398898c38
show-validators: display current/delinquent stake, and flag delinquent nodes ( #6525 )
2019-10-23 21:40:35 -07:00
Tyera Eulberg
8319fa05d0
solana-cli: selectively require keypair ( #6477 )
...
* Make parse_command consistent
* Strip pubkey out of parse_stake_create_account
* Move validator-info args into module
* Strip pubkey out of parse_validator_info_command
* Strip pubkey out of parse_vote_create_account
* Strip pubkey out of balance parsing
* Strip pubkey out of parse pay
* Only verify keypair existence if command requires it
* Use struct instead of tuple
2019-10-21 17:08:09 -06:00
Michael Vines
799d6aeb19
Update cluster_query.rs
2019-10-14 23:00:13 -07:00
Michael Vines
d2e28b0f7e
Add show-validators command
2019-10-14 20:38:51 -07:00
Tyera Eulberg
e6676b4d4d
Cli refactor: move cluster query-related functionalities ( #6244 )
...
* Reorder and label parse_command's giant match
* Move cluster query processing into separate module
* Reorder and label process_command match
2019-10-04 19:54:09 -07:00