3652bd57a9
Ensure highest_confirmed_root only grows (bp #11596 ) ( #11607 )
...
* Ensure highest_confirmed_root only grows (#11596 )
* Split out commitment-cache update for unit testing
* Add failing test
* Ensure highest_confirmed_root only grows
(cherry picked from commit 4da1e9833c
)
# Conflicts:
# core/src/commitment_service.rs
* Adapt to v1.2
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-13 09:19:14 +00:00
5077d6bfb3
Return blockstore signatures-for-address despite bigtable error ( #11594 ) ( #11598 )
...
(cherry picked from commit b1e452f876
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-13 01:22:31 +00:00
f0ee3e9deb
Fix assertion failure ( #11572 ) ( #11589 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 473b5249e3
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-08-12 20:38:57 +00:00
babad39846
Fix typo: epoch => slot... ( #11573 ) ( #11579 )
...
(cherry picked from commit 51e818ad64
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-08-12 09:23:05 +00:00
c15aa4a968
Bump version to 1.2.23
2020-08-12 00:34:33 +00:00
3124a88284
Move cluster slots update to separate thread (bp #11523 ) ( #11557 )
...
* Move cluster slots update to separate thread (#11523 )
* Add cluster_slots_service
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 7ef50a9352
)
# Conflicts:
# core/src/repair_service.rs
# core/src/retransmit_stage.rs
* Fix conflicts
Co-authored-by: carllin <wumu727@gmail.com >
Co-authored-by: Carl <carl@solana.com >
v1.2.22
2020-08-11 22:54:29 +00:00
e76a2065e3
Gossip log ( #11555 ) ( #11561 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 1b238dd63e
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-08-11 22:27:35 +00:00
45f8e453a9
Add getTokenLargestAccounts to docs ( #11560 ) ( #11563 )
...
(cherry picked from commit 697a0e2947
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-11 21:21:44 +00:00
20f9c12855
panic on native load failure ( #11182 ) ( #11554 )
...
(cherry picked from commit e75f0bdfd3
)
Co-authored-by: Jack May <jack@solana.com >
2020-08-11 19:56:23 +00:00
4218414c87
filter out old gossip pull requests ( #11448 ) ( #11552 )
...
* init
* builds
* stats
* revert
* tests
* clippy
* add some jitter
* shorter jitter timer
* update
* fixup! update
* use saturating_sub
* fix filters
(cherry picked from commit 713851b68d
)
Co-authored-by: anatoly yakovenko <anatoly@solana.com >
2020-08-11 19:50:49 +00:00
60c91d386f
Adapt RpcClient to recent token method changes (bp #11519 ) ( #11547 )
...
* Adapt RpcClient to recent token method changes (#11519 )
* Avoid skip_serializing_if since that breaks deserialization
* Adapt RpcClient to recent token method changes
(cherry picked from commit 17645ee20c
)
# Conflicts:
# client/src/rpc_client.rs
* Fix conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-11 18:00:35 +00:00
e477501687
Fix bad rent in Bank::deposit as if since epoch 0 (bp #10468 ) ( #11538 )
...
* Fix bad rent in Bank::deposit as if since epoch 0 (#10468 )
* Fix bad rent in Bank::deposit as if since epoch 0
* Remove redundant predicate
* Rename
* Start to add tests with some cleanup
* Forgot to add refactor code...
* Enchance test
* Really fix rent timing in deposit with robust test
* Simplify new behavior by disabling rent altogether
(cherry picked from commit 6c242f3fec
)
# Conflicts:
# runtime/src/accounts.rs
# runtime/src/rent_collector.rs
* Fix conflict
* Fix clippy
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-08-11 16:55:19 +00:00
20463e141e
Fix simulateTransaction JSON-RPC docs ( #11533 ) ( #11534 )
...
(cherry picked from commit f12fc66a69
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-08-11 10:24:44 +00:00
e699462ed3
Fix solana CLI deploy (bp #11520 ) ( #11529 )
...
* Fix solana CLI deploy (#11520 )
* Refresh blockhash for program writes and finalize transactions
* Refactor to use current api, eliminating an rpc call
* Review comment
(cherry picked from commit c0d6761f63
)
# 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 10:20:15 +00:00
8b345f3258
Add config param to specify offset/length for single and program account info (bp #11515 ) ( #11517 )
...
* 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:
# core/src/rpc.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-11 00:21:47 +00:00
56436a6271
Fix parsing of spl-token Mint ( #11512 ) ( #11513 )
...
* Add failing test
* Fix jsonParsed mint
(cherry picked from commit da210ddd51
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-10 22:08:19 +00:00
805ea6f469
Return account data size with parsed accounts ( #11506 ) ( #11510 )
...
(cherry picked from commit 1925b0bd0b
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-10 20:31:58 +00:00
1db1d173fc
Blockstore address signatures: handle slots that cross primary indexes, and refactor get_confirmed_signatures_for_address2 ( #11497 ) ( #11507 )
...
* Freeze address-signature index in the middle of slot to show failure case
* Secondary filter on signature
* Use AddressSignatures iterator instead of manually decrementing slots
* Remove unused method
* Add metrics
* Add transaction-status-index doccumentation
(cherry picked from commit de5fb3ba0e
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-10 17:50:05 +00:00
11476038cd
Add db recovery methods ( #10838 ) ( #11496 )
2020-08-10 08:20:12 -07:00
a669ef3abb
account subcommand now requests binary64 ( #11494 )
...
(cherry picked from commit a4f5f3e978
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-09 22:35:19 +00:00
dbbdfa1dbb
Bump version to v1.2.22
2020-08-09 18:02:02 +00:00
768c6b4bef
Fallback to base64 account encoding if json parse fails ( #11483 )
...
* Fallback to base64 account encoding if json parse fails
* Remove default binary conversion
(cherry picked from commit ebc45bd73f
)
v1.2.21
2020-08-09 09:15:21 -07:00
8bcc04c275
Decode native-program and sysvar accounts (bp #11463 ) ( #11484 )
...
* 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
# core/src/rpc.rs
* Fix conflicts
* Ignore clippy lint affecting rust <v1.44.0
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-09 09:45:31 +00:00
2fd822887f
Add Binary64 option for account data ( #11474 ) ( #11480 )
...
* Add Binary64 option for account data
* Decode into binary64
* Reword docs
Co-authored-by: sakridge <sakridge@gmail.com >
2020-08-09 07:14:54 +00:00
e2c8aa0847
Return delegated amount as UiTokenAmount ( #11475 ) ( #11476 )
...
* Return delegated amount as UiTokenAmount
* Omit delegate and delegatedAmount when none
(cherry picked from commit 88d8d3d02a
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-09 00:28:24 +00:00
9b049402c9
Token Accounts: return ui_amount, decimals with decoded account (bp #11407 ) ( #11452 )
...
* Token Accounts: return ui_amount, decimals with decoded account (#11407 )
* 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
)
# Conflicts:
# client/src/rpc_client.rs
# core/src/rpc.rs
# core/src/rpc_subscriptions.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-07 19:28:25 +00:00
d0e1779893
Accounts hash calculation metrics ( #11433 ) ( #11438 )
...
(cherry picked from commit 770d3d383c
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-08-07 06:04:50 +00:00
929ffc5a4e
Fix blockstore empty panic (bp #11423 ) ( #11429 )
...
* Fix blockstore empty panic (#11423 )
* Add panicking test
* Add failing test: fresh transaction-status column shouldn't point at valid root 0
* Prevent transaction status match outside of primary-index bounds
* Initialize transaction-status and address-signature primer entries with Slot::MAX
* Revert "Add failing test: fresh transaction-status column shouldn't point at valid root 0"
This reverts commit cbad2a9fae
.
* Revert "Initialize transaction-status and address-signature primer entries with Slot::MAX"
This reverts commit ffaeac0669
.
(cherry picked from commit 1061b50665
)
# Conflicts:
# ledger/src/blockstore.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-07 01:21:24 +00:00
1f63fb06f1
Add address-based lower bound to get_confirmed_signatures_for_address2 loop ( #11426 ) ( #11431 )
...
(cherry picked from commit 5530ee4c95
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-06 23:56:39 +00:00
b49aa125c9
Bump version to 1.2.21
2020-08-06 12:20:56 -07:00
55836d133e
Realloc not supported ( #11417 )
...
(cherry picked from commit bc4c5c5a97
)
Co-authored-by: Jack May <jack@solana.com >
v1.2.20
2020-08-06 15:00:51 +00:00
277e402d55
Update lib.rs
...
(cherry picked from commit 5a63c9d535
)
2020-08-06 07:58:01 -07:00
0ab8312b23
Enable cross program support in mainnet-beta epoch 63
...
(cherry picked from commit c9b1d08218
)
2020-08-06 07:58:01 -07:00
bc4c5c5a97
Realloc not supported
2020-08-06 07:57:23 -07:00
1a9aa78129
Force program address off the curve (bp #11323 ) ( #11397 )
...
* Force program address off the curve (#11323 )
(cherry picked from commit 03263c850a
)
* nudge
* trailing whitespace
Co-authored-by: Jack May <jack@solana.com >
Co-authored-by: Trent Nelson <trent@solana.com >
2020-08-06 09:46:35 +00:00
798a6db915
RPC: Plug getConfirmedSignaturesForAddress2 into bigtable storage (bp #11395 ) ( #11405 )
...
* Plug getConfirmedSignaturesForAddress2 into bigtable storage
(cherry picked from commit 4222932e08
)
# Conflicts:
# ledger-tool/src/bigtable.rs
# storage-bigtable/src/lib.rs
* Upgrade help description
(cherry picked from commit 9abb7db5f8
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-06 07:49:30 +00:00
0a4a3fd37e
Cargo.lock
2020-08-05 23:15:28 -07:00
66242eab41
Long-term ledger storage with BigTable (bp #11222 )
2020-08-05 23:15:28 -07:00
7f0d4f0656
Bump version to 1.2.20
2020-08-05 22:06:02 -06:00
acba8d6026
Mark token-specific rpcs as unstable ( #11401 )
...
(cherry picked from commit 7430896c79
)
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-06 03:59:28 +00:00
1ff9555099
Bump version to 1.2.19
...
This one has some bonus deltas due to locks not being bumped for v1.2.18 nor
the ed25591-dalek update.
v1.2.19
2020-08-06 00:32:08 +00:00
72a13e2a72
Add getConfirmedSignaturesForAddress2 RPC method (bp #11259 ) ( #11393 )
...
* Add getConfirmedSignaturesForAddress2 RPC method
(cherry picked from commit 1b2276520b
)
# Conflicts:
# core/src/rpc.rs
* 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
)
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-05 23:14:53 +00:00
74cdfc2213
Fall back to root if highest_confirmed_slot bank does not exist ( #11390 )
2020-08-05 22:08:20 +00:00
7b8e5a9f47
Sanitize preflight (bp #11373 ) ( #11376 )
...
* Add failing test for unsane tx in RPC preflight
(cherry picked from commit e25846e1ad
)
* Add From for SanitizeError > TransactionError
(cherry picked from commit 3f73affb2e
)
* Sanitize transactions during RPC preflight test
(cherry picked from commit 29b3265dc7
)
* Harden RPC preflight test inputs
(cherry picked from commit 14339dec0a
)
Co-authored-by: Trent Nelson <trent@solana.com >
v1.2.18
2020-08-05 17:03:09 +00:00
80525ac862
Return token amounts as floats (bp #11370 ) ( #11378 )
...
* Return token amounts as floats (#11370 )
* Return token amounts as floats
* Floating-point equality
* Return float and raw token amounts
* Fix decimals and token rpcs for native-mint tokens
* Fixup docs and review comments
(cherry picked from commit 86e3f96f16
)
# Conflicts:
# core/src/rpc.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-05 08:31:22 +00:00
c14f98c6fc
Rework parsed account format ( #11372 ) ( #11380 )
...
* Rework parsed account format
* Serialize as type
(cherry picked from commit 308186da79
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-05 08:21:08 +00:00
c6edfc3944
Update instruction encoding format ( #11363 ) ( #11379 )
...
* Rework parsed instruction format
* Rework parsed message accounts
* Review comments
(cherry picked from commit 9d4f9be1fe
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-05 08:21:02 +00:00
b95c493d66
get_token_accounts_by_owner now returns UiTokenAccounts ( #11367 )
...
(cherry picked from commit b5e03d6df2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-05 00:06:21 +00:00
5871462241
Fix token rpc-client methods (bp #11361 ) ( #11362 )
...
* Fix token rpc-client methods (#11361 )
* Convert None to error in parse_keyed_accounts
* Allow encoding configuration in getTokenAccounts methods
(cherry picked from commit d0144ce382
)
# Conflicts:
# core/src/rpc.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-04 18:40:39 +00:00
53bb826375
Make accounts explicit in unrecognized jsonParsed instructions ( #11351 ) ( #11352 )
...
(cherry picked from commit 3f6f1adb5b
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-03 21:50:57 +00:00