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
38485489c9
Cannot change owner if account is executable ( #13977 ) ( #13999 )
...
(cherry picked from commit dca579851c
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-07 20:53:57 +00:00
abbc146508
genesis, ledger-tool: --inflation/--vote-commission-percentaage ( #13989 ) ( #13991 )
...
(cherry picked from commit 82c75c3786
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-07 17:48:14 +00:00
d58e2f1c68
Don't abort for missing epoch rewards; intead display warn ( #13457 )
2020-12-07 08:30:20 -08:00
fa32b4a848
Don't show confusing message for blacklist expires ( #13983 ) ( #13986 )
...
(cherry picked from commit 2f374df494
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-07 14:48:26 +00:00
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 26df122386
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-07 13:34:43 +00:00
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 6706f2b3bb
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-06 17:32:56 +00:00
c1047b48fe
Add --remove-account option to create-snapshot command ( #13971 )
...
(cherry picked from commit c59cb28bbf
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-05 18:48:00 +00:00
add6989289
Report highest_confirmed_root and _slot in commitment metric ( #13964 ) ( #13968 )
...
(cherry picked from commit ca35bb3ac8
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-05 02:13:15 +00:00
363b9d7209
Remove associated functions on AccountsDb, replace with methods ( #13953 ) ( #13954 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 5dceddd21d
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-12-04 04:20:07 +00:00
9846a8089e
verifies that serialized size of transactions does not exceed packet data size ( #13945 ) ( #13952 )
...
(cherry picked from commit 4e8565253c
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-03 23:47:05 +00:00
d96bcc9ead
Blockstore exact purge cleanup ( #13946 ) ( #13948 )
...
* Add failing test
* Clean up signature get
(cherry picked from commit 85aa632be0
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-03 23:08:05 +00:00
de445ec83e
Refresh testnet restart instructions ( #13950 )
...
(cherry picked from commit ced9f889a4
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-03 22:27:33 +00:00
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 c3048b451d
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-03 19:48:09 +00:00
0f3705340b
Cap seeds not signers ( #13943 )
2020-12-03 11:46:34 -08:00
d972a21aab
Add non-progress bar download status ( #13370 ) ( #13942 )
2020-12-03 11:30:31 -08:00
f705340971
Invoke with empty account slice (bp #13931 ) ( #13940 )
...
* Invoke with empty account slice (#13931 )
(cherry picked from commit 1c51711c75
)
* nudge ci
Co-authored-by: Jack May <jack@solana.com >
2020-12-03 09:52:08 -08:00
e313cf8332
BankServer::send_transaction_with_context() now performs signature verification ( #13932 )
...
(cherry picked from commit 3b39e98298
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-03 03:35:48 +00:00
38d7d7df50
Bump version to v1.4.15
2020-12-03 01:55:39 +00:00
eb0a448b99
Add credits_observed to verbose and json CliStakeStake prints ( #13926 )
v1.4.14
2020-12-02 16:03:04 -07:00
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
44315895cf
Add a ramdisk section to the validator start guide ( #13927 )
...
(cherry picked from commit 5bfe93e74c
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-02 21:37:59 +00:00
9899e6fb39
Use add_builtin, as user-supplied builtins may not yet exist
2020-12-02 13:35:02 -08:00
da1796f97a
Nonce cleanup followup (bp #13868 ) ( #13922 )
...
* runtime: Factor out `DurableNoncePartial` finishing logic and add tests
(cherry picked from commit 8df2a4bac0
)
* accounts: Don't assume fee-payer is the first account
(cherry picked from commit 47af5933ca
)
* accounts: Replace nonce_rollback unreachable block with descriptive panic
(cherry picked from commit be7760caa1
)
* sdk: Check owner when verifying nonce accounts
(cherry picked from commit 274312ebb5
)
* runtime: Replace `HashAgeKind` with `NonceRollbackInfo`
(cherry picked from commit 404fc1570d
)
* Make `Accounts::is_non_loader_key()` a method on `Message`
(cherry picked from commit 17defbff13
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-12-02 21:34:21 +00:00
501fea7a3c
Translate data length and owner as writable (bp #13914 ) ( #13918 )
...
* Translate data length and owner as writable (#13914 )
(cherry picked from commit 85bec37be4
)
# 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
2583174cbd
Ledger tool cap basic columns ( #13904 ) ( #13913 )
...
* ledger-tool cap: Add more basic columns
* simplify InflationRecord::rewarded_epoch type
(cherry picked from commit 480dd15b1e
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-02 08:26:55 +00:00
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 10c81a2448
)
# 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
bbf53f9050
Add specific page for rpc endpoints ( #13899 ) ( #13910 )
...
(cherry picked from commit 0f76daaf7a
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-02 04:25:58 +00:00
e7a95b1189
solana-tokens: optimize PickleDb dumps (bp #13879 ) ( #13903 )
...
* solana-tokens: optimize PickleDb dumps (#13879 )
* Dump PickleDb after transaction sends/confirmation
* Dump PickleDb on ctrlc
* Don't exit during tests
* Add build_messages helper and test db dump
* Add send_messages helper and test db dump
* Add combined test
* Add log_transaction_confirmations helper and test db dump
* Add update_finalized_transactions test
* Return error instead of process::exit
* Close TestValidator
(cherry picked from commit 8c40dd34b2
)
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-12-02 03:49:11 +00:00
311a1a38dc
Lock serum-dex to older version to avoid build failures ( #13900 )
...
(cherry picked from commit 4e90a9f5fd
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-01 23:51:15 +00:00
a1828a0e45
Reduce the number of snapshots
...
(cherry picked from commit 73111b005f
)
2020-12-01 13:05:24 -08:00
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
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
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
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
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
7890957250
Bump to rbpf v0.1.34 ( #13874 )
2020-12-01 01:43:50 +00:00
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
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