2992a7154a
Refactor vote state to remove double negative (backport #21244 ) ( #21250 )
...
* Refactor vote state to remove double negative (#21244 )
(cherry picked from commit ef29d2d172
)
# Conflicts:
# runtime/src/stakes.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-11-13 01:27:23 +00:00
21cd423e67
Rename "trusted" to "known" in validators/
(backport #21197 ) ( #21255 )
...
* Rename "trusted" to "known" in `validators/` (#21197 )
* Replaced trusted with known validator
* Format Convention
(cherry picked from commit b0ca335463
)
# Conflicts:
# core/src/accounts_hash_verifier.rs
# core/src/serve_repair.rs
# rpc/src/rpc_service.rs
# validator/src/bootstrap.rs
* Fix conflicts
Co-authored-by: Michael Keleti <16996410+mkeleti@users.noreply.github.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-11-12 21:36:53 +00:00
09ef4d12f7
Bump version to 1.8.4 ( #21232 ) ( #21235 )
...
Co-authored-by: sakridge <sakridge@gmail.com >
2021-11-10 15:20:41 -07:00
de94c4e867
Add set_root
bank drop logging ( #21144 ) ( #21194 )
...
(cherry picked from commit 706b60b5c8
)
Co-authored-by: carllin <carl@solana.com >
v1.8.3
2021-11-10 11:58:28 -07:00
74684a107c
Revert "Bump version to 1.8.4 ( #21232 )"
...
This reverts commit 19b3ba0442
.
2021-11-10 11:19:39 -07:00
19b3ba0442
Bump version to 1.8.4 ( #21232 )
2021-11-10 16:38:44 +01:00
784c745efa
Disable JIT compiler on unsupported platforms ( #21215 ) ( #21218 )
...
(cherry picked from commit b4d09388aa
)
Co-authored-by: Kirill Fomichev <fanatid@ya.ru >
2021-11-09 13:29:49 +00:00
a7b3436b1e
report pubsub stats every 2s (backport #21192 ) ( #21196 )
...
* report pubsub stats every 2s (#21192 )
(cherry picked from commit 7659a2edc2
)
* remove use of Duration::MAX
Co-authored-by: Jeff Biseda <jbiseda@gmail.com >
2021-11-06 15:22:07 +00:00
89b2a3d0ae
Refactor RentDebits
to use hashmap instead of vec (v1.8 backport) ( #21176 )
...
* Refactor `RentDebits` to use hashmap instead of vec (v1.8 backport)
* Fix rent debits test (#21177 )
2021-11-05 08:52:14 +00:00
56fc58a2b5
Simplify replay vote tracking by using packet metadata (backport #21112 ) ( #21149 )
...
* Simplify replay vote tracking by using packet metadata (#21112 )
(cherry picked from commit 140a5f633d
)
# Conflicts:
# core/src/banking_stage.rs
# ledger-tool/src/main.rs
# rpc/src/rpc.rs
# runtime/src/bank.rs
# runtime/src/bank_utils.rs
# runtime/src/stakes.rs
# sdk/src/transaction/sanitized.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-11-05 00:16:34 +00:00
53e0c9710e
Fix typo in bankless-leader.md ( #21152 ) ( #21160 )
...
Reseting -> Resetting
(cherry picked from commit ae207b7dbb
)
Co-authored-by: Ikko Ashimine <eltociear@gmail.com >
2021-11-03 23:16:43 +00:00
c14864a608
Add accounts stats for space amplification ( #21151 )
2021-11-03 16:41:29 +01:00
780302af56
Add set_root timing metrics ( #21119 ) ( #21135 )
...
(cherry picked from commit 1e5212e60d
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-11-02 20:17:04 +00:00
90557564c3
Accountsdb plugin postgres improvement ( #21034 ) ( #21096 )
...
Summary of Changes
Added the reference postgresql.conf
Prepare slot update statement to reduce overhead in updating slot
Support custom connection string
Allow the plugin to panic on replication issues to ensure consistency
2021-11-02 01:07:21 -07:00
6d2fd078be
Update deprecated variant in RpcClient doctests ( #21121 ) ( #21131 )
...
(cherry picked from commit 96e5342292
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-11-01 23:48:30 -06:00
4a874e9ba1
Fixup filter deprecated since ( #21123 ) ( #21128 )
...
(cherry picked from commit 1b47f7f2cd
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-11-02 04:23:32 +00:00
22510678b4
docs: Update language around immutable programs ( #21116 ) ( #21118 )
...
(cherry picked from commit ec86ff8fb3
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-11-01 21:01:27 +00:00
69b973a3a6
Parallel notifications in RPC PubSub (backport #20543 ) ( #21092 )
...
* Parallel notifications in RPC PubSub (#20543 )
* generate rpc notifications in parallel
* Use multithreaded runtime for pubsub
* add metric for time since creation of rpc notification to queue
* measure notification entry processing
* fix: add n_threads config argument
* configure rayon thread pool for rpc notifications
* add config option for pubsub notification threads
* rename metric to created_to_queue_time_us
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* rename metric to notification_entry_processing_time_us
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* use value_of for rpc_pubsub_notification_threads parsing
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* rename threads to sol-sub-notif-N
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* fix rpc tests for TimestampedNotificationEntry
* rustfmt
* use rayon thread limit for rpc
Co-authored-by: Pavel Strakhov <p.strakhov@iconic.vc >
Co-authored-by: Alexander Polakov <a.polakov@zubr.io >
Co-authored-by: Nikita Podoliako <bananaelecitrus@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 9fabff5129
)
# Conflicts:
# Cargo.lock
# rpc/Cargo.toml
* Fix conflicts
Co-authored-by: Pavel Strakhov <ri@idzaaus.org >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-11-01 20:19:51 +00:00
cc7ed71cb7
Fix serum-dex downstream build ( #21115 )
2021-11-01 17:54:22 +00:00
b6fe051d24
Document next_account_info(s) ( #21076 ) ( #21080 )
...
(cherry picked from commit 62c8fb4792
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-10-29 22:22:09 +00:00
506d39ea82
Add missing websocket methods to rust RPC PubSub client (backport #21065 ) ( #21073 )
...
* Add missing websocket methods to rust RPC PubSub client (#21065 )
- Added accountSubscribe, programSubscribe, slotSubscribe and rootSubscribe to rust RpcClient
- Removed duplication on cleanup threads
- Moved RPCVote from rpc/ to client/rpc_response
(cherry picked from commit a0f9e0e8ee
)
# Conflicts:
# Cargo.lock
# client-test/Cargo.toml
# core/tests/client.rs
* Fix conflicts
* Make test result not depend on TestValidator setup
Co-authored-by: Manuel Gil <manugildev@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-10-29 21:46:59 +00:00
a595e06b48
Check whether vote-authorize-voter-checked new vote authority is_interactive ( #21051 ) ( #21057 )
...
* Check interactive signer for vote-authorize-voter-checked
* Recommend checked vote reauthorization
(cherry picked from commit 0b8fcf0808
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-10-28 23:10:25 +00:00
da08f3dc2b
seeds rng for test_build_crds_filter test ( #21031 ) ( #21048 )
...
(cherry picked from commit eea3fb327f
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-10-28 22:06:13 +00:00
8dd3c1ece1
Bump version to v1.8.3 ( #21040 )
2021-10-28 11:17:11 -06:00
42a2c29234
Different error if block status is not yet available ( #20407 ) ( #21029 )
...
* Different error if block is not available
* Add slot to error message
* Make and use helper function
* Check finalized path as well
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit 700e42d556
)
Co-authored-by: sakridge <sakridge@gmail.com >
v1.8.2
2021-10-27 20:58:15 +00:00
a1f1264962
Swap banking stage vote channels ( #20987 ) ( #21000 )
...
(cherry picked from commit 261dd96ae3
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-10-27 20:17:38 +00:00
66caead016
Add compute budget noops (backport #20992 ) ( #21014 )
...
* Add compute budget program as a noop (#20992 )
(cherry picked from commit 1e2bef76e3
)
# Conflicts:
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-10-27 12:47:35 -07:00
de1f60fb2d
Refactor cost tracker metrics reporting (backport #20802 ) ( #20933 )
...
* - cost_tracker is data member of a bank, it can report metrics when bank is frozen (#20802 )
- removed cost_tracker_stats and histogram
- move stats reporting outside of bank freeze
(cherry picked from commit c2bfce90b3
)
# Conflicts:
# Cargo.lock
# core/src/banking_stage.rs
# core/src/replay_stage.rs
# core/src/tvu.rs
# ledger-tool/src/main.rs
# programs/bpf/Cargo.lock
# runtime/Cargo.toml
# runtime/src/cost_tracker.rs
* manual fix merge conflicts
Co-authored-by: Tao Zhu <82401714+taozhu-chicago@users.noreply.github.com >
Co-authored-by: Tao Zhu <tao@solana.com >
2021-10-27 16:48:20 +00:00
7528016e2d
Add counter for dropped duplicated packets, fix dropped_packets_count ( #20834 ) ( #21023 )
...
(cherry picked from commit 71d0bd4605
)
2021-10-27 11:36:37 -05:00
adc57899fe
tpu-client: Add send_messages_with_spinner
from program / stake-o-matic (backport #20960 ) ( #21002 )
...
* tpu-client: Move `send_messages_with_spinner` from program (#20960 )
We have too many ways of sending transactions, and too many
reimplementations of the same logic all over the place.
The program deploy logic and stake-o-matic currently make the
most use of the TPU client, so this merges their implementations into
one place to be reused by both. Yay for consolidation!
(cherry picked from commit 5f7b60576f
)
# Conflicts:
# cli/src/program.rs
# client/src/mock_sender.rs
* Fix merge issues, use older APIs
* Update mock sender fee to match block height
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-10-27 12:22:17 +00:00
afe229a89e
Document entrypoint!
, custom_heap_default!
, and custom_panic_default!
( #21003 ) ( #21015 )
...
(cherry picked from commit ced1505b75
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-10-27 07:49:14 +00:00
5dd00e9230
Force a recent version of the openssl crate to allow this to build on M1 macs (backport #21008 ) ( #21012 )
...
* Force a recent version of the openssl crate to allow this to build on M1 macs
(cherry picked from commit 920159fc63
)
# Conflicts:
# Cargo.lock
# programs/bpf_loader/Cargo.toml
* Run cargo check
(cherry picked from commit 8efc577374
)
# Conflicts:
# programs/bpf/Cargo.lock
* Resolve merge conflicts
Co-authored-by: Matt Wilde <matthewcwilde@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-10-27 02:55:49 +00:00
0a698fc48f
Instruction sysvar fixes, additions (backport #20958 ) ( #21001 )
...
* Instruction sysvar fixes, additions (#20958 )
(cherry picked from commit 4fe3354c8f
)
# Conflicts:
# programs/bpf/rust/sysvar/src/lib.rs
# programs/bpf/tests/programs.rs
# sdk/program/src/sysvar/instructions.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-10-27 01:00:01 +00:00
1666fc5483
Restore getProgramAccounts spl-token secondary-index functionality (backport #20993 ) ( #21005 )
...
* Restore getProgramAccounts spl-token secondary-index functionality (#20993 )
* Allow get_spl_token_X_filters to match on any encoding, and optimize earlier
* Remove redundant optimize calls
* Compress match statements
* Add method docs, including note to use optimize_filters before spl-token checks
* Add logs
(cherry picked from commit b2f6cfb9ff
)
# Conflicts:
# rpc/src/rpc.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-10-26 23:43:45 +00:00
467abd1f5b
feat: update getClusterNodes
...
(cherry picked from commit dec104c580
)
2021-10-26 13:18:19 -07:00
19432f2e5f
Add CrdsData::IncrementalSnapshotHashes (backport #20374 ) ( #20994 )
...
* Add CrdsData::IncrementalSnapshotHashes (#20374 )
(cherry picked from commit 4e3818e5c1
)
# Conflicts:
# gossip/src/cluster_info.rs
* removes backport merge conflicts
Co-authored-by: Brooks Prumo <brooks@solana.com >
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-10-26 20:07:09 +00:00
7e7f8ef5f0
Report timing info for stakes cache updates from txs (backport #20856 ) ( #20884 )
...
* Report timing info for stakes cache updates from txs (#20856 )
(cherry picked from commit 735016661b
)
# Conflicts:
# runtime/src/bank.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-10-26 20:04:32 +00:00
9e81798d6d
fix(docs): missing import ( #20788 ) ( #20996 )
...
add missing import of `Connection`
(cherry picked from commit 521b7b79cc
)
Co-authored-by: Colin Ogoo <ogoo.colin@gmail.com >
2021-10-26 19:10:27 +00:00
8986bd301c
adds metrics tracking gossip crds writes and votes (backport #20953 ) ( #20982 )
...
* adds metrics tracking crds writes and votes (#20953 )
(cherry picked from commit 1297a13586
)
# Conflicts:
# core/src/cluster_nodes.rs
# gossip/benches/crds_shards.rs
# gossip/src/cluster_info.rs
# gossip/src/cluster_info_metrics.rs
# gossip/src/crds_entry.rs
# gossip/src/crds_gossip.rs
# gossip/src/crds_gossip_pull.rs
# gossip/src/crds_gossip_push.rs
# gossip/src/crds_shards.rs
# gossip/tests/crds_gossip.rs
# rpc/src/rpc_service.rs
* updates itertools version in gossip
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-10-26 17:41:45 +00:00
6baad8e239
doubles crds unique pubkey capacity ( #20947 ) ( #20981 )
...
(cherry picked from commit 43168e6365
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-10-26 15:14:29 +00:00
782d143489
Accountsdb plugin write ordering ( #20948 ) ( #20964 )
...
Use the write_version in the Accounts's meta data so that account write with lower write_version would not overwrite the higher ones.
2021-10-26 00:05:40 -07:00
b15e87631c
[solana-test-validator] add support for keypair file parsing for --bpf-program address argument ( #20962 )
...
(cherry picked from commit 58aa2b964b
)
Co-authored-by: Paul Schaaf <paulsimonschaaf@gmail.com >
2021-10-26 01:09:56 +00:00
d18f553e2d
Extend TestBroadcastReceiver::recv timeout ( #20957 ) ( #20961 )
...
* Extend TestBroadcastReceiver timeout
* Add elapsed log
(cherry picked from commit 337b94b3bc
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-10-26 00:51:29 +00:00
e84c57b659
Hide deploy from cli subcommands ( #20901 ) ( #20951 )
...
(cherry picked from commit af405f0ed7
)
Co-authored-by: Jack May <jack@solana.com >
2021-10-25 20:03:44 +00:00
66630804de
Accountsdb plugin postgres -- bulk insertion at startup ( #20763 ) ( #20931 )
...
* Accountsdb plugin postgres -- bulk insertion at startup (#20763 )
Use bulk insertion to Postgres at startup to reduce time taken for initial snapshot restore for postgres plugin. Avoid duplicate writes of accounts at startup. Doing account plugin notification and indexing in parallel.
Improved error handling for postgres plugin to show the real db issues for debug purpose
Added more metrics for postgres plugin.
Refactored plugin centric code out to a sub module from accounts_db and added unit tests
* Fixed the unit test failures
2021-10-25 09:18:32 -07:00
72158e3bf9
CLI: Add SW versions to feature status output (backport #20878 ) ( #20905 )
...
* cli: struct the tuples
(cherry picked from commit b9eb6242f5
)
* cli: add software version(s) to feature status
(cherry picked from commit 152da44b62
)
# Conflicts:
# cli/Cargo.toml
* cli: sort feature status output
(cherry picked from commit 30d277b9fd
)
* cli: improve feature status arithmatic readability
(cherry picked from commit d98c8b861c
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-10-25 05:04:08 +00:00
df6063a622
removes backport merge conflicts
2021-10-24 21:29:29 -07:00
55a1f03eee
adds metrics for number of outgoing shreds in retransmit stage ( #20882 )
...
(cherry picked from commit 5e1cf39c74
)
# Conflicts:
# core/src/retransmit_stage.rs
2021-10-24 21:29:29 -07:00
d20cccc26b
Add check for shred data header size ( #20668 )
...
(cherry picked from commit 588168b99d
)
2021-10-24 20:16:41 -07:00
6c4a8b2d72
feat(docs): add transactionCount to getEpochInfo response
...
(cherry picked from commit aa13c90dd7
)
2021-10-24 20:15:12 -07:00