599b22baf3
Partial shred deserialize cleanup and shred type differentiation ( #14094 ) ( #14138 )
...
* Partial shred deserialize cleanup and shred type differentiation in retransmit
* consolidate packet hashing logic
(cherry picked from commit d4a174fb7c
)
Co-authored-by: sakridge <sakridge@gmail.com >
v1.4.17
2020-12-16 02:25:40 +00:00
fdb1c5ab06
Add wait for max stake command ( #13532 ) ( #14137 )
...
(cherry picked from commit 598e5f58d5
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-16 01:32:00 +00:00
db339cb925
Fix race between setting tick height and calculating accounts hash ( #14101 ) ( #14131 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 75e9e321de
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-12-15 22:55:13 +00:00
ff76fccf2e
Remove regular expressions, speeds up untar ( #14119 ) ( #14125 )
...
(cherry picked from commit 53fe0bb5eb
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-15 20:51:18 +00:00
539f108ea6
Bump version to 1.4.17
2020-12-14 15:57:53 -08:00
78c4f946f4
Terminology fixes ( #14112 ) ( #14114 )
...
(cherry picked from commit 42be09afb6
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2020-12-14 21:15:12 +00:00
87a578a1f9
Simple cap by including sysvars and native programs ( #13884 ) ( #14110 )
...
* Simpler cap by including sysvars and native programs
* Fix tests
* Add comment
* revert some unrelated code
* Update test_bank_update_sysvar_account for cap.
* Test cap. for add_native_program using new helper
* Improve the cap adjustment with new tests
* Fix typo...
* Adjust test for improved code coverage
* Rename simpler_capitalization => simple_capitalization
* More rename and bonus commenting
(cherry picked from commit de9ac43ebf
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-14 13:29:09 +00:00
7e3bf25991
Shrink slots by sparseness of written data size ( #14072 ) ( #14097 )
...
(cherry picked from commit 5788e75188
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-13 19:15:44 +00:00
a844310911
spelling
2020-12-12 22:36:27 -08:00
4ad66fa7a4
Demote bank-process_transactions-error counters to info!
2020-12-12 22:04:20 -08:00
5d07195b7e
stake-account command no longer errors when time goes backwards over an epoch ( #14090 )
...
(cherry picked from commit 52c2cbd630
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-13 05:03:36 +00:00
a209984ec9
Add subscription cap ( #14011 ) ( #14089 )
...
* Add subscription cap
* Elide unwraps
(cherry picked from commit 8541ffa328
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-12 03:29:36 +00:00
a7e6cd56e9
Filter out stake and vote accounts with incorrect owners ( #14062 ) ( #14080 )
...
* Add failing test
* Check stake/vote accounts for validity
* Feature gate change
* Add datapoint
* Add test realism
(cherry picked from commit d6eff3d62c
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-12 02:13:50 +00:00
bd6cad3891
Ignore RUSTSEC-2020-0077 until next 1.4 release
2020-12-12 00:16:37 +00:00
6d7e7f47b8
Override yanked arc-swap crate to 0.4.8
2020-12-12 00:16:37 +00:00
82f00bf9f7
Override yanked miow crate to 0.2.2
2020-12-12 00:16:37 +00:00
8fdfb291a9
Override yanked net2 0.2.37
2020-12-12 00:16:37 +00:00
1e5a662706
Override yanked mio crate to 0.7.6
2020-12-12 00:16:37 +00:00
277d4c9ae4
Switch to memmap2 fork
2020-12-12 00:16:37 +00:00
e6abf50bf7
Bump socket2 crate to 0.3.17
2020-12-12 00:16:37 +00:00
f7621c091a
Add more comments in Stakes::store for its subtlety ( #14065 ) ( #14070 )
...
* Add more comments in Stakes::store for its subtlety
* more comment tweak
(cherry picked from commit 7078a6ac61
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-11 20:54:42 +00:00
069f83be97
Increase another snapshot limit: UNPACKED_COUNT ( #14071 ) ( #14073 )
...
(cherry picked from commit 2d3a337200
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-11 12:25:10 +00:00
5b31f3d790
Wrong rpc inflation rate ( #14063 ) ( #14064 )
...
* Fix wrong inflation calculation in rpc
* Reorder
* Fix test
(cherry picked from commit 09bd412b13
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-11 09:07:17 +00:00
980c7cdf64
Retry inflation parameter update (bp #12778 ) ( #14060 )
...
* Retry inflation parameter update along with documentation updates (#12778 )
* update initial inflation parameter
* update economics section of docs
(cherry picked from commit 1ab36203de
)
# Conflicts:
# docs/docusaurus.config.js
# docs/package-lock.json
* Revert doc changes
* Revert doc changes
Co-authored-by: Eric Williams <ericlwilliams@gmail.com >
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-11 05:19:51 +00:00
0b5beac561
Check shred type in is_duplicate ( #14050 ) ( #14058 )
...
(cherry picked from commit aa2751e614
)
Co-authored-by: sakridge <sakridge@gmail.com >
v1.4.16
2020-12-11 04:22:25 +00:00
83801f2b05
Clean invoke in prep for native invoke ( #14055 ) ( #14059 )
...
(cherry picked from commit 83fda2d972
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-10 18:47:18 -08:00
13527fc937
Tiny add_native_program bug fixes with cleanups ( #14042 ) ( #14057 )
...
* Tiny add_native_program bug fixes with cleanups
* Fix typo
(cherry picked from commit 164b7895b3
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-10 18:46:57 -08:00
bfc9932b17
Add get_minimum_balance_for_rent_excemption to Client ( #14048 ) ( #14052 )
...
(cherry picked from commit 7abd8084b6
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-11 02:03:18 +00:00
1ea1a70d2b
Remove "Timezone For Log Messages" section ( #14014 ) ( #14056 )
...
To my understanding, the Solana process always logs a UTC timestamp
anyway, so this is not needed. Plus, using PST on servers is really
weird from a systems engineering point of view.
(cherry picked from commit d33ab34d75
)
Co-authored-by: Leopold Schabel <leo@certus.one >
2020-12-11 02:01:50 +00:00
0039861984
Add message helpers to get program info ( #14047 ) ( #14053 )
...
(cherry picked from commit d9655ea507
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-10 17:43:06 -08:00
fb3e88bb7e
Bump version to v1.4.16 ( #14054 )
2020-12-10 17:04:34 -08:00
c01bff61f8
Fix priv escalation test ( #14046 ) ( #14049 )
...
(cherry picked from commit 5ea80e673f
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-11 00:08:21 +00:00
6a0ba2587d
Lower priority for hashing threads. ( #14043 ) ( #14044 )
...
(cherry picked from commit 68109a46e0
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-10 21:49:52 +00:00
3520990271
adds the instance token to crds-labels for node-instance crds-values (bp #14037 ) ( #14040 )
...
* adds the instance token to crds-labels for node-instance crds-values (#14037 )
If a node "a" receives instance-info from node "b1" it will override any
instance-info associated with "b1" pubkey in its crds table. This makes
it less likely that when "b1" receives crds values from "a" (either
through pull or push), it sees other instances of itself (because node
"a" discarded them when it received "b1" instance info).
In order for the crds table to contain all instance-info associated with
the same pubkey at the same time, we need to add the instance tokens to
the keys in the crds table (i.e. the CrdsValueLabel).
(cherry picked from commit 409fe3bca1
)
# Conflicts:
# core/src/cluster_info.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-10 18:42:26 +00:00
f7d2ba24f0
adds ledger-tool mode to print raw shred metadata ( #13962 ) ( #14017 )
...
(cherry picked from commit f6a7732ff9
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-10 17:56:30 +00:00
90c6f8ae1a
Shred filter ( #14030 ) ( #14038 )
...
(cherry picked from commit 5c95d8e963
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-10 17:12:16 +00:00
24bd147b1a
Better dupe detection ( #13992 ) ( #14033 )
...
(cherry picked from commit c5fe076432
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-10 08:32:44 +00:00
07191dc224
checks for duplicate validator instances using gossip (bp #14018 ) ( #14028 )
...
* checks for duplicate validator instances using gossip
(cherry picked from commit 8cd5eb9863
)
# Conflicts:
# core/src/cluster_info.rs
* pushes node-instance along with version early in gossip
(cherry picked from commit 542198180a
)
* removes RwLock on ClusterInfo.instance
(cherry picked from commit 895d7d6a65
)
# Conflicts:
# core/src/cluster_info.rs
* std::process::exit to kill all threads
(cherry picked from commit 1d267eae6b
)
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-09 13:04:57 -08:00
c20e74a248
Increase snapshot file size limits ( #14024 ) ( #14026 )
...
* Increase snapshot file size limits
* Fix test
* Reorder code a bit
(cherry picked from commit 14e241be35
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-09 19:08:51 +00:00
f52feddfcd
Cap CPI signers (bp #14021 ) ( #14023 )
...
* Cap CPI signers (#14021 )
(cherry picked from commit e1a4251b07
)
# Conflicts:
# programs/bpf/tests/programs.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-09 11:46:46 +00:00
a46d14a2d7
Don't use stale executor cache (bp #13966 ) ( #13969 )
...
* Don't use stale executor cache (#13966 )
(cherry picked from commit 882d033233
)
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-09 09:11:31 +00:00
fb9f35d2f0
Rent account passed to loader can be read-only ( #13997 ) ( #14000 )
...
(cherry picked from commit 20c0e8793e
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-09 07:52:49 +00:00
3687dccda6
Remove unneeded BankWeight fork choice ( #13978 ) ( #14003 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 239a191612
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-12-09 03:53:21 +00:00
8d96797e68
Use LRU cache and blake3 hash of shreds to filter duplicates ( #13976 ) ( #14007 )
...
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-08 18:38:42 +00:00
820aa7e0ea
Add tests for store_account_and_update_capitalization ( #14008 ) ( #14016 )
...
(cherry picked from commit 28b014ccf4
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-08 17:45:23 +00:00
eea3c4e4f1
Docs: Correct the system.conf NOFILE variable name ( #14010 )
...
(cherry picked from commit 845c783b0e
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-12-08 07:56:41 +00:00
c66ee3c623
Add --rpc-max-multiple-accounts to override the getMultipleAccounts JSON RPC maximum ( #14006 )
...
(cherry picked from commit 6e9dbb4f6e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-08 02:43:23 +00:00
871066fb8d
Bump criterion to v2.3.3 ( #14002 ) ( #14004 )
...
(cherry picked from commit 1dc71fb5aa
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-07 23:05:46 +00:00
aa084e1d3c
Fix logsSubscribe ( #13996 ) ( #13998 )
...
(cherry picked from commit 6ae4d2e5cb
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-07 21:39:51 +00:00
be0f9d4837
Bump rust-sysroot to v0.13 ( #14001 )
2020-12-07 13:26:12 -08:00