mergify[bot]
c769bcc418
Add getTokenLargestAccounts endpoint (bp #11322 ) ( #11338 )
...
* Add getTokenLargestAccounts endpoint (#11322 )
(cherry picked from commit d1b2e6cdf2
)
* Rebase on v1.2
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-02 17:58:55 +00:00
Michael Vines
f06a4c7861
Update spl-token and spl-memo
2020-08-02 07:53:46 -07:00
Michael Vines
0cae099d12
Bump version to v1.2.18
2020-08-01 21:15:25 -07:00
Greg Fitzgerald
9f1bb75445
Upgrade ed25519-dalek ( #11183 )
2020-08-01 17:51:59 -07:00
Trent Nelson
139bb32dba
Bump version to 1.2.17
2020-08-01 07:14:47 +00:00
Greg Fitzgerald
e33f9ea6b5
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 17:18:23 -06:00
mergify[bot]
b0e14ea83c
Add token rpc endpoints to rpc-client (bp #11315 ) ( #11320 )
...
* Add token rpc endpoints to rpc-client (#11315 )
(cherry picked from commit 9bcfc51df1
)
# Conflicts:
# client/src/rpc_client.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-31 23:10:29 +00:00
mergify[bot]
782a549613
Enable new fork choice on mainnet, 400_000 slots into epoch 61 ( #11312 ) ( #11319 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit d7e961dac4
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-31 22:13:23 +00:00
Michael Vines
2f8d0f88d6
Avoid spl-sdk dependency, which inhibits crate publishing
2020-07-31 00:05:13 +00:00
Trent Nelson
5323622842
Bump version to 1.2.16
2020-07-30 10:55:09 -06:00
mergify[bot]
c852923347
Reject unsigned transactions sent via RPC (bp #11282 ) ( #11287 )
...
* Add failing test for TX sent via RPC with no signatures
(cherry picked from commit b962b2ce2d
)
* Dereplicode send_transaction and request_airdrop RPC handlers
(cherry picked from commit a7079e4dde
)
* Add new RPC error for TXs with no signatures
(cherry picked from commit 9778fedd7a
)
* Reject TXs sent via RPC with no signatures
(cherry picked from commit a888f2f516
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-07-30 08:17:43 +00:00
mergify[bot]
a7f4d1487a
Add SPL Token-specific rpc endpoints (bp #11231 ) ( #11261 )
...
* Add SPL Token-specific rpc endpoints (#11231 )
* Simplify account-decoder program ids + spl_token helper
* Spl program namespace version
* Add getTokenAccountBalance endpoint
* Remove token program id from getTokenAccountBalance request
* Add getTokenSupply endpoint
* Remove token program id from getTokenSupply request
* Add getTokenAccountsByOwner/Delegate endpoints
* Remove token program id from getTokenAccountsByOwner/Delegate requests
* Named parameter
(cherry picked from commit b45ac5d4db
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
# core/Cargo.toml
# core/src/rpc.rs
# transaction-status/Cargo.toml
* Fix backport
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-29 17:08:21 +00:00
Trent Nelson
11e43e1654
Bump version to 1.2.15
2020-07-29 06:59:27 +00:00
Trent Nelson
9978971bd9
Fill out missing RPC request received debug logging
2020-07-29 02:04:34 +00:00
Dan Albert
ef296aa7db
Update non_circulating_supply.rs
2020-07-27 16:39:13 -06:00
Trent Nelson
b83a4cae90
Bump version to 1.2.14
2020-07-25 04:00:17 +00:00
mergify[bot]
f9fd4bd24c
Test cleanup ( #11192 ) ( #11193 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit c0dc21620b
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-24 12:09:39 +00:00
mergify[bot]
c55a11d160
Add encoding and filters parameters to rpc Subscriptions (bp #11065 ) ( #11187 )
...
* Add encoding and filters parameters to rpc Subscriptions (#11065 )
* Plumb account configs and enable encoding
* Enable filters for pubsub program accounts
* Update docs
(cherry picked from commit c90de8978d
)
* Fix test
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-23 21:53:05 +00:00
Tyera Eulberg
0d9802a2cd
Use OrderedIterator in collect_balances ( #11173 )
2020-07-22 16:59:54 -06:00
Trent Nelson
ff48ea20de
Bump version to 1.2.13
2020-07-22 06:08:41 +00:00
mergify[bot]
e9b40db319
Use OrderedIterator in TransactionStatusService ( #11149 ) ( #11151 )
...
* Split out get-first-err for unit testing
* Add failing test
* Add missing ordering
(cherry picked from commit 6c38369042
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-07-21 21:36:02 +00:00
carllin
e773faeb24
Add replay votes to gossip vote tracking ( #11124 )
...
* Plumb replay vote channel
* Don't send redundant slots to repair_service
* Update test
* Keep gossip only for debugging gossip in the future
* Add comments
* Switch to using select()
* Fix replay -> gossip vote not counting toward gossip only stake
* tests
Co-authored-by: Carl <carl@solana.com >
2020-07-19 22:25:16 -07:00
carllin
3da254c745
Bump version to 1.2.12 ( #11088 )
...
Co-authored-by: Me <carl_solana_com@carl-dev.c.principal-lane-200702.internal>
2020-07-15 23:55:05 +00:00
mergify[bot]
acd25124d4
Make accounts file clean faster ( #11071 ) ( #11077 )
...
(cherry picked from commit 7fe870ba48
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-07-15 18:00:41 +00:00
mergify[bot]
d4bbb7f516
Expose TransactionStatusService to the other blockstore_processor path (bp #11070 ) ( #11074 )
...
* Expose tss to the other blockstore_processor path (#11070 )
(cherry picked from commit 9a80e31bae
)
# Conflicts:
# core/src/validator.rs
# ledger/src/blockstore_processor.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-15 05:50:45 +00:00
mergify[bot]
e859ad37a8
Add TreeDiff trait to reuse tree functions ( #11046 ) ( #11048 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit e9cbdf711b
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-14 09:03:53 +00:00
mergify[bot]
5205eb382e
Switch to using weighted repair in RepairService ( #10735 ) ( #10985 )
...
Co-authored-by: Carl <carl@solana.com >
2020-07-10 16:15:36 -07:00
Michael Vines
b07b6e56fa
getConfirmedBlocks now has an upper limit on slot range
...
(cherry picked from commit aef6bf272e
)
2020-07-10 15:40:03 -07:00
mergify[bot]
07d14f6f07
Add RepairWeight to track votes seen in gossip for weighted repair ( #10903 ) ( #10938 )
...
* Add RepairWeight
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 3f6042d8b3
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-10 14:13:56 -07:00
sakridge
2896fdb603
Update version to v1.2.11 ( #10966 )
2020-07-09 06:48:30 -07:00
sakridge
50970bc8f9
Update version to v1.2.10 ( #10962 )
2020-07-08 15:34:19 -07:00
mergify[bot]
d3b8129593
Clean accounts path on validator startup ( #10929 ) ( #10944 )
...
Co-authored-by: sakridge <sakridge@gmail.com >
2020-07-07 18:27:49 +00:00
Tyera Eulberg
f7fb5aebac
v1.2 instruction and account decoding backports ( #10939 )
...
* Revert "Rpc: add filter to getProgramAccounts (#10888 ) (#10932 )"
This reverts commit 9311a6e356
.
* Add jsonParsed option for EncodedTransactions; add memo parser (#10711 )
* Add jsonParsed option for EncodedTransactions; add memo parser
* Use kebab case for program names
* Add account-key parsing
* Add parse test
* Update transaction encoding docs (#10833 )
* Add account-decoder utilities (#10846 )
* Fix comment and make less pub
* Add account-decoder crate and use to decode vote and system (nonce) accounts
* Update docs
* Rename RpcAccount struct
* s/Rpc/Display
* Call it jsonParsed and update docs
* Revert "s/Rpc/Display"
This reverts commit 6e7149f503
.
* s/Rpc/Ui
* Add tests
* Ui more things
* Comments
* Update struct prefixes to Ui (#10874 )
* Update comments
* Use Ui prefix
* Rpc: add filter to getProgramAccounts (#10888 )
* Add RpcFilterType, and implement CompareBytes for getProgramAccounts
* Accept bytes in bs58
* Rename to memcmp
* Add Memcmp optional encoding field
* Add dataSize filter
* Update docs
* Clippy
* Simplify tests that don't need to test account contents; add multiple-filter tests
2020-07-07 09:35:35 -06:00
Tyera Eulberg
9311a6e356
Rpc: add filter to getProgramAccounts ( #10888 ) ( #10932 )
...
* Add RpcFilterType, and implement CompareBytes for getProgramAccounts
* Accept bytes in bs58
* Rename to memcmp
* Add Memcmp optional encoding field
* Add dataSize filter
* Update docs
* Clippy
* Simplify tests that don't need to test account contents; add multiple-filter tests
2020-07-06 21:45:12 +00:00
mergify[bot]
8c706892df
Rpc: Add getStakeActivation endpoint (bp #10902 ) ( #10930 )
...
* Rpc: Add getStakeActivation endpoint (#10902 )
* Add getStakeActivation endpoint
* Add docs
* Update docs/src/apps/jsonrpc-api.md
Co-authored-by: Michael Vines <mvines@gmail.com >
* Rework return type
* Update docs
* Rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 4de0713aa3
)
* Fix build
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-06 21:23:27 +00:00
mergify[bot]
36e8977f1d
Repair timing ( #10913 ) ( #10917 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 28e15a63e5
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-04 03:48:29 +00:00
sakridge
1584ec220c
Move clean accounts to background service ( #10904 )
2020-07-02 22:39:22 -07:00
mergify[bot]
fb366a7236
Add weighted traversal ( #10877 ) ( #10901 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit f17ac70bb2
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-02 23:52:03 +00:00
mergify[bot]
b903158543
getInflationRate now only supports the current epoch ( #10887 )
...
(cherry picked from commit d53228e69d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-07-02 03:36:47 +00:00
mergify[bot]
d8fa19336c
Add heaviest subtree utility functions ( #10863 ) ( #10865 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 7a71580d53
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-01 11:21:22 +00:00
sakridge
191483cf9f
Update cargo.* version to 1.2.9 ( #10861 )
2020-06-30 23:21:10 +00:00
sakridge
88eeb817e4
More guard rails for restart with ledger procedure ( #10854 )
...
* Add expected_bank_hash required for supermajority
* Print snapshot hash in ledger-tool create-snapshot.
2020-06-30 12:55:25 -07:00
Stephen Akridge
89d78dcfcf
Update cargo.* version to 1.2.8
2020-06-30 09:03:28 -07:00
mergify[bot]
3e29325410
Fix fork detection ( #10839 ) ( #10844 )
...
* Fix fork detection
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 4b93a7c1f6
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-06-30 04:16:05 +00:00
mergify[bot]
4dc98c3dbd
Reduce logging lines ( #10835 ) ( #10841 )
...
(cherry picked from commit d9b389f510
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-06-30 00:28:58 +00:00
mergify[bot]
9caad645e2
Remove ledger purge batching ( #10830 ) ( #10836 )
...
(cherry picked from commit 583cec922b
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-06-29 23:10:45 +00:00
mergify[bot]
6cb76ac326
More replay stage timing metrics ( #10828 ) ( #10829 )
...
(cherry picked from commit 17a2128a8f
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-06-28 18:27:35 +00:00
carllin
ab32d13da1
Add debugging ( #10820 )
...
Co-authored-by: Carl <carl@solana.com >
2020-06-26 08:09:04 +00:00
mergify[bot]
cefe46e981
Clean up rpc module ( #10812 ) ( #10815 )
...
* Clean up rpc module
* Simplify getting bank
(cherry picked from commit 62b873b054
)
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-06-26 01:59:06 +00:00
carllin
1e6285e64e
Fix leaf propagation in case of no votes in HeaviestForkChoice ( #10807 )
...
* Fix leaf propagation logic
Co-authored-by: Carl <carl@solana.com >
2020-06-25 04:05:26 -07:00