Michael Vines
db989f7a88
drop small swap transactions
2020-12-01 17:27:59 -08:00
Michael Vines
a1828a0e45
Reduce the number of snapshots
...
(cherry picked from commit 73111b005f
)
2020-12-01 13:05:24 -08:00
mergify[bot]
01d9062f7b
Check that the program was granted access to program_id (bp #13890 ) ( #13893 )
...
* Check that the program was granted access to program_id (#13890 )
(cherry picked from commit 733fcbaa6c
)
# Conflicts:
# programs/bpf/Cargo.toml
# programs/bpf/tests/programs.rs
* Resolve conflicts
Co-authored-by: Jack May <jack@solana.com>
2020-12-01 17:49:17 +00:00
mergify[bot]
446e02bad1
Add logging in check_blockstore_max_root ( #13887 ) ( #13888 )
...
(cherry picked from commit 8fd1e55805
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-01 09:01:09 +00:00
mergify[bot]
3955778cb6
Add msg! macro for program logging, deprecate info! macro ( #13885 )
...
(cherry picked from commit 6705b5a98c
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-01 06:05:31 +00:00
mergify[bot]
4f4a0b9dc8
Fully clean up temporary snapshot staging directories ( #13883 )
...
(cherry picked from commit 254790f8c8
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-01 05:10:53 +00:00
mergify[bot]
97c1c944fb
solana-tokens: enable confirmation of many transactions ( #13876 ) ( #13881 )
...
* Update comment
* Chunk signature status checks to handle distributions greater than 256 tx
(cherry picked from commit c59e088142
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-01 04:15:22 +00:00
Jack May
7890957250
Bump to rbpf v0.1.34 ( #13874 )
2020-12-01 01:43:50 +00:00
mergify[bot]
535c7a44db
Strengthen EpochSlots sanitization ( #13873 )
...
(cherry picked from commit 90d557d916
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-01 00:04:01 +00:00
Tyera Eulberg
fbbc640958
Revert solana-tokens to RpcClient ( #13623 ) ( #13863 )
...
* Revert solana-tokens to RpcClient
* Fixup check_payer_balances tests
* Use RpcClient::new_with_commitment in other tests
* Sneak in helper fn from #13820
Co-authored-by: Tyera Eulberg <tyera@solana.com>
Co-authored-by: Greg Fitzgerald <greg@solana.com>
2020-11-30 19:57:33 +00:00
mergify[bot]
3559062c00
caches vote-state de-serialized from vote accounts ( #13795 ) ( #13862 )
...
Gossip and other places repeatedly de-serialize vote-state stored in
vote accounts. Ideally the first de-serialization should cache the
result.
This commit adds new VoteAccount type which lazily de-serializes
VoteState from Account data and caches the result internally.
Serialize and Deserialize traits are manually implemented to match
existing code. So, despite changes to frozen_abi, this commit should be
backward compatible.
(cherry picked from commit e1793e5a13
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-11-30 18:36:23 +00:00
mergify[bot]
1a7e5669bf
Add `flatten` to logs_subscribe commitment ( #13861 )
...
Currently, commitment for `logs_subscribe` must be specified using the
non-flattened form in JSON, ie `{"commitment":{"commitment":"max}}`.
This brings the commitment in line with documentation.
(cherry picked from commit 6203d1c94c
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2020-11-30 18:00:27 +00:00
mergify[bot]
5511d52c62
Don't reset credits_observed due to stale voters ( #13836 ) ( #13860 )
...
* Don't reset credits_observed due to stale voters
* Add tests
* Fix comment
(cherry picked from commit e81c2c826c
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-11-30 15:06:19 +00:00
mergify[bot]
50d5978b00
add zsh trouble shooting note to ledger docs ( #13854 )
...
(cherry picked from commit daebade239
)
Co-authored-by: Tommy Johnson <tommyjohnson1028@gmail.com>
2020-11-30 03:33:12 +00:00
sakridge
cea722ac09
Bump version to v1.4.14 ( #13852 )
2020-11-29 18:20:19 +00:00
mergify[bot]
82b087e51e
Add extra checks to verify_and_update ( #13848 ) ( #13850 )
...
* Add extra checks to verify_and_update
* nudge
(cherry picked from commit ce4304cc9a
)
Co-authored-by: Jack May <jack@solana.com>
2020-11-29 11:22:46 +00:00
Michael Vines
da682eaef6
Add --unhealthy_threshold option
2020-11-28 23:51:11 -08:00
Michael Vines
688562c049
Perform all RPC activity in the same place, also clean up Sol display
2020-11-28 23:51:11 -08:00
Michael Vines
50e6fad0e6
Remove support to monitor all validators in a cluster for delinquency
...
This feature is no longer useful with hundreds of validators
2020-11-28 23:51:11 -08:00
Michael Vines
d5cce435ce
Remove --notify-on-transaction support.
...
It's not longer useful due to the volume of transactions on mainnet-beta
and there are now other means of monitoring transactions
2020-11-28 23:51:11 -08:00
mergify[bot]
8f75cfe247
Record instructions after account translation ( #13845 )
...
(cherry picked from commit cc78667118
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-28 20:13:31 +00:00
Michael Vines
686b775e35
Add --maximum-local-snapshot-age argument
2020-11-28 09:20:28 +00:00
mergify[bot]
a3be6bacc6
Enhance ledger-tool for multi-epoch rewards ( #13837 ) ( #13839 )
...
* Support ledger-tool for multi-epoch rewards
* nits
* Ensure not to skip some records in csv
(cherry picked from commit 6048342c57
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-11-27 05:36:08 +00:00
Michael Vines
b493d554ad
Update examples to use Tokenkeg
2020-11-26 18:27:24 -08:00
mergify[bot]
0fc3bcabfd
Fix roots_and_ref_count ( #13827 ) ( #13833 )
...
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 955b99cf69
)
Co-authored-by: carllin <wumu727@gmail.com>
2020-11-26 22:33:43 +00:00
mergify[bot]
7cf36c488d
Revert "hidapi 1.2.4 is broken, lock version to 1.2.3" ( #13831 )
...
This reverts commit 9dc9a1ef6c
.
(cherry picked from commit 761499dfbf
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-26 21:32:51 +00:00
mergify[bot]
89c39d0be1
hidapi 1.2.4 is broken, lock version to 1.2.3 ( #13826 )
...
(cherry picked from commit 9dc9a1ef6c
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-26 10:30:25 +00:00
Michael Vines
f5eb5a3ba6
Bump version to v1.4.13
2020-11-26 06:59:28 +00:00
mergify[bot]
64c2e759ab
Use u64 behind the scenes for solana-tokens (bp #13815 ) ( #13818 )
...
* Use u64 behind the scenes for solana-tokens (#13815 )
* Use u64 behind the scenes for Allocations
* Fixup readme
* Clippy and remove errant comments
(cherry picked from commit 5e2d38227f
)
# Conflicts:
# tokens/src/commands.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-11-26 03:05:36 +00:00
mergify[bot]
a09ee672a6
Separate blockstore checks for not (yet) rooted and cleaned up ( #13814 ) ( #13817 )
...
(cherry picked from commit 4ff0f0949a
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-26 00:17:06 +00:00
mergify[bot]
057b5d7e24
Add commonly-used SPL programs as a convenience to the user ( #13813 )
...
(cherry picked from commit 0e2578a0b8
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-25 22:44:51 +00:00
mergify[bot]
fe4c59e38d
Add `solana logs` command ( #13812 )
...
(cherry picked from commit 4ef2da0ff0
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-25 22:22:23 +00:00
mergify[bot]
305d5d97d8
Nonce updates ( #13799 ) ( #13810 )
...
* runtime: Add `FeeCalculator` resolution method to `HashAgeKind`
* runtime: Plumb fee-collected accounts for failed nonce tx rollback
* runtime: Use fee-collected nonce/fee account for nonced TX error rollback
* runtime: Add test for failed nonced TX accounts rollback
* Fee payer test
* fixup: replace nonce account when it pays the fee
* fixup: nonce fee-payer collect test
* fixup: fixup: clippy/fmt for replace...
* runtime: Test for `HashAgeKind::fee_calculator()`
* Clippy
Co-authored-by: Trent Nelson <trent@solana.com>
(cherry picked from commit b70abdc645
)
Co-authored-by: sakridge <sakridge@gmail.com>
2020-11-25 18:18:04 +00:00
mergify[bot]
05f464798f
Add stake calculation tests with inflation/slashing ( #13605 ) ( #13798 )
...
* Add stake calculation tests with inflation/slashing
* Clean up the test
(cherry picked from commit 42421e77a9
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-11-25 05:16:09 +00:00
mergify[bot]
96d8ee9e07
Add base64+zstd encoding for RPC account data ( #13796 )
...
(cherry picked from commit 215ddecaa5
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-25 03:20:20 +00:00
mergify[bot]
471a3f991b
Revert "Check out specific downstream commit ( #13787 )" ( #13793 ) ( #13794 )
...
This reverts commit 630288c1cc
.
(cherry picked from commit 465ab490e1
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-24 23:36:30 +00:00
Tyera Eulberg
fd9e003ae1
Bump version to 1.4.12 ( #13792 )
2020-11-24 22:53:36 +00:00
Michael Vines
e26ff09df7
tiny doc fix
2020-11-24 12:28:23 -08:00
mergify[bot]
fdcf589f7c
Restore bank feature used to deprecate Rewards sysvar ( #13786 ) ( #13788 )
...
(cherry picked from commit c930f92411
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-24 18:57:26 +00:00
Tyera Eulberg
f44dfc8d04
Check out specific downstream commit
2020-11-24 10:29:41 -07:00
mergify[bot]
c736c4633e
Clean up default commitment handling for subscriptions ( #13781 )
...
(cherry picked from commit 61ab2072bd
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-24 08:10:11 +00:00
Tyera Eulberg
7099d07fd3
Bump version to 1.4.11 ( #13780 )
2020-11-24 06:30:35 +00:00
Tyera Eulberg
e3b47d22d7
Check SlotNotRooted if confirmed block not found in blockstore or bigtable ( #13778 )
2020-11-24 04:23:05 +00:00
mergify[bot]
f789da1e20
Prevent splitting when either source or split stake will equal zero ( #13775 ) ( #13777 )
...
(cherry picked from commit e3a92d6905
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-24 04:08:17 +00:00
mergify[bot]
b74bb12ebe
Truncate logs immediately upon collection. Also reduce limit from 100k to 10k ( #13774 )
...
(cherry picked from commit 60ce6f1a9b
)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-24 02:36:23 +00:00
mergify[bot]
ddf019c1a4
Stake: Support merging fully-activated stake accounts (bp #13712 ) ( #13770 )
...
* stake: De-replicode mergable info extraction
(cherry picked from commit dc7f89715a
)
* stake: Cosmetic - rename variable
(cherry picked from commit bb2772d068
)
* stake: Allow compatible, fully-active stake accounts to be merged
(cherry picked from commit 8e73187990
)
* stake: Remove disused test helper function
(cherry picked from commit 6b9a019c0a
)
* stake: Disallow stakes merging with themselves
(cherry picked from commit 488ce982f0
)
Co-authored-by: Trent Nelson <trent@solana.com>
2020-11-23 22:48:30 +00:00
mergify[bot]
74d57b1c2f
Fail stake init if account data is the wrong size ( #13767 ) ( #13769 )
...
(cherry picked from commit 38a3ed96bb
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-23 21:30:33 +00:00
mergify[bot]
086e653a0b
Cap split stake at source stake when splitting entire balance ( #13754 ) ( #13766 )
...
(cherry picked from commit f0f99ffc7e
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-23 18:42:22 +00:00
mergify[bot]
225d15bde8
processes pull-request callers only once per unique caller ( #13750 ) ( #13753 )
...
process_pull_requests acquires a write lock on crds table to update
records timestamp for each of the pull-request callers:
https://github.com/solana-labs/solana/blob/3087c9049/core/src/crds_gossip_pull.rs#L287-L300
However, pull-requests overlap a lot in callers and this function ends
up doing a lot of redundant duplicate work.
This commit obtains unique callers before acquiring an exclusive lock on
crds table.
(cherry picked from commit 26bf2b7e45
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-11-22 19:08:33 +00:00
mergify[bot]
6d8d5d1379
fix arithmetic overflow in slice translation (bp #13624 ) ( #13625 )
...
* fix arithmetic overflow in slice translation (#13624 )
* fix arithmetic overflow in slice translation
* nudge
(cherry picked from commit 8c922a0198
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com>
2020-11-22 03:30:27 +00:00