mergify[bot]
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 164b7895b3b0b400be1f16a4794e15407d541b5d)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-10 18:46:57 -08:00
mergify[bot]
bfc9932b17
Add get_minimum_balance_for_rent_excemption to Client ( #14048 ) ( #14052 )
...
(cherry picked from commit 7abd8084b668764aa4079ef6748c229e9b9e054d)
Co-authored-by: Jack May <jack@solana.com>
2020-12-11 02:03:18 +00:00
mergify[bot]
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 d33ab34d75726dad9029909ae0438ed8a08e2b35)
Co-authored-by: Leopold Schabel <leo@certus.one>
2020-12-11 02:01:50 +00:00
mergify[bot]
0039861984
Add message helpers to get program info ( #14047 ) ( #14053 )
...
(cherry picked from commit d9655ea507f6a111b31a92673905e40658b1674c)
Co-authored-by: Jack May <jack@solana.com>
2020-12-10 17:43:06 -08:00
Michael Vines
fb3e88bb7e
Bump version to v1.4.16 ( #14054 )
2020-12-10 17:04:34 -08:00
mergify[bot]
c01bff61f8
Fix priv escalation test ( #14046 ) ( #14049 )
...
(cherry picked from commit 5ea80e673fb92ca30acd7ba612c01e179bbc3ee1)
Co-authored-by: Jack May <jack@solana.com>
2020-12-11 00:08:21 +00:00
mergify[bot]
6a0ba2587d
Lower priority for hashing threads. ( #14043 ) ( #14044 )
...
(cherry picked from commit 68109a46e03e2475d3c29beb1ced05c196294384)
Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-10 21:49:52 +00:00
mergify[bot]
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 409fe3bca112edc7aefafb6c7afe31c1e78f4f8a)
# 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
mergify[bot]
f7d2ba24f0
adds ledger-tool mode to print raw shred metadata ( #13962 ) ( #14017 )
...
(cherry picked from commit f6a7732ff9d445750ebc946d78e49ee627de6d8d)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-12-10 17:56:30 +00:00
mergify[bot]
90c6f8ae1a
Shred filter ( #14030 ) ( #14038 )
...
(cherry picked from commit 5c95d8e963ea2d62dfb280a70ec87a0f8421dfba)
Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-10 17:12:16 +00:00
mergify[bot]
24bd147b1a
Better dupe detection ( #13992 ) ( #14033 )
...
(cherry picked from commit c5fe076432a5cd196a5ac2cdeeaf5b86e3de04a7)
Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-10 08:32:44 +00:00
mergify[bot]
07191dc224
checks for duplicate validator instances using gossip (bp #14018 ) ( #14028 )
...
* checks for duplicate validator instances using gossip
(cherry picked from commit 8cd5eb9863ae62c90bd3da176b33a719386b8d3a)
# Conflicts:
# core/src/cluster_info.rs
* pushes node-instance along with version early in gossip
(cherry picked from commit 542198180ab4116b89b4e0759dcdb059293ae2a2)
* removes RwLock on ClusterInfo.instance
(cherry picked from commit 895d7d6a65bb3589baf58dee9fa172038f61c486)
# Conflicts:
# core/src/cluster_info.rs
* std::process::exit to kill all threads
(cherry picked from commit 1d267eae6b82222027780280f8141710260c6123)
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-12-09 13:04:57 -08:00
mergify[bot]
c20e74a248
Increase snapshot file size limits ( #14024 ) ( #14026 )
...
* Increase snapshot file size limits
* Fix test
* Reorder code a bit
(cherry picked from commit 14e241be356b85aba47ac95a3dbbdf630f2f9581)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-09 19:08:51 +00:00
mergify[bot]
f52feddfcd
Cap CPI signers (bp #14021 ) ( #14023 )
...
* Cap CPI signers (#14021 )
(cherry picked from commit e1a4251b0790d0cf5de8b49ea76d5ddcfb3a22ef)
# Conflicts:
# programs/bpf/tests/programs.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com>
2020-12-09 11:46:46 +00:00
mergify[bot]
a46d14a2d7
Don't use stale executor cache (bp #13966 ) ( #13969 )
...
* Don't use stale executor cache (#13966 )
(cherry picked from commit 882d0332333384fca1c4ae9adb57f3610de659f7)
* fix conflicts
Co-authored-by: Jack May <jack@solana.com>
2020-12-09 09:11:31 +00:00
mergify[bot]
fb9f35d2f0
Rent account passed to loader can be read-only ( #13997 ) ( #14000 )
...
(cherry picked from commit 20c0e8793e589385059f76a61f1dbe6fcb92db23)
Co-authored-by: Jack May <jack@solana.com>
2020-12-09 07:52:49 +00:00
mergify[bot]
3687dccda6
Remove unneeded BankWeight fork choice ( #13978 ) ( #14003 )
...
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 239a191612061eb4b49966c7f316f8c1a052505e)
Co-authored-by: carllin <wumu727@gmail.com>
2020-12-09 03:53:21 +00:00
mergify[bot]
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
mergify[bot]
820aa7e0ea
Add tests for store_account_and_update_capitalization ( #14008 ) ( #14016 )
...
(cherry picked from commit 28b014ccf489b5460d8a158412f648f4d36c6ad8)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-08 17:45:23 +00:00
mergify[bot]
eea3c4e4f1
Docs: Correct the system.conf NOFILE variable name ( #14010 )
...
(cherry picked from commit 845c783b0e40121a35014dc27daee808485fa3b9)
Co-authored-by: Trent Nelson <trent@solana.com>
2020-12-08 07:56:41 +00:00
mergify[bot]
c66ee3c623
Add --rpc-max-multiple-accounts to override the getMultipleAccounts JSON RPC maximum ( #14006 )
...
(cherry picked from commit 6e9dbb4f6e35d93d15148776e974d9b298a5bf05)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-08 02:43:23 +00:00
mergify[bot]
871066fb8d
Bump criterion to v2.3.3 ( #14002 ) ( #14004 )
...
(cherry picked from commit 1dc71fb5aaa75c9dd752c7b98e57f7515a5e9838)
Co-authored-by: Jack May <jack@solana.com>
2020-12-07 23:05:46 +00:00
mergify[bot]
aa084e1d3c
Fix logsSubscribe ( #13996 ) ( #13998 )
...
(cherry picked from commit 6ae4d2e5cb19974b3d14b49fcdd2b9f244dd5f8c)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-07 21:39:51 +00:00
Jack May
be0f9d4837
Bump rust-sysroot to v0.13 ( #14001 )
2020-12-07 13:26:12 -08:00
mergify[bot]
38485489c9
Cannot change owner if account is executable ( #13977 ) ( #13999 )
...
(cherry picked from commit dca579851c9eec286f40cdfd9b98b4d01347863e)
Co-authored-by: Jack May <jack@solana.com>
2020-12-07 20:53:57 +00:00
mergify[bot]
abbc146508
genesis, ledger-tool: --inflation/--vote-commission-percentaage ( #13989 ) ( #13991 )
...
(cherry picked from commit 82c75c3786f922abb30baf1b62fea7055f9da580)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-07 17:48:14 +00:00
Ryo Onodera
d58e2f1c68
Don't abort for missing epoch rewards; intead display warn ( #13457 )
2020-12-07 08:30:20 -08:00
mergify[bot]
fa32b4a848
Don't show confusing message for blacklist expires ( #13983 ) ( #13986 )
...
(cherry picked from commit 2f374df494f6a5ca8e5cbe8801b61e07a0540247)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-07 14:48:26 +00:00
mergify[bot]
aeb6ef3969
solana ping: add --blockhash and --print-timestamp ( #13980 ) ( #13984 )
...
* solana ping: add --blockhash and --print-timestamp
* fix typo in hash...
(cherry picked from commit 26df122386efae2ee4cf69ec28314efe35f92e9c)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-07 13:34:43 +00:00
mergify[bot]
a0c1e4a6e2
removes recursive read-locks on gossip ( #13973 ) ( #13974 )
...
ClusterInfo::tvu_peers acquires a read-lock on gossip:
https://github.com/solana-labs/solana/blob/f0e934145/core/src/cluster_info.rs#L1171-L1185
and so, ClusterInfo::repair_peers is recursively locking gossip for
read twice:
https://github.com/solana-labs/solana/blob/f0e934145/core/src/cluster_info.rs#L1202-L1223
But std::sync::RwLock is not re-entrant (recursive).
(cherry picked from commit 6706f2b3bb2958afcabbc7027182efd31407340b)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-12-06 17:32:56 +00:00
mergify[bot]
c1047b48fe
Add --remove-account option to create-snapshot command ( #13971 )
...
(cherry picked from commit c59cb28bbf89c94898a33ecf4e31b1f5cfe0ee0b)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-05 18:48:00 +00:00
mergify[bot]
add6989289
Report highest_confirmed_root and _slot in commitment metric ( #13964 ) ( #13968 )
...
(cherry picked from commit ca35bb3ac88ab5484803b83c1eb90d3f8117fdb7)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-05 02:13:15 +00:00
mergify[bot]
363b9d7209
Remove associated functions on AccountsDb, replace with methods ( #13953 ) ( #13954 )
...
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 5dceddd21d3c1cf874b003a0c25b1f21f4926614)
Co-authored-by: carllin <wumu727@gmail.com>
2020-12-04 04:20:07 +00:00
mergify[bot]
9846a8089e
verifies that serialized size of transactions does not exceed packet data size ( #13945 ) ( #13952 )
...
(cherry picked from commit 4e8565253c2eef74c4bea9c1b9503342a440fd3d)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-12-03 23:47:05 +00:00
mergify[bot]
d96bcc9ead
Blockstore exact purge cleanup ( #13946 ) ( #13948 )
...
* Add failing test
* Clean up signature get
(cherry picked from commit 85aa632be04af226ceb66b839ad386c1eeb93b96)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-03 23:08:05 +00:00
mergify[bot]
de445ec83e
Refresh testnet restart instructions ( #13950 )
...
(cherry picked from commit ced9f889a4387babb7ea1adfdfd3605b2dc7a928)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-03 22:27:33 +00:00
mergify[bot]
bb4943d8a7
samples repair peers using WeightedIndex ( #13919 ) ( #13938 )
...
To output one random sample, weighted_best generates n random numbers:
https://github.com/solana-labs/solana/blob/f751a5d4e/core/src/weighted_shuffle.rs#L38-L63
WeightedIndex does so with only one random number:
https://github.com/rust-random/rand/blob/eb02f0e46/src/distributions/weighted_index.rs#L223-L240
Additionally, if the index is already constructed, it only does a total
of O(log(n)) amount of work; which can be achieved if RepairCache,
caches the weighted index:
https://github.com/solana-labs/solana/blob/f751a5d4e/core/src/serve_repair.rs#L83
Also, the repair-peers code can be reorganized to have fewer redundant
unlock-then-lock code.
(cherry picked from commit c3048b451dc1d8da683ee97c828092092a8ce1f9)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-12-03 19:48:09 +00:00
Jack May
0f3705340b
Cap seeds not signers ( #13943 )
2020-12-03 11:46:34 -08:00
sakridge
d972a21aab
Add non-progress bar download status ( #13370 ) ( #13942 )
2020-12-03 11:30:31 -08:00
mergify[bot]
f705340971
Invoke with empty account slice (bp #13931 ) ( #13940 )
...
* Invoke with empty account slice (#13931 )
(cherry picked from commit 1c51711c7580e200ee7172947651dd6ae3e65b2f)
* nudge ci
Co-authored-by: Jack May <jack@solana.com>
2020-12-03 09:52:08 -08:00
mergify[bot]
e313cf8332
BankServer::send_transaction_with_context() now performs signature verification ( #13932 )
...
(cherry picked from commit 3b39e982981ea444c7c174462d5a3a4d5c935da1)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-03 03:35:48 +00:00
Michael Vines
38d7d7df50
Bump version to v1.4.15
2020-12-03 01:55:39 +00:00
Tyera Eulberg
eb0a448b99
Add credits_observed to verbose and json CliStakeStake prints ( #13926 )
2020-12-02 16:03:04 -07:00
Jack May
e6f54ffd56
Cap number of program address seeds ( #13925 )
...
* Cap number of program address seeds
* fmt
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-02 23:01:58 +00:00
mergify[bot]
44315895cf
Add a ramdisk section to the validator start guide ( #13927 )
...
(cherry picked from commit 5bfe93e74c5898de19d332f05004bd6feb2175d5)
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-02 21:37:59 +00:00
Michael Vines
9899e6fb39
Use add_builtin, as user-supplied builtins may not yet exist
2020-12-02 13:35:02 -08:00
mergify[bot]
da1796f97a
Nonce cleanup followup (bp #13868 ) ( #13922 )
...
* runtime: Factor out `DurableNoncePartial` finishing logic and add tests
(cherry picked from commit 8df2a4bac0954b004556c2fc2e5c6bb7b86d1028)
* accounts: Don't assume fee-payer is the first account
(cherry picked from commit 47af5933caea0e03930e2ed03d18160903a832a7)
* accounts: Replace nonce_rollback unreachable block with descriptive panic
(cherry picked from commit be7760caa1725020290a25023046772c7b5dc733)
* sdk: Check owner when verifying nonce accounts
(cherry picked from commit 274312ebb59ffeac4a8a40f42375c2c6eedb03e7)
* runtime: Replace `HashAgeKind` with `NonceRollbackInfo`
(cherry picked from commit 404fc1570d722709344876dc91799edd576056bf)
* Make `Accounts::is_non_loader_key()` a method on `Message`
(cherry picked from commit 17defbff13fab30210c0b454adb5296f44bd4243)
Co-authored-by: Trent Nelson <trent@solana.com>
2020-12-02 21:34:21 +00:00
mergify[bot]
501fea7a3c
Translate data length and owner as writable (bp #13914 ) ( #13918 )
...
* Translate data length and owner as writable (#13914 )
(cherry picked from commit 85bec37be4bf27a4e861dfc2d6e63d58b838b2c2)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
* Resolve conflicts
* nudge
* fmt funk
* ugh
* nudge
Co-authored-by: Jack May <jack@solana.com>
2020-12-02 19:28:15 +00:00
mergify[bot]
2583174cbd
Ledger tool cap basic columns ( #13904 ) ( #13913 )
...
* ledger-tool cap: Add more basic columns
* simplify InflationRecord::rewarded_epoch type
(cherry picked from commit 480dd15b1e2c51bd9f359654bf12f91f4d3acb4b)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-02 08:26:55 +00:00
mergify[bot]
72aa24db2c
Remove rpc_banks from validator (bp #13882 ) ( #13905 )
...
* Remove rpc_banks from validator (#13882 )
* Remove rpc_banks from validator
* Bump abi-digest
(cherry picked from commit 10c81a2448c1db49e010afbbed94ac48209cba48)
# Conflicts:
# core/src/validator.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-12-02 04:47:42 +00:00