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
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
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
f5eb5a3ba6
Bump version to v1.4.13
2020-11-26 06:59:28 +00:00
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 >
v1.4.12
2020-11-26 03:05:36 +00:00
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
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
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
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
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
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
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
fd9e003ae1
Bump version to 1.4.12 ( #13792 )
2020-11-24 22:53:36 +00:00
e26ff09df7
tiny doc fix
v1.4.11
2020-11-24 12:28:23 -08:00
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
f44dfc8d04
Check out specific downstream commit
2020-11-24 10:29:41 -07:00
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
7099d07fd3
Bump version to 1.4.11 ( #13780 )
2020-11-24 06:30:35 +00:00
e3b47d22d7
Check SlotNotRooted if confirmed block not found in blockstore or bigtable ( #13778 )
2020-11-24 04:23:05 +00:00
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
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
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
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
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
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
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
fcd2a78d73
Guard against bsd sed ( #13735 ) ( #13751 )
...
(cherry picked from commit 1d008bab4a
)
Co-authored-by: Jack May <jack@solana.com >
2020-11-22 02:03:23 +00:00
5cf52c3c20
ledger-tool cap: output credits_observed ( #13746 ) ( #13748 )
...
(cherry picked from commit 3bc7d85986
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-21 17:30:10 +00:00
bc334427e3
stake: Don't pay out rewards for epochs where inflation was not enabled ( #13745 )
...
(cherry picked from commit 13aa38d307
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-21 05:41:53 +00:00
d0cac2a2ea
Prevent scans on unrooted slots from seeing partial clean ( #13628 ) ( #13741 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 791fb17437
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-20 22:14:51 +00:00
3743e44fb3
Add new inflation feature-ids ( #13671 ) ( #13736 )
...
* Add new inflation feature-ids, and full_inflation default values
* Compute inflation start from full_inflation activation
* Include pico_inflation in inflation start computation
* Add full-inflation constructor
* Align inflation taper with rewards accrual start and catch overflow edge case
(cherry picked from commit c75d97e3f2
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-20 18:08:57 +00:00
f5ef999b31
Snapshot archives are now cleaned up when --snapshot-compression none
is used ( #13733 )
...
(cherry picked from commit 11e92f0c9f
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-20 17:54:27 +00:00
55d5339daa
--vote-account doesn't support ASK but --authorized-voter does ( #13731 )
...
(cherry picked from commit 8808a74593
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-20 15:24:36 +00:00
594b69395a
Cleanup ( #13728 ) ( #13729 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 9bb11a2dcc
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-20 12:57:40 +00:00
6dc62bfb77
Fix fragile tests in prep of stake rewrite pr ( #13654 ) ( #13721 )
...
* Fix fragile tests in prep of stake rewrite pr
* Restore BOOTSTRAP_VALIDATOR_LAMPORTS where appropriate
* Further clean up
* Further clean up
* Aligh with other call site change
* Remove false warn!
* fix ci!
(cherry picked from commit b74d7b5758
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-20 09:34:46 +00:00
08b53c0963
Use info for failed to match slot vote error ( #13715 ) ( #13720 )
...
(cherry picked from commit 2cb006fa44
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-11-20 01:34:42 +00:00
b5baa966ac
Fix avx check with newest nightly compiler ( #13465 ) ( #13719 )
...
(cherry picked from commit c644b05c54
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-11-20 01:23:16 +00:00
ff38a46af6
sanitizes bloom filters to avoid division by zero ( #13714 ) ( #13718 )
...
Pull requests received over the wire can cause a validator to panic
because of division by zero in bloom filters:
https://github.com/solana-labs/solana/blob/af08ba93e/runtime/src/bloom.rs#L86-L88
(cherry picked from commit a8c29505f0
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-20 01:07:30 +00:00
841f596b26
Document get_account() gotcha ( #13713 )
...
(cherry picked from commit f9acbd6e3f
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-19 23:21:43 +00:00
5e1497856b
Add SPL Feature Proposal program ( #13683 )
...
(cherry picked from commit 9d75b82840
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-19 23:04:38 +00:00
e085b580b5
makes crds fields private ( #13703 ) ( #13708 )
...
Crds fields should maintain several invariants between themselves, so
exposing them as public fields can be bug prone. In addition these
invariants are asserted on every write:
https://github.com/solana-labs/solana/blob/9668dd85d/core/src/crds.rs#L138-L154
https://github.com/solana-labs/solana/blob/9668dd85d/core/src/crds.rs#L239-L262
which adds extra instructions and is not optimal. Should these fields be
private the asserts will be redundant.
(cherry picked from commit b58f69297f
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-19 22:26:28 +00:00
d967ff0138
Allow GNUSparse for genesis.bin ( #13704 ) ( #13707 )
...
(cherry picked from commit 397cf726fc
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-19 21:57:12 +00:00
71e3a99742
fix doc redirects ( #13709 ) ( #13710 )
...
(cherry picked from commit af08ba93e6
)
Co-authored-by: Jack May <jack@solana.com >
2020-11-19 21:41:23 +00:00
640f4a1ec7
Rewrite stake accounts for clear migration ( #13461 ) ( #13705 )
...
* Reduce overage stake by rewritng stake accounts
* Write tests and finish implemention
* Create and use new feature gate
* Clean up logging
* Fix typo
* Simplify enable_rewrite_stake
* Fix typo...
* Even simplify gating
* Add metrics
(cherry picked from commit 43d5e47ea9
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-19 21:29:42 +00:00
8d904877ef
fix rust example section link ( #13701 ) ( #13702 )
...
(cherry picked from commit 9668dd85d4
)
Co-authored-by: Jack May <jack@solana.com >
2020-11-19 18:14:42 +00:00
fbe4e95e6a
breaks prunes data into chunks to fit into packets ( #13613 ) ( #13698 )
...
Validator logs show that prune messages are dropped because they exceed
packet data size:
https://github.com/solana-labs/solana/blob/f25c969ad/perf/src/packet.rs#L90-L92
This can exacerbate gossip traffic by redundantly increasing push
messages across network. The workaround is to break prunes into smaller
chunks and send over in multiple messages.
(cherry picked from commit 1ffab5de77
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-19 17:53:03 +00:00
e7e7cbe632
v1.4: Distribute spl tokens ( #13688 )
...
* Add helpers to covert between sdk types
* Add distribute-spl-tokens to args and arg-parsing
* Build spl-token transfer-checked instructions
* Check spl-token balances properly
* Add display handling to support spl-token
* Small refactor to allow failures in allocation iter
* Use Associated Token Account for spl-token distributions
* Add spl token support to balances command
* Update readme
* Add spl-token tests
* Rename spl-tokens file
* Move a couple more things out of commands
* Stop requiring lockup_date heading for non-stake distributions
* Adjust solana_rbpf log level up in coverage
* Use epsilon for allocation retention
2020-11-19 10:32:27 -07:00
7e5b75fa7e
Check for overflow in rent partition calculation ( #13569 ) ( #13696 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 110acd20dc
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-19 13:41:48 +00:00
60beb509f7
Prevent scans from seeing root updates/clean ( #13464 ) ( #13686 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 6276360468
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-19 07:11:59 +00:00
15f6b6ccd6
RPC: Demote missing block error to warning ( #13685 )
...
It frightens the tourists
(cherry picked from commit f2a1a0ac5c
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-19 07:05:32 +00:00