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
3559062c00
caches vote-state de-serialized from vote accounts ( #13795 ) ( #13862 )
...
Gossip and other places repeatedly de-serialize vote-state stored in
vote accounts. Ideally the first de-serialization should cache the
result.
This commit adds new VoteAccount type which lazily de-serializes
VoteState from Account data and caches the result internally.
Serialize and Deserialize traits are manually implemented to match
existing code. So, despite changes to frozen_abi, this commit should be
backward compatible.
(cherry picked from commit e1793e5a13
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-30 18:36:23 +00:00
1a7e5669bf
Add flatten
to logs_subscribe commitment ( #13861 )
...
Currently, commitment for `logs_subscribe` must be specified using the
non-flattened form in JSON, ie `{"commitment":{"commitment":"max}}`.
This brings the commitment in line with documentation.
(cherry picked from commit 6203d1c94c
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2020-11-30 18:00:27 +00:00
5511d52c62
Don't reset credits_observed due to stale voters ( #13836 ) ( #13860 )
...
* Don't reset credits_observed due to stale voters
* Add tests
* Fix comment
(cherry picked from commit e81c2c826c
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-30 15:06:19 +00:00
50d5978b00
add zsh trouble shooting note to ledger docs ( #13854 )
...
(cherry picked from commit daebade239
)
Co-authored-by: Tommy Johnson <tommyjohnson1028@gmail.com >
2020-11-30 03:33:12 +00:00
cea722ac09
Bump version to v1.4.14 ( #13852 )
2020-11-29 18:20:19 +00:00
82b087e51e
Add extra checks to verify_and_update ( #13848 ) ( #13850 )
...
* Add extra checks to verify_and_update
* nudge
(cherry picked from commit ce4304cc9a
)
Co-authored-by: Jack May <jack@solana.com >
v1.4.13
2020-11-29 11:22:46 +00:00
da682eaef6
Add --unhealthy_threshold option
2020-11-28 23:51:11 -08:00
688562c049
Perform all RPC activity in the same place, also clean up Sol display
2020-11-28 23:51:11 -08:00
50e6fad0e6
Remove support to monitor all validators in a cluster for delinquency
...
This feature is no longer useful with hundreds of validators
2020-11-28 23:51:11 -08:00
d5cce435ce
Remove --notify-on-transaction support.
...
It's not longer useful due to the volume of transactions on mainnet-beta
and there are now other means of monitoring transactions
2020-11-28 23:51:11 -08:00
8f75cfe247
Record instructions after account translation ( #13845 )
...
(cherry picked from commit cc78667118
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-28 20:13:31 +00:00
686b775e35
Add --maximum-local-snapshot-age argument
2020-11-28 09:20:28 +00:00
a3be6bacc6
Enhance ledger-tool for multi-epoch rewards ( #13837 ) ( #13839 )
...
* Support ledger-tool for multi-epoch rewards
* nits
* Ensure not to skip some records in csv
(cherry picked from commit 6048342c57
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-27 05:36:08 +00:00
b493d554ad
Update examples to use Tokenkeg
2020-11-26 18:27:24 -08:00
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