cca9009f23
Help capitalization fixes
...
(cherry picked from commit 9e3c130ac9
)
2021-01-29 18:37:43 -08:00
d8d73ff56c
Clean up VerifiedVotePackets ( #14822 )
...
(cherry picked from commit bd0433c373
)
2021-01-29 18:03:41 -08:00
34504797b4
Richer runtime failure logging ( #14875 )
...
(cherry picked from commit 0b1015f7d3
)
2021-01-29 18:03:33 -08:00
1767e4fbde
Increase vm map limit recommendation ( #14892 )
...
Give some more buffer from 400k
(cherry picked from commit 84e52b6065
)
2021-01-29 18:03:03 -08:00
39515cae5e
Use already-generated key set to populate dirty keys for clean ( #14905 )
...
Don't need to scan the stores again when we already found the key
set of updates per slot. Just insert it earlier.
(cherry picked from commit 65315fa4c2
)
2021-01-29 18:02:42 -08:00
116d67e1e3
Prevent bricked install when ^C is pressed during archive extraction
...
(cherry picked from commit 7ad9870071
)
2021-01-29 18:02:25 -08:00
08bda35fd6
Buffer authority must match upgrade authority for deploys and upgrades (bp #14923 ) ( #14935 )
...
* Buffer authority must match upgrade authority for deploys and upgrades (#14923 )
(cherry picked from commit 07cef5a557
)
# Conflicts:
# cli/src/program.rs
# cli/tests/program.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-29 23:04:23 +00:00
ba1d0927e6
docs: Fix mangled getConfirmedTransaction
parameter list ( #14921 )
...
(cherry picked from commit 52326d53be
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-01-29 13:53:53 -07:00
555df9f96c
cli: Improve reliability of program deploys ( #14902 ) ( #14925 )
...
* cli: Improve reliability of program deploys
* chore: fix clippy
(cherry picked from commit 996a27d475
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-01-29 13:07:31 -07:00
99166a4a59
program-test: Expose bank task to fix fuzzing ( #14908 ) ( #14927 )
...
* program-test: Expose bank task to fix fuzzing
* Run cargo fmt and clippy
* Remove unnecessary print in test
* Review feedback
* Transition to AtomicBool
(cherry picked from commit 0ce08274f9
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-01-29 20:57:56 +01:00
92534849db
Fix cli usage build
...
(cherry picked from commit 2e54b6acb1
)
2021-01-29 11:45:56 -08:00
5ba8b4884b
Ignore syscalls which are not registered in cached rbpf executable. ( #14898 ) ( #14929 )
...
(cherry picked from commit d026da4a1b
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-01-29 11:07:54 -08:00
cb878f2ea8
Add feature for pending SPL Token self-transfer fix
...
(cherry picked from commit 85b5dbead6
)
2021-01-29 10:34:04 -07:00
b1d5bf30d2
Remove potentially too costly Packets::default() ( #14821 ) ( #14915 )
...
* Remove potentially too costly Packets::default()
* Fix test...
* Restore Packets::default()
* Restore Packets::default() more
(cherry picked from commit d6873b82ab
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-29 13:52:33 +09:00
481c60e287
Surface faucet start failures to the user of solana-test-validator
...
(cherry picked from commit 8993ac0c74
)
2021-01-28 16:59:44 -08:00
86242dc3ba
format to list
2021-01-28 16:14:42 -07:00
71899deb53
Reorg and cleanup of economics section of docs ( #14868 ) ( #14889 )
2021-01-28 16:07:31 -07:00
7e2e0d4a86
Manually camelCase solana program json ( #14907 )
2021-01-28 13:41:57 -07:00
d4cc7c6b66
Only mmap file from snapshot once ( #14815 ) ( #14901 )
...
(cherry picked from commit a53b8558cd
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-01-28 11:03:40 -08:00
b62349f081
cli now supports a custodian for stake authorize operations ( #14860 )
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-28 18:30:43 +00:00
d16638dc90
Add syscall feature activation test ( #14890 ) ( #14895 )
...
(cherry picked from commit 63429507b2
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-28 09:57:46 -08:00
b97fc31fcd
nit: message doesn't represent ( #14893 ) ( #14897 )
...
(cherry picked from commit 2ca0872a98
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-28 09:57:23 -08:00
4378634970
Bump version to 1.5.6
2021-01-27 10:50:56 -08:00
10e12d14e1
install: Add version envvar to info --eval
output
...
(cherry picked from commit dcb6f68287
)
v1.5.5
2021-01-27 09:05:17 -08:00
c5cfbee853
Aggregate purge and shrink metrics ( #14763 ) ( #14883 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 72f10f5f29
)
2021-01-27 02:56:45 -08:00
c276670a94
Snapshots missing slots from accounts cache clean optimization ( #14852 ) ( #14878 )
...
Co-authored-by: Carl Lin <carl@solana.com >
2021-01-26 22:20:07 -08:00
676da0a836
Ensure sanitary transactions
...
(cherry picked from commit 04ce33a04e
)
2021-01-26 17:03:01 -08:00
0021cf924f
solana decode-transaction
no longer panics on unsanitary transactions
...
(cherry picked from commit e9b5d65f40
)
2021-01-26 17:03:01 -08:00
d593ee187c
chore: comment blockHeight
...
(cherry picked from commit 8cd036938e
)
2021-01-26 17:01:41 -08:00
a07bfc2d76
test: account for rent collection to avoid bogus test failure
...
(cherry picked from commit fba0e933a4
)
2021-01-26 17:01:41 -08:00
f0e9843dd4
fix: add Clock sysvar to AuthorizeWithSeed instruction
...
(cherry picked from commit fd06c1f8fa
)
2021-01-26 17:01:41 -08:00
a2f643e7c7
Include Clock sysvar in AuthorizeWithSeed instruction
...
(cherry picked from commit 8359f4f5ff
)
2021-01-26 17:01:41 -08:00
7ebaf1c192
Add StakeInstruction::Merge logging
...
(cherry picked from commit ff22091a98
)
2021-01-26 17:01:33 -08:00
6a61e7a01e
Enable accounts caching by default ( #14854 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 5bf5a5ec41
)
2021-01-26 16:56:57 -08:00
1c23f135bf
Bump rbpf to v0.2.4 ( #14867 )
2021-01-26 22:49:57 +00:00
3c67f71695
Deprecate commitment variants (bp #14797 ) ( #14858 )
...
* Deprecate commitment variants (#14797 )
* Deprecate commitment variants
* Add new CommitmentConfig builders
* Add helpers to avoid allowing deprecated variants
* Remove deprecated transaction-status code
* Include new commitment variants in runtime commitment; allow deprecated as long as old variants persist
* Remove deprecated banks code
* Remove deprecated variants in core; allow deprecated in rpc/rpc-subscriptions for now
* Heavier hand with rpc/rpc-subscription commitment
* Remove deprecated variants from local-cluster
* Remove deprecated variants from various tools
* Remove deprecated variants from validator
* Update docs
* Remove deprecated client code
* Add new variants to cli; remove deprecated variants as possible
* Don't send new commitment variants to old clusters
* Retain deprecated method in test_validator_saves_tower
* Fix clippy matches! suggestion for BPF solana-sdk legacy compile test
* Refactor node version check to handle commitment variants and transaction encoding
* Hide deprecated variants from cli help
* Add cli App comments
(cherry picked from commit ffa5c7dcc8
)
* Fix 1.5 stake-o-matic
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-01-26 20:49:04 +00:00
d380b9cef7
Add more upgradeable tests ( #14846 ) ( #14850 )
...
(cherry picked from commit e57b9c3b02
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-26 09:42:49 -08:00
7415821156
Rotate feature key: use loaded executable accounts ( #14838 )
...
(cherry picked from commit 74c83e6854
)
2021-01-26 08:53:59 -08:00
4a6c3a9331
Add security best practice sections ( #14798 )
...
(cherry picked from commit 60611ae8a0
)
2021-01-26 08:53:54 -08:00
0cd1cce588
Update find_program_address docs ( #14840 )
...
(cherry picked from commit 4a4881d30f
)
2021-01-26 08:53:44 -08:00
f762b4a730
Remove legacy_stake program
...
(cherry picked from commit 2b50433099
)
2021-01-26 08:53:38 -08:00
08f7f2546e
fixes test_filter_current flakiness ( #14816 )
...
(cherry picked from commit d1df9da7d3
)
2021-01-25 12:44:46 -08:00
cb701fbbd9
Reduce ~2 GBs mem by avoiding another overalloc. ( #14806 ) ( #14820 )
...
* Reduce few GBs mem by avoiding another overalloc.
* Use x.len() for the last item from chunks()
(cherry picked from commit 015058e0b7
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-25 08:08:33 +00:00
231ff7d70d
removes redundant epoch stakes cache in retransmit ( #14781 ) ( #14817 )
...
Following d6d76219b
, staked nodes computed from vote accounts are
already cached in runtime::Stakes, so the caching in retransmit_stage is
redundant.
(cherry picked from commit e1021d9f83
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-01-25 01:11:58 +00:00
a154414e65
patches crds vote-index assignment bug (bp #14438 ) ( #14741 )
...
* patches crds vote-index assignment bug (#14438 )
If tower is full, old votes are evicted from the front of the deque:
https://github.com/solana-labs/solana/blob/2074e407c/programs/vote/src/vote_state/mod.rs#L367-L373
whereas recent votes if expire are evicted from the back:
https://github.com/solana-labs/solana/blob/2074e407c/programs/vote/src/vote_state/mod.rs#L529-L537
As a result, from a single tower_index scalar, we cannot infer which crds-vote
should be overwritten:
https://github.com/solana-labs/solana/blob/2074e407c/core/src/crds_value.rs#L576
In addition there is an off by one bug in the existing code. tower_index is
bounded by MAX_LOCKOUT_HISTORY - 1:
https://github.com/solana-labs/solana/blob/2074e407c/core/src/consensus.rs#L382
So, it is at most 30, whereas MAX_VOTES is 32:
https://github.com/solana-labs/solana/blob/2074e407c/core/src/crds_value.rs#L29
Which means that this branch is never taken:
https://github.com/solana-labs/solana/blob/2074e407c/core/src/crds_value.rs#L590-L593
so crds table alwasys keeps 29 **oldest** votes by wallclock, and then
only overrides the 30st one each time. (i.e a tally of only two most
recent votes).
(cherry picked from commit 8e581601d6
)
* removes unnecessary semicolon
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-01-24 21:24:16 +00:00
673c679523
Partial clean ( #14800 ) ( #14813 )
...
* Revert "Revert "Partial accounts clean (#14652 )" (#14777 )"
This reverts commit ad2e10e17b
.
* Remove squashed uncleaned keys
(cherry picked from commit 0d32a0e0f4
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-01-24 20:52:23 +00:00
65a7621b17
broadcasts duplicate shreds through gossip (bp #14699 ) ( #14812 )
...
* broadcasts duplicate shreds through gossip (#14699 )
(cherry picked from commit 491b059755
)
# Conflicts:
# core/src/cluster_info.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-01-24 17:45:35 +00:00
c9da25836a
Upgrade to Rust v1.49.0 (bp #14810 ) ( #14811 )
...
* Upgrade to Rust v1.49.0
(cherry picked from commit cbffab7850
)
# Conflicts:
# core/src/crds_value.rs
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-24 04:42:09 +00:00
b48dd58fda
Upgrade sha2 to 0.9.3 ( #14746 ) ( #14799 )
...
(cherry picked from commit 191193289f
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-01-23 23:08:33 +00:00
40f32fd37d
Speed up generate_index ( #14792 ) ( #14807 )
...
(cherry picked from commit 424bb797a6
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-01-23 18:50:04 +00:00