Tyera Eulberg
f73a61d2ec
Bump version to 1.7.12
2021-08-27 16:24:24 +00:00
mergify[bot]
52dfb4a09c
Bump jsonrpc crates and remove old tokio (backport #18779 ) ( #19453 )
...
* Bump jsonrpc crates and remove old tokio (#18779 )
* Bump jsonrpc crates and replace old tokio
* Bump tokio
* getBlockTime
* getBlocks
* getBlocksWithLimit, getInflationReward
* getBlock
* getFirstAvailableBlock
* getTransaction
* getSignaturesForAddress
* getSignatureStatuses
* Remove superfluous runtime
(cherry picked from commit 8596db8f53
)
# Conflicts:
# Cargo.lock
# client/Cargo.toml
# core/Cargo.toml
# programs/bpf/Cargo.lock
# rpc/Cargo.toml
# rpc/src/rpc.rs
# validator/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-27 00:55:02 +00:00
mergify[bot]
cdbc77bf97
Add parameter to allow setting max-retries for SendTransaction rpc (backport #19387 ) ( #19416 )
...
* Add parameter to allow setting max-retries for SendTransaction rpc (#19387 )
* Add parameter to cap rpc send retries for a tx
* Add parameter to docs
(cherry picked from commit 7482861f4b
)
# Conflicts:
# banks-server/src/banks_server.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-25 07:23:03 +00:00
mergify[bot]
5193ba2062
Document more RpcClient methods (backport #19236 ) ( #19390 )
...
* Document more RpcClient methods (#19236 )
* Document more RpcClient methods
* Update client/src/rpc_client.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update RpcClient docs per feedback
* Address review feedback
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 628ad58912
)
# Conflicts:
# client/src/mock_sender.rs
* Fix conflicts
* Restore previous methods for docs
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-24 15:46:56 +00:00
mergify[bot]
43b414b0df
RPC: add option to exclude accounts from get_supply (backport #19270 ) ( #19283 )
...
* RPC: add option to exclude accounts from get_supply (#19270 )
(cherry picked from commit c053df143f
)
# Conflicts:
# rpc/src/rpc.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-08-18 20:22:06 +00:00
Trent Nelson
ab5d032634
Bump version to v1.7.11
2021-08-12 06:55:18 +00:00
mergify[bot]
c9f763ea6e
Use last_valid_block_height in services and client apps (backport #19163 ) ( #19171 )
...
* Use last_valid_block_height in services and client apps (#19163 )
* Add deprecated tag to Bank::get_blockhash_last_valid_slot
* Update SendTransactionService to use last_valid_block_height
* Update solana-tokens to use last_valid_block_height
* Remove dangling file
* Update solana program to use last_valid_block_height
* Update Banks crates to use last_valid_block_height
(cherry picked from commit 5970083b4d
)
# Conflicts:
# cli/src/program.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-11 09:07:53 +00:00
mergify[bot]
894f121d0e
Fix deserialization of RPC errors in HttpSender ( #19110 ) ( #19127 )
...
Fixes #15576
(cherry picked from commit e4b66a5913
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-08-09 22:36:16 -07:00
mergify[bot]
78086329be
Add more API documentation for Rust RpcClient ( #19021 ) ( #19091 )
...
* Add doc links to Transaction API docs
* Add more RpcClient API docs
* Reflow some rpc_client docs
* Update client/src/rpc_client.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update client/src/rpc_client.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update client/src/rpc_client.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update sdk/src/transaction.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update RpcClient docs per review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit b67ffab370
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-08-05 23:42:56 +00:00
mergify[bot]
7d0a9e0381
Add some docs for RpcClient and friends (backport #18748 ) ( #19036 )
...
* Add some docs for RpcClient and friends (#18748 )
* Add some docs for RpcSender, HttpSender, MockSender
* Support SimulateTransaction in MockSender
* Add docs for RpcClient constructors
* Add some more RpcClient examples
* rustfmt
* Reflow docs in rpc_client and friends
(cherry picked from commit 5dcfd7ce74
)
# Conflicts:
# client/src/mock_sender.rs
* Fix conflicts
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-03 22:18:48 +00:00
Trent Nelson
b7f1f19d8e
Bump version to v1.7.10
2021-07-31 01:19:33 -06:00
mergify[bot]
0707290bbf
Fix serialization of parameters in RpcClient::get_block_production_with_config (backport #18998 ) ( #19000 )
...
* Fix serialization of parameters in RpcClient::get_block_production_with_config (#18998 )
Params must be an array or null.
(cherry picked from commit 58f395257b
)
# Conflicts:
# client/src/mock_sender.rs
* Fix conflict
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-31 02:00:32 +00:00
mergify[bot]
aedcab846c
RpcClient::send<T> now supports client-defined RPC methods via RpcRequest::Custom ( #18882 )
...
(cherry picked from commit f264511585
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-07-24 19:15:51 +00:00
Michael Vines
548ddff7ed
Bump version to v1.7.9
2021-07-24 11:23:44 -06:00
Ryo Onodera
1cc8de0fed
Bump version to v1.7.8 ( #18866 )
2021-07-24 01:14:03 +09:00
Trent Nelson
19049ca91b
Bump version to v1.7.7
2021-07-17 08:42:22 +00:00
sakridge
551dc0a74c
Bump 1.7 version ( #18723 )
2021-07-16 09:43:18 -06:00
Trent Nelson
336c1c1d37
nonce: Unify NonceError
with SystemError
2021-07-16 04:41:51 -06:00
mergify[bot]
1570afe493
Cli configurable validators (backport #18630 ) ( #18666 )
...
* rpc: more params for `GetVoteAccountsConfig`
(cherry picked from commit bf90ea282a
)
* cli: allow returning more `solana validators`
(cherry picked from commit a4a24b6531
)
# Conflicts:
# Cargo.lock
Co-authored-by: Trent Nelson <trent@solana.com >
2021-07-16 09:49:13 +00:00
mergify[bot]
e3eb9c195a
Cli: expose last valid block height ( #18620 ) ( #18627 )
...
* Add Fees struct to client
* Add complete RpcClient::get_fees methods
* Switch cli to last_valid_block_height
(cherry picked from commit 8ad4ffdee5
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-07-13 06:34:31 +00:00
mergify[bot]
8dd5ec6fbd
refactor(rpc_client): const number of retries for send and confirm transaction ( #18390 ) ( #18427 )
...
* refactor(rpc_client): simplfy send and confirm transaction flow
* chore: configurable num of retries for send and confirm
(cherry picked from commit 70234dfdf4
)
Co-authored-by: hrls <viktor.kharitonovich@gmail.com >
2021-07-13 06:28:11 +00:00
Michael Vines
e5d60bc56d
Record vote account commission with voting/staking rewards and surface in RPC
...
(cherry picked from commit 4098af3b5b
)
2021-07-12 17:07:07 -07:00
mergify[bot]
03d213d764
Reject transactions with extra signatures ( #18306 ) ( #18370 )
...
* Reject transactions with extra signatures
* fix tests
* fix check
* fix check
* tx method
* fix checks
(cherry picked from commit d5961e9d9f
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-07-01 20:07:43 +00:00
Trent Nelson
4466aa39c4
Bump version to v1.7.5
2021-06-30 22:55:01 -06:00
mergify[bot]
57f76a2111
Use timeout to allow RpcClient to retry initial transaction confirmation ( #18311 ) ( #18316 )
...
* Tidying: relocate function
* Use proper helper method for RpcClient commitment
* Add RpcClientConfig
* Add configurable confirm_transaction_initial_timeout
* Use default 5s timeout for initial tx confirmation
(cherry picked from commit 9d4428d3d8
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-06-30 03:09:47 +00:00
Trent Nelson
597429ab3e
Bump version to v1.7.4
2021-06-22 19:57:34 +00:00
mergify[bot]
6f376489a5
Handle removing slots during account scans ( #17471 ) ( #17953 )
...
(cherry picked from commit ccc013e134
)
Co-authored-by: carllin <carl@solana.com >
2021-06-22 00:59:12 +00:00
mergify[bot]
0e7512a225
Fix Nightly Clippy Warnings (backport #18065 ) ( #18070 )
...
* chore: cargo +nightly clippy --fix -Z unstable-options
(cherry picked from commit 6514096a67
)
# Conflicts:
# core/src/banking_stage.rs
# core/src/cost_model.rs
# core/src/cost_tracker.rs
# core/src/execute_cost_table.rs
# core/src/replay_stage.rs
# core/src/tvu.rs
# ledger-tool/src/main.rs
# programs/bpf_loader/build.rs
# rbpf-cli/src/main.rs
# sdk/cargo-build-bpf/src/main.rs
# sdk/cargo-test-bpf/src/main.rs
# sdk/src/secp256k1_instruction.rs
* chore: cargo fmt
(cherry picked from commit 789f33e8db
)
* Updates BPF program assert_instruction_count tests.
(cherry picked from commit c1e03f3410
)
# Conflicts:
# programs/bpf/tests/programs.rs
* Resolve conflicts
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-06-18 20:02:48 +00:00
Stephen Akridge
d159ae9342
Bump version to v1.7.3
2021-06-17 15:34:50 -06:00
Ryo Onodera
48e565038a
Bump version to v1.7.2 ( #17831 )
2021-06-08 10:29:39 +00:00
Michael Vines
975c942ea7
Bump version to v1.7.1
2021-06-02 05:21:14 +00:00
Michael Vines
cbce440af4
simulateTransaction can now return accounts modified by the simulation
2021-05-26 14:20:23 -07:00
Tyera Eulberg
6abe089740
Add custom error for tx-history queries when node does not support ( #17494 )
2021-05-26 13:27:41 -06:00
Tyera Eulberg
e9bc1c6b07
Add last valid block height to rpc Fees ( #17506 )
...
* Add last_valid_block_height to fees rpc
* Add getBlockHeight rpc
* Update docs
2021-05-26 07:26:19 +00:00
Justin Starry
e14f3eb529
rename flag
2021-05-25 17:32:00 -07:00
Justin Starry
96cef5260c
Add a flag to simulateTransaction to use most recent blockhash
2021-05-25 17:32:00 -07:00
Nikita
d41266e4e9
rpc: add context toggle to getProgramAccounts ( #17399 )
...
* fix(rpc): return context in get_program_accounts
* doc(rpc): document withContext flag
* fix(rpc): fix comment
Co-authored-by: Michael Vines <mvines@gmail.com >
* fix(rpc): fix doc
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-22 07:12:21 +00:00
Tao Zhu
0781fe1b4f
Upgrade Rust to 1.52.0 ( #17096 )
...
* Upgrade Rust to 1.52.0
update nightly_version to newly pushed docker image
fix clippy lint errors
1.52 comes with grcov 0.8.0, include this version to script
* upgrade to Rust 1.52.1
* disabling Serum from downstream projects until it is upgraded to Rust 1.52.1
2021-05-19 09:31:47 -05:00
Michael Vines
63b97729e6
get_program_accounts_with_config() now correctly defaults to RpcClient's commitment level
2021-05-18 19:57:40 +00:00
Trent Nelson
67e6a3106f
rpc: plumb shred_version through RpcContactInfo
2021-05-14 08:36:08 +00:00
Tyera Eulberg
27004f1b76
Return error for excluded secondary-index keys ( #17193 )
...
* Add runtime helpers to check secondary indexes for key
* Add custom rpc error
* Check secondary-index key inclusion in rpc
* Clone complete AccountSecondaryIndexes into rpc to avoid bank query
2021-05-13 21:04:21 +00:00
Michael Vines
7d1637d89a
RpcClient now respects the retry-after server response header when getting rate limited
2021-05-05 18:11:57 -07:00
Michael Vines
542d88929f
Add getBlockProduction RPC method
2021-04-28 20:02:54 -07:00
Michael Vines
f93565da6f
Compress account data by default
2021-04-27 04:56:56 +00:00
Michael Vines
59fc33635a
Add getVoteAccounts RPC method parameter to restrict results to a single vote account
2021-04-27 04:27:15 +00:00
Michael Vines
c2becbc0a8
solana leader-schedule -um
works again
2021-04-26 16:29:35 -07:00
Justin Starry
75b8434b76
Add TPU client for sending txs to the current leader tpu port ( #16736 )
...
* Add TPU client for sending txs to the current leader tpu port
* Update tpu_client.rs
2021-04-23 09:35:12 +08:00
Tyera Eulberg
636b5987af
Update getLeaderSchedule options ( #16749 )
2021-04-22 19:27:30 +00:00
Michael Vines
6004c0abf5
getLeaderSchedule now supports filtered results based on validator identity
2021-04-21 17:59:26 -07:00
Michael Vines
a911ae00ba
clippy
2021-04-18 20:55:02 -07:00