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
307cda52ac
Fixed bug in AccountInfo::serialize() ( #20923 )
...
Closes #20917
(cherry picked from commit edf5bc242c
)
Co-authored-by: Eugene Lomov <eugene.v.lomov@gmail.com >
2021-10-25 02:26:18 +00:00
026385effd
ci: Increase timeout duration for coverage step ( #20888 )
...
(cherry picked from commit 4fbf44dc75
)
2021-10-24 17:44:36 -07:00
0363d8d373
Use config limit instead of default ( #20900 ) ( #20907 )
...
(cherry picked from commit 9dd87bcdb5
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-10-23 21:05:07 +00:00
5c3f15e9c5
Support port number in postgres connection ( #20662 ) ( #20704 )
...
* Support port number in postgres connection
* Addressed a few comments from Trent
(cherry picked from commit ad0a88f1f2
)
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2021-10-23 18:35:30 +00:00
47e80be023
Fix response examples for getTokenAccountsByOwner
and getTokenAccountsByDelegate
( #20919 )
...
(cherry picked from commit 63f94a4db3
)
Co-authored-by: Slavomir <gagliardetto@users.noreply.github.com >
2021-10-23 16:43:13 +00:00
460dcad578
solana-test-validator --log
now includes version/argument information
...
(cherry picked from commit 86bf071d77
)
2021-10-22 13:46:29 -07:00
257d19ca48
Update 'Developing with Rust' GitHub links ( #20860 ) ( #20875 )
...
* Update old GitHub links in 'Developing with Rust' docs
* exclude_entrypoint -> no-entrypoint in 'Developing with Rust'
(cherry picked from commit f729dec321
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-10-22 08:13:38 +00:00
de2aa898a7
Add counter for new transactions in SendTransactionService ( #20852 ) ( #20859 )
...
* Add counter for inserted transactions
* Add counter for tx recv
(cherry picked from commit 8959d5e21c
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-10-22 05:03:26 +00:00
23b6ce7980
Bump version to 1.8.2
2021-10-21 00:43:40 -06:00
8cba6cca76
rpc-send-tx-svc server-side retry knobs (backport #20818 ) ( #20830 )
...
* rpc-send-tx-svc: add with_config constructor
(cherry picked from commit fe098b5ddc
)
# Conflicts:
# Cargo.lock
# core/Cargo.toml
# replica-node/Cargo.toml
# rpc/src/rpc_service.rs
# rpc/src/send_transaction_service.rs
# validator/Cargo.toml
* rpc-send-tx-svc: server-side retry knobs
(cherry picked from commit 2744a2128c
)
Co-authored-by: Trent Nelson <trent@solana.com >
v1.8.1
2021-10-21 02:15:03 +00:00
85048c667c
cli: account for rpc nodes when considering feature set adoption ( #20774 )
...
(cherry picked from commit 5794bba65c
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-10-20 17:41:47 -06:00
440ccd189e
Add program heap bump instruction (backport #20607 ) ( #20815 )
...
* Add program heap bump instruction (#20607 )
(cherry picked from commit 58164517e4
)
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-10-20 23:05:57 +00:00
d5fc81e12a
Reduce budget request instruction length ( #20636 ) ( #20644 )
...
(cherry picked from commit c231cfe235
)
Co-authored-by: Jack May <jack@solana.com >
2021-10-20 12:17:29 -07:00
53f4bde471
add checked instructions sysvar api (backport #20790 ) ( #20816 )
...
* add checked instructions sysvar api (#20790 )
(cherry picked from commit a8098f37d0
)
# Conflicts:
# programs/bpf/rust/sysvar/src/lib.rs
# runtime/src/accounts.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-10-20 18:11:51 +00:00
232731e869
adds more metrics to blockstore insert shreds stats (backport #20701 ) ( #20751 )
...
* adds more metrics to blockstore insert shreds stats (#20701 )
(cherry picked from commit 231b58b5f1
)
# Conflicts:
# ledger/src/blockstore.rs
* removes backport merge conflicts
* removes error logs
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-10-20 08:12:32 +00:00
63835ec214
prior to panicing with cap mismatch, try other calculation ( #20292 ) ( #20804 )
...
(cherry picked from commit fa5b091b4c
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-10-20 02:26:23 +00:00
6de9ef62e8
docs: Amend RPC Transaction History proposal ( #20794 ) ( #20812 )
...
# Problem
The initial proposal ruled out implementing BigTable queries for
the `getBlockTime` RPC, but then it was implemented a couple months
later. Indicating that the functionality was never implemented in
the "implemented-proposals" document is a little confusing, so let's
bring the document in line with what actually happened. 🦾
# Summary of Changes
Remove the blurb about how `getBlockTime` was going to be deprecated
and add it to the list of calls that didn't yet support BigTable
queries at the time the proposal was written.
(cherry picked from commit 0c7bade0b2
)
Co-authored-by: Arthur Burkart <arthur@presynce.com >
2021-10-20 02:07:17 +00:00
0759b666ce
Expand Rust API docs entry point ( #20770 ) ( #20801 )
...
(cherry picked from commit cc4bb5a451
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-10-20 01:53:55 +00:00
c7e3d4cf79
Add docs to solana_clap_utils::keypair (backport #20665 ) ( #20789 )
...
* Add docs to solana_clap_utils::keypair (#20665 )
* Add docs to solana_clap_utils::keypair
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Move imports to module level in solana_clap_utils::keypair::tests
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 96c6ba6eb2
)
# Conflicts:
# clap-utils/src/keypair.rs
* Fix conflicts
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-10-20 01:45:14 +00:00
63e37b2b20
Remove @brief annotations from Rust API docs (backport #20769 ) ( #20807 )
...
* Remove @brief annotations from Rust API docs (#20769 )
(cherry picked from commit d9b0fc0e3e
)
# Conflicts:
# programs/bpf/rust/invoke/src/instructions.rs
# programs/bpf/rust/invoke/src/processor.rs
# programs/bpf/rust/realloc/src/instructions.rs
# programs/bpf/rust/realloc/src/lib.rs
# programs/bpf/rust/realloc/src/processor.rs
# programs/bpf/rust/realloc_invoke/src/instructions.rs
# programs/bpf/rust/realloc_invoke/src/lib.rs
# programs/bpf/rust/realloc_invoke/src/processor.rs
# sdk/cargo-build-bpf/tests/crates/fail/src/lib.rs
# sdk/src/precompiles.rs
* Fix conflicts
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-10-19 19:17:33 -06:00
436ec212f4
report udp stats from validator (backport #20587 ) ( #20799 )
...
* report udp stats from validator (#20587 )
(cherry picked from commit 4cac66244d
)
# Conflicts:
# core/src/validator.rs
* resolve merge conflicts
Co-authored-by: Jeff Biseda <jbiseda@gmail.com >
2021-10-20 00:57:38 +00:00
564cc95b00
runtime: Add foundation stake pool withdraw authority ( #20797 )
...
(cherry picked from commit cb2bd65858
)
2021-10-19 17:56:09 -07:00
28eb6ff796
Invoke cost tracker from its bank (backport #20627 ) ( #20800 )
...
* - make cost_tracker a member of bank, remove shared instance from TPU; (#20627 )
- decouple cost_model from cost_tracker; allowing one cost_model
instance being shared within a validator;
- update cost_model api to calculate_cost(&self...)->transaction_cost
(cherry picked from commit 7496b5784b
)
# Conflicts:
# core/src/banking_stage.rs
# ledger-tool/src/main.rs
# runtime/src/bank.rs
# runtime/src/cost_model.rs
# 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-20 00:22:38 +00:00
de32ab4d57
Separate out interrupted slots broadcast metrics ( #20537 ) ( #20798 )
...
(cherry picked from commit 838ff3b871
)
Co-authored-by: carllin <carl@solana.com >
2021-10-19 22:26:49 +00:00
cabe2d5d04
Use node LTS ( #20803 ) ( #20806 )
...
(cherry picked from commit 2c2bcd20e6
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-10-19 15:51:59 -06:00
ece4ecb792
stake: Add BorshSerialize
trait to structs ( #20784 ) ( #20792 )
...
(cherry picked from commit dc1b8ddea1
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-10-19 20:23:24 +00:00
ba366f49ad
Ignore RUSTSEC-2020-0159
...
(cherry picked from commit 7baeb04f26
)
2021-10-18 13:50:31 -07:00
8e666f47e0
optimistic-confirmation-and-slashing - fix typos ( #20741 ) ( #20765 )
...
(cherry picked from commit 84660bbf3d
)
Co-authored-by: Elliot Lee <github.public@intelliot.com >
2021-10-18 17:49:45 +00:00
0619705ce5
Simplify ed25519 instruction index
...
Allow u16::MAX to be specified for the instruction index. This makes it
possible to specify the current instruction, so it is not necessary to
know the instruction number.
2021-10-18 15:41:24 +01:00