Michael Vines
e872715fd6
Switch to dirs-next
2020-10-31 18:56:20 +00:00
Michael Vines
6f930351d2
Add --eval flag to `solana-install info`
2020-10-20 23:37:39 +00:00
Michael Vines
d3b0f87a49
Switch to tempfile
2020-10-11 18:51:09 +00:00
Greg Fitzgerald
1c498369b5
Remove fee-payer guesswork from Message and Transaction ( #10776 )
...
* Make Message::new_with_payer the default constructor
* Remove Transaction::new_[un]signed_instructions
These guess the fee-payer instead of stating it explicitly
2020-06-24 14:52:38 -06:00
Kristofer Peterson
e23340d89e
Clippy cleanup for all targets and nighly rust (also support 1.44.0) ( #10445 )
...
* address warnings from 'rustup run beta cargo clippy --workspace'
minor refactoring in:
- cli/src/cli.rs
- cli/src/offline/blockhash_query.rs
- logger/src/lib.rs
- runtime/src/accounts_db.rs
expect some performance improvement AccountsDB::clean_accounts()
* address warnings from 'rustup run beta cargo clippy --workspace --tests'
* address warnings from 'rustup run nightly cargo clippy --workspace --all-targets'
* rustfmt
* fix warning stragglers
* properly fix clippy warnings test_vote_subscribe()
replace ref-to-arc with ref parameters where arc not cloned
* Remove lock around JsonRpcRequestProcessor (#10417 )
automerge
* make ancestors parameter optional to avoid forcing construction of empty hash maps
Co-authored-by: Greg Fitzgerald <greg@solana.com>
2020-06-09 09:38:14 +09: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
Michael Vines
2521f75c18
Advertise node software version in gossip ( #9981 )
...
* Advertise node version in gossip
* Remove solana_clap_utils::version! macro
2020-05-11 15:02:01 -07:00
Michael Vines
cb50877bbf
send_and_confirm_transaction() no longer needs a keypair ( #9950 )
2020-05-09 09:06:32 -07:00
Michael Vines
c11abf88b7
Clean up `use` to keep rust 1.43.0 from complaining ( #9740 )
2020-04-27 16:54:11 -07:00
Greg Fitzgerald
76b1c2baf0
One less alloc per transaction ( #9705 )
...
* One less alloc per transaction
* Fix benches
* Fix compiler warnings in bench build
* Fix move build
* Fix bench
2020-04-24 13:03:46 -06:00
Michael Vines
8df79a3559
Remove stray 'v' ( #9679 )
2020-04-22 23:26:37 -07:00
Michael Vines
e6e43d236f
Remove unused default update manifest pubkeys
2020-03-17 21:46:39 -07:00
Michael Vines
142601d4b6
solana-install-init: --pubkey is no longer required on platforms without a default update manifest
2020-03-17 21:46:39 -07:00
Michael Vines
9e0a26628b
Drop :8899 port from http://devnet.solana.com references
2020-03-13 16:00:54 -07:00
Michael Vines
5a7d2560c9
Don't tell users to install unreleased software versions
2020-03-12 10:01:25 -07:00
Jack May
6eb4973780
Don't use move semantics if not needed ( #8793 )
2020-03-11 14:37:23 -07:00
Tyera Eulberg
ab361a8073
Rename KeypairUtil to Signer ( #8360 )
...
automerge
2020-02-20 13:28:55 -08:00
Michael Vines
e3cebcf82d
rename testnet.solana.com to devnet.solana.com
2020-02-19 15:33:14 -07:00
Michael Vines
335675c51c
install: support vX.Y.Z in addition to X.Y.Z ( #8297 )
...
automerge
2020-02-14 19:35:40 -08:00
Michael Vines
ed58bcda4c
`solana-install init edge` when "edge" is not currently installed now works
2020-02-11 18:57:14 -07:00
Jack May
059764586a
Rename from account userdata to data ( #8224 )
2020-02-11 16:30:22 -08:00
Michael Vines
33ea1e0edd
Channel installs no longer re-download the same release.
2020-02-11 08:22:41 -07:00
dependabot-preview[bot]
57858b8015
Bump reqwest from 0.9.24 to 0.10.0 ( #7642 )
...
* Bump reqwest from 0.9.24 to 0.10.0
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.24 to 0.10.0.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Make reqwest::blocking specific
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-01-08 13:31:43 -07:00
Michael Vines
89f5f336af
Account for rent ( #7626 )
...
automerge
2019-12-24 18:01:21 -08:00
Michael Vines
306fbd8bd8
install: Drop unneeded sha2 dependency ( #7108 )
...
* Poll for updates slower
* Drop sha2 dependency
2019-11-22 21:58:26 -07:00
Jack May
d184d3a732
Merge native programs parts into one unit ( #7047 )
2019-11-20 10:12:43 -08:00
Ryo Onodera
4fc767b3f6
Move version! from core:: to clap_utils:: ( #6944 )
...
* Move version! from core to clap-utils
* Completely move version! from core:: to clap_utils::
* rustfmt
* Do remaining transition after rebase
2019-11-14 13:10:38 +09:00
Michael Vines
fcc2874591
Remove/address some TODOs ( #6923 )
2019-11-13 09:43:15 -07:00
Ryo Onodera
d84f367317
Extract duplicate clap helpers into clap-utils ( #6812 )
2019-11-12 09:42:08 +09:00
Trent Nelson
9cde67086f
solana-keygen - Poor mans keypair encryption ( #6259 )
...
* SDK: Refactor (read|write)_keypair
Split file opening and data writing operations
Drop filename == "-" stdio signal. It is an app-level feature
* keygen: Move all non-key printing to stderr
* keygen: Adapt to SDK refactor
* keygen: Factor keypair output out to a helper function
2019-10-10 17:01:03 -06:00
Michael Vines
13fc518268
Clippy work towards rust 1.38 ( #6219 )
2019-10-02 18:04:18 -07:00
Michael Vines
11fc684f3c
Clear download progress bar to avoid flicker during archive extraction ( #6162 )
2019-09-29 17:56:33 -07:00
Tyera Eulberg
7babfd00c1
Revert back to reqwest, using rustls feature ( #6041 )
...
* Revert back to reqwest, using rustls feature
* Cargo.lock and crate-features
* Ignore test
2019-09-24 14:10:59 -06:00
Michael Vines
fee5c6c057
testnet-edge/testnet-beta now update while preserving the ledger ( #5979 )
...
* Check if an update is current before deploying it again
* Add (new) update command to deploy testnet updates
* Add --deploy-if-newer flag to permit conditional net updates
2019-09-19 12:03:47 -07:00
Tyera Eulberg
b19d9a50d3
Transition to ureq http client ( #5777 )
...
* Transition to ureq http client
* Remove unwrap
2019-09-04 12:11:44 -07:00
Greg Fitzgerald
471bc73a23
Fix Rust 1.37.0 compiler warnings ( #5530 )
...
Looks like most usages of trait objects should have introduced
a type variable instead.
2019-08-15 14:00:09 -06:00
Michael Vines
827f2b3a5c
Add update manifest as signer
2019-08-15 09:23:55 -07:00
Rob Walker
fd443d85c4
update config_api with initialization and recovery utilities ( #5523 )
...
* update config_api with initialization and recovery utilities
* nits
* move tests to config_tests to eliminate config_api solana_runtime dependency
* fixups
2019-08-14 15:54:31 -07:00
Michael Vines
c02373493b
Add print-slot subcommand ( #5478 )
...
automerge
2019-08-09 15:57:31 -07:00
Tyera Eulberg
72e9492ca6
Handle new active_release_dir, even if semver already downloaded ( #5431 )
2019-08-06 12:58:50 -06:00
Michael Vines
937f9ad049
Teach solana-install about release channels ( #5372 )
...
$ solana-install init edge # <-- setup an install using the edge channel
$ solana-install update # <-- update to the latest edge channel release
2019-07-31 17:30:17 -07:00
dependabot-preview[bot]
b59a99111c
Bump url from 1.7.2 to 2.0.0 ( #5247 )
...
* Bump url from 1.7.2 to 2.0.0
Bumps [url](https://github.com/servo/rust-url ) from 1.7.2 to 2.0.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v1.7.2...v2.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Adapt to url 2.0.0
2019-07-26 21:46:38 -07:00
Michael Vines
3bd35dd7cc
Remove usage of api.testnet.solana.com ( #5274 )
2019-07-24 17:06:26 -07:00
Michael Vines
b41e8333b1
Add support to install a specific Solana version directly from the Github releases ( #5248 )
2019-07-23 12:51:10 -07:00
Michael Vines
c2f74330ef
Drop ring crate ( #5242 )
2019-07-22 23:11:40 -07:00
Michael Vines
741a0a8a4e
Correctly decode update manifest ( #5086 )
...
automerge
2019-07-12 22:55:55 -07:00
Tyera Eulberg
5e221bf219
Make config_api more robust ( #4980 )
...
* Make config_api more robust
* Add test and update store instruction
2019-07-09 13:37:18 -06:00
Tyera Eulberg
281deae102
Update config program to accommodate multiple signers ( #4946 )
...
* Update config program to accommodate multiple signers
* Update install CLI
* Remove account_type u32; add handling for unsigned keys in list
* ConfigKeys doc
2019-07-08 18:33:56 -05:00
Michael Vines
3557975c1f
install: more little window fixes ( #4930 )
...
* Only add .exe extension if no extension was given
* Switch to ctrlc crate for freebie Windows ^C handling
2019-07-03 17:45:08 -07:00
Michael Vines
933ae51fcc
Add .exe extension before checking for a program file on windows ( #4902 )
2019-07-02 08:04:27 -07:00