mergify[bot]
5737ea448e
CLI: Surface deploy transaction errors ( #13169 )
...
(cherry picked from commit a82971879f
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-26 22:26:02 +00:00
mergify[bot]
5084871e27
Cli: deploy programs via TPU ( #13090 ) ( #13110 )
...
* 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
(cherry picked from commit 16944e218f
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-23 17:14:37 +00:00
mergify[bot]
8f615278d2
Add deploy err if program-account balance is too high ( #13091 ) ( #13097 )
...
* Add deploy err if program-account balance is too high
* Review comments
* Add system-program check
* Rename and unhide flag
(cherry picked from commit 4669fa0f98
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-23 05:50:21 +00:00
mergify[bot]
b90b46fee1
Allow nodes to advertise a different rpc address over gossip ( #13053 ) ( #13077 )
...
* Allow nodes to advertise a different rpc address over gossip
* Feedback
(cherry picked from commit 8b0242a5d8
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-10-22 04:44:41 +00:00
Michael Vines
5ad0ccdfe1
cargo fmt
2020-10-21 20:27:57 -07:00
Michael Vines
422bb3c526
Run codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand
2020-10-21 20:27:57 -07:00
mergify[bot]
a86a781fd5
CLI: Print address ephemeral keypair seed phrase to stderr on deploy failure (bp #13046 ) ( #13054 )
...
* CLI: Print address ephemeral keypair seed phrase to stderr on deploy failure
(cherry picked from commit 2905ccc7ec
)
# Conflicts:
# cli/Cargo.toml
# cli/src/cli.rs
* Fix conflicts
Co-authored-by: Trent Nelson <trent@solana.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-10-21 21:03:00 +00:00
mergify[bot]
b384ce9e03
Skip 'Stake by Feature Set' output when showing status of a single feature ( #13051 )
...
(cherry picked from commit ad65d4785e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-21 07:01:20 +00:00
Tyera Eulberg
78be777b65
Revert "CLI: Put deploy
ephemeral keypair behind a flag ( #12941 )" ( #12981 )
...
This reverts commit c2806aa2f9
.
2020-10-19 17:31:33 +00:00
mergify[bot]
1982a7a8e3
Check payer balance for program account rent as needed ( #12952 ) ( #12954 )
...
(cherry picked from commit b6bfed64cb
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-16 19:11:13 +00:00
mergify[bot]
c2806aa2f9
CLI: Put deploy
ephemeral keypair behind a flag ( #12941 )
...
(cherry picked from commit 5a5b7f39c1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-16 06:09:40 +00:00
mergify[bot]
43121a56eb
Surface 'Program account allocation failed' error details ( #12902 )
...
(cherry picked from commit eec3d25ab9
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-15 10:25:26 +00:00
mergify[bot]
df8b07ddbd
solana vote-account
/solana stake-account
now works with RPC servers without --enable-rpc-transaction-history
(bp #12826 ) ( #12848 )
...
* Implementation-defined RPC server errors are now accessible to client/ users
(cherry picked from commit 247228ee61
)
* Cleanly handle RPC servers that don't have --enable-rpc-transaction-history enabled
(cherry picked from commit 14d793b22c
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-13 18:14:45 +00:00
mergify[bot]
689aa4d44f
Check ELF file for errors before deploy (bp #12741 ) ( #12800 )
...
* 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 >
(cherry picked from commit 6bbf6a79b7
)
# Conflicts:
# Cargo.lock
# cli/Cargo.toml
# cli/src/cli.rs
* rebase
Co-authored-by: Alexandre Esteves <2335822+alexfmpe@users.noreply.github.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-13 05:12:33 +00:00
mergify[bot]
e4bd382472
Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli (bp #12768 ) ( #12789 )
...
* Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli
(cherry picked from commit c5c8da1ac0
)
# Conflicts:
# Cargo.lock
# runtime/src/bank.rs
# transaction-status/Cargo.toml
* fix: surface full block rewards type
(cherry picked from commit 1b16790325
)
* resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-10 06:25:10 +00:00
mergify[bot]
9a63cf51b5
Fix typo ( #12780 ) ( #12783 )
...
(cherry picked from commit 5800217998
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-10 02:18:18 +00:00
mergify[bot]
cab1b102e6
Minor variable name cleanup ( #12744 )
...
(cherry picked from commit 3a04026599
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-09 02:03:03 +00:00
Michael Vines
fb0f0adb16
Display vote/stake account epoch rewards
2020-10-08 08:34:40 -07:00
mergify[bot]
90d586a4f8
solana stakes
now employs server-side filtering if only one vote account is provided (#12657 )
...
(cherry picked from commit 9abaf6ec1d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-03 02:00:49 +00:00
mergify[bot]
bd94250fca
Improve solana deploy ( #12621 ) ( #12646 )
...
* 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
(cherry picked from commit 19f385db76
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-02 20:44:26 +00:00
mergify[bot]
db5251a524
solana catchup
now retries if the initial RPC connection fails (#12645 )
...
(cherry picked from commit 978b26a9c5
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-02 20:42:51 +00:00
mergify[bot]
de1e2f9c0c
Add inflation subcommand ( #12632 )
...
(cherry picked from commit 42aeead6b4
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-02 07:14:02 +00:00
mergify[bot]
01f93003d3
Improve block
command output ( #12631 )
...
(cherry picked from commit 14036ac580
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-02 07:03:29 +00:00
Tyera Eulberg
0965389f41
Enable json output from solana feature status ( #12554 ) ( #12559 )
2020-09-29 21:00:20 +00:00
mergify[bot]
655577f9fe
feature subcommand: display active stake by feature id when feature activation is not available ( #12543 )
...
(cherry picked from commit 322dbd894f
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-29 06:17:31 +00:00
Trent Nelson
3781ad259b
clap-utils: Allow nonce/offline args to be global (bp #12538 )
2020-09-29 04:51:33 +00:00
mergify[bot]
a550d82202
Enable commitment arg on solana deploy ( #12532 ) ( #12534 )
...
(cherry picked from commit 35208c5ee7
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-09-28 23:32:50 +00:00
mergify[bot]
bc3aa53e02
Runtime feature activation framework (bp #12376 ) ( #12497 )
...
* Runtime feature activation framework
(cherry picked from commit 93259f0bae
)
# Conflicts:
# runtime/src/bank.rs
* Add feature set identifier to gossiped version information
(cherry picked from commit 35f5f9fc7b
)
# Conflicts:
# Cargo.lock
# version/Cargo.toml
* Port instructions sysvar and secp256k1 program activation to FeatureSet
(cherry picked from commit c10da16d7b
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/message_processor.rs
* Add feature management commands
(cherry picked from commit 93ed0ab2bb
)
# Conflicts:
# Cargo.lock
# cli/Cargo.toml
* Make test_process_rest_api less fragile
(cherry picked from commit 7526bb96f3
)
* Remove id field
(cherry picked from commit cc6ba1e131
)
* FeatureSet test
(cherry picked from commit 92406cf9a0
)
* cargo fmt
(cherry picked from commit 199940d683
)
* cli review feedback
(cherry picked from commit 3a2b8c5e5b
)
* Rename active() to is_active()
(cherry picked from commit e39fac9f01
)
* Resolve merge conflicts
* Remove continues from compute_active_feature_set()
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-26 17:49:53 +00:00
Trent Nelson
838aaee144
CLI: Factor out offline helpers (bp #12382 )
2020-09-24 04:41:30 +00:00
mergify[bot]
339e72d8d2
Simplify cli node version output, display semver only by default ( #12386 )
...
(cherry picked from commit 4fa443becf
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-22 08:07:28 +00:00
mergify[bot]
8af90c9c08
Add keccak-secp256k1 instruction ( #11839 ) ( #12368 )
...
* Implement keccak-secp256k1 instruction
Verifies eth addreses with ecrecover function
* Move secp256k1 test
Co-authored-by: sakridge <sakridge@gmail.com >
2020-09-21 18:09:05 +00:00
mergify[bot]
c77fe54629
CLI: Use Base58 encoding rather than deprecated Binary for TX decode ( #12265 )
...
(cherry picked from commit 83f93fed02
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-09-16 05:43:38 +00:00
mergify[bot]
c3c3872f8d
validator-info get/set
no longer crash on invalid account data (#12258 )
...
(cherry picked from commit 56282f0c01
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-16 01:17:45 +00:00
mergify[bot]
aac38516da
cli: add block
and first-available-block
commands (bp #12083 ) ( #12084 )
...
* Add first-available-block command
(cherry picked from commit 6677996369
)
* Add block command
(cherry picked from commit 27752c4e4d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-06 20:53:44 +00:00
mergify[bot]
e9a2dd0bc1
Add --show-transactions flag to transaction-history command ( #12071 )
...
(cherry picked from commit 2332dd774f
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-05 16:52:38 +00:00
mergify[bot]
aa3bdd3730
Revert signature-notification format change (bp #12032 ) ( #12038 )
...
* Revert signature-notification format change (#12032 )
* Use untagged RpcSignatureResult enum to avoid breaking downstream consumers of current signature subscriptions
* Clean up client duplication
* Clippy
(cherry picked from commit 39246f9dd7
)
# Conflicts:
# core/src/rpc_pubsub.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-09-04 01:34:49 +00:00
mergify[bot]
53ed6a2298
Fix use-deprecated-loader arg ( #11921 ) ( #11929 )
...
(cherry picked from commit 6234909373
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-31 09:53:34 +00:00
mergify[bot]
4e604e1211
Add (hidden) --use-deprecated-loader flag to solana deploy
( #11828 )
...
(cherry picked from commit de736e00ad
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-25 16:56:29 +00:00
mergify[bot]
132550cd7a
RPC: Allow the sendTransaction preflight commitment level to be configured (bp #11792 ) ( #11794 )
...
* Allow the sendTransaction preflight commitment level to be configured
(cherry picked from commit b660704faa
)
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-22 16:41:25 +00:00
mergify[bot]
e41004f185
rpc: rework binary encoding. BREAKING CHANGE (bp #11646 ) ( #11674 )
...
* Add base64 (binary64) encoding for getConfirmedTransaction/getConfirmedBlock
(cherry picked from commit b5f3ced860
)
* decode-transaction now supports binary64
(cherry picked from commit 2ebc68a9e2
)
# Conflicts:
# cli/src/cli.rs
* Rework UiAccountData encode/decode such that it works from Rust
(cherry picked from commit 757e147b3b
)
# Conflicts:
# account-decoder/src/lib.rs
# cli/src/cli.rs
* Rename Binary64 to Base64. Establish Base58 encoding
(cherry picked from commit adc984a225
)
# Conflicts:
# account-decoder/src/lib.rs
* Remove "binary" encoding. Document "encoding" as required
(cherry picked from commit e5281157fa
)
* resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-18 02:53:10 +00:00
mergify[bot]
9015e47cc5
Rpc: Add until parameter for getConfirmedSignaturesForAddress2 ( #11644 ) ( #11648 )
...
* 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
(cherry picked from commit 6c5b8f324a
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-15 17:59:35 +00:00
mergify[bot]
83597a5ce1
Fix solana CLI deploy ( #11520 ) ( #11530 )
...
* Refresh blockhash for program writes and finalize transactions
* Refactor to use current api, eliminating an rpc call
* Review comment
(cherry picked from commit c0d6761f63
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-11 09:52:11 +00:00
mergify[bot]
1589a41178
Add config param to specify offset/length for single and program account info (bp #11515 ) ( #11518 )
...
* 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
(cherry picked from commit 88ca04dbdb
)
# Conflicts:
# cli/src/cli.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-11 00:03:18 +00:00
mergify[bot]
3e483314b6
Decode native-program and sysvar accounts (bp #11463 ) ( #11485 )
...
* Decode native-program and sysvar accounts (#11463 )
* Pass pubkey in to account-decoder for sysvars
* Decode sysvar accounts
* Decode config accounts; move validator-info lower
* Decode stake accounts
* Review comments
* Stringify any account lamports and epochs that can be set to u64::MAX
(cherry picked from commit a9f76862fb
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-09 09:18:17 +00:00
mergify[bot]
8a67504578
Add Binary64 option for account data ( #11474 ) ( #11481 )
...
* Add Binary64 option for account data
* Decode into binary64
* Reword docs
(cherry picked from commit 068d23f298
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-08-09 06:50:24 +00:00
mergify[bot]
fa9aa0a1d7
Token Accounts: return ui_amount, decimals with decoded account ( #11407 ) ( #11453 )
...
* Return ui_amount, decimals from token client methods
* Return ui_amount, decimals in RPC jsonParsed token accounts
* Fixup docs
* Return ui_amount, decimals in pubsub jsonParsed token accounts
* Remove unnecessary duplicate struct
* StringAmount rename
(cherry picked from commit b7c2681903
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-07 19:05:35 +00:00
mergify[bot]
1a42a40492
RPC: Plug getConfirmedSignaturesForAddress2 into bigtable storage (bp #11395 ) ( #11406 )
...
* Plug getConfirmedSignaturesForAddress2 into bigtable storage
(cherry picked from commit 4222932e08
)
* Upgrade help description
(cherry picked from commit 9abb7db5f8
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-06 07:14:46 +00:00
mergify[bot]
888f3522d8
Add getConfirmedSignaturesForAddress2 RPC method (bp #11259 ) ( #11394 )
...
* Add getConfirmedSignaturesForAddress2 RPC method
(cherry picked from commit 1b2276520b
)
* Reimplement transaction-history command with getConfirmedSignaturesForAddress2
(cherry picked from commit 087fd32ce3
)
* Rework get_confirmed_signatures_for_address2
(cherry picked from commit a11f137810
)
* Rename startAfter to before
(cherry picked from commit 02c0981ecf
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-05 22:47:50 +00:00
Greg Fitzgerald
61d9d219f9
Withdraw authority no longer implies a custodian ( #11302 )
...
* Withdraw authority no longer implies a custodian
Before this change, if the withdraw authority and custodian had
the same public key, then a withdraw authority signature would
imply a custodian signature and lockup would be not be enforced.
After this change, the client's withdraw instruction must
explictly reference a custodian account in its optional sixth
account argument.
Likewise, the fee-payer no longer implies either a withdraw
authority or custodian.
* Fix test
The test was configuring the stake account with the fee-payer as
the withdraw authority, but then passing in a different key to
the withdraw instruction's withdraw authority parameter. It only
worked because the second transaction was signed by the fee-payer.
2020-07-31 13:37:53 -06:00
Trent Nelson
6f7e121b68
CLI: Add arg to adjust RPC timeout
2020-07-23 22:29:40 +00:00