c4050f541d
Fix reward type encoding
...
(cherry picked from commit 0a89bb4d3c
)
2020-10-26 12:01:38 -07:00
f0b74a4ecf
marks pull request creation time only once per peer ( #13113 ) ( #13156 )
...
mark_pull_request_creation time requires an exclusive lock on gossip:
https://github.com/solana-labs/solana/blob/16944e218/core/src/cluster_info.rs#L1547-L1548
Current code is redundantly marking each peer once for each request.
There are at most only 2 unique peers, whereas there are hundreds of
requests per each. So the lock is acquired hundreds of time longer than
necessary.
(cherry picked from commit 4bfda3e766
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-26 18:27:26 +00:00
f7979378fd
Fix test_optimistic_confirmation_violation_without_tower() ( #13043 ) ( #13145 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit dd6cccaf7e
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-10-26 06:33:20 +00:00
d7c5607982
Hide noisy specialization warnings for frozen abi ( #13141 ) ( #13144 )
...
(cherry picked from commit 5caf81dbf8
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-26 06:19:58 +00:00
91ab5ae990
Remove program feature from SPL builds
2020-10-25 21:08:53 -07:00
605e767259
Allow existence of vote on root in saved tower ( #13135 ) ( #13139 )
...
(cherry picked from commit 66c7a98009
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-26 12:34:58 +09:00
597618846b
Bump version to v1.4.4
2020-10-24 22:10:32 +00:00
712267bf51
Rename "everything" feature to "full"
...
(cherry picked from commit 0cc9c94c43
)
v1.4.3
2020-10-24 13:21:11 -07:00
eb9cef0cd4
Separate the "program" feature of solana-sdk
into a new crate called solana-program
(bp #12989 ) ( #13131 )
...
* Add solana-program-sdk boilerplate
(cherry picked from commit 3718771ffb
)
# Conflicts:
# sdk/Cargo.toml
* Initial population of solana-program-sdk
(cherry picked from commit 63db324204
)
# Conflicts:
# Cargo.lock
* Port programs to solana-program-sdk
(cherry picked from commit fe68f7f786
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/rust/128bit/Cargo.toml
# programs/bpf/rust/128bit_dep/Cargo.toml
# programs/bpf/rust/alloc/Cargo.toml
# programs/bpf/rust/call_depth/Cargo.toml
# programs/bpf/rust/custom_heap/Cargo.toml
# programs/bpf/rust/dep_crate/Cargo.toml
# programs/bpf/rust/deprecated_loader/Cargo.toml
# programs/bpf/rust/dup_accounts/Cargo.toml
# programs/bpf/rust/error_handling/Cargo.toml
# programs/bpf/rust/external_spend/Cargo.toml
# programs/bpf/rust/instruction_introspection/Cargo.toml
# programs/bpf/rust/invoke/Cargo.toml
# programs/bpf/rust/invoked/Cargo.toml
# programs/bpf/rust/iter/Cargo.toml
# programs/bpf/rust/many_args/Cargo.toml
# programs/bpf/rust/many_args_dep/Cargo.toml
# programs/bpf/rust/noop/Cargo.toml
# programs/bpf/rust/panic/Cargo.toml
# programs/bpf/rust/param_passing/Cargo.toml
# programs/bpf/rust/param_passing_dep/Cargo.toml
# programs/bpf/rust/rand/Cargo.toml
# programs/bpf/rust/ristretto/Cargo.toml
# programs/bpf/rust/sanity/Cargo.toml
# programs/bpf/rust/sha256/Cargo.toml
# programs/bpf/rust/sysval/Cargo.toml
* Only activate legacy program feature for the solana-sdk crate
(cherry picked from commit 85c51f5787
)
* Run serum-dex unit tests
(cherry picked from commit 92ce381d60
)
* Rename solana-program-sdk to solana-program
(cherry picked from commit dd711ab5fb
)
# Conflicts:
# programs/bpf/rust/128bit/Cargo.toml
# programs/bpf/rust/128bit_dep/Cargo.toml
# programs/bpf/rust/alloc/Cargo.toml
# programs/bpf/rust/call_depth/Cargo.toml
# programs/bpf/rust/custom_heap/Cargo.toml
# programs/bpf/rust/dep_crate/Cargo.toml
# programs/bpf/rust/deprecated_loader/Cargo.toml
# programs/bpf/rust/dup_accounts/Cargo.toml
# programs/bpf/rust/error_handling/Cargo.toml
# programs/bpf/rust/external_spend/Cargo.toml
# programs/bpf/rust/instruction_introspection/Cargo.toml
# programs/bpf/rust/invoke/Cargo.toml
# programs/bpf/rust/invoked/Cargo.toml
# programs/bpf/rust/iter/Cargo.toml
# programs/bpf/rust/many_args/Cargo.toml
# programs/bpf/rust/many_args_dep/Cargo.toml
# programs/bpf/rust/noop/Cargo.toml
# programs/bpf/rust/panic/Cargo.toml
# programs/bpf/rust/param_passing/Cargo.toml
# programs/bpf/rust/param_passing_dep/Cargo.toml
# programs/bpf/rust/rand/Cargo.toml
# programs/bpf/rust/ristretto/Cargo.toml
# programs/bpf/rust/sanity/Cargo.toml
# programs/bpf/rust/sha256/Cargo.toml
# programs/bpf/rust/sysval/Cargo.toml
* Update frozen_abi hashes
The movement of files in sdk/ caused ABI hashes to change
(cherry picked from commit a4956844bd
)
* Resolve merge conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-24 17:25:22 +00:00
62e0e19961
add precompile verification to simulate_transaction ( #13080 ) ( #13126 )
...
(cherry picked from commit 766406fd23
)
Co-authored-by: Josh <josh.hundley@gmail.com >
2020-10-24 05:02:41 +00:00
9aee9cb867
Clean up opt conf verifier and vote state tracker ( #13081 ) ( #13124 )
...
* Clean up opt conf verifier and vote state tracker
* Update test to follow new message and some knob
* Rename
(cherry picked from commit 0264147d42
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-24 04:12:02 +00:00
2b11558b36
Shorten magic install URL ( #13122 )
...
(cherry picked from commit b5170b993e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-23 23:28:19 +00:00
18c4e1b023
ci: Add downstream project build testing (bp #13112 ) ( #13119 )
...
* Use local cargo for CI
(cherry picked from commit c7c50bd32c
)
* Add downstream project build testing
(cherry picked from commit c7f4f15e60
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-23 22:13:51 +00:00
6bac44ed92
Move bpf sdk packaging from publish-tarball to cargo-install-all ( #13117 )
...
(cherry picked from commit 965ea97b56
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-23 21:39:41 +00:00
8cb622084f
Cli: deploy programs via TPU ( #13090 ) ( #13111 )
...
* Deploy: send write transactions to leader tpu
* Less apparent stalling during confirmation
* Add EpochInfo mock
* Only get cluster nodes once
* Send deploy writes to next leader
(cherry picked from commit 16944e218f
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-23 17:29:41 +00:00
38f7e9a979
shrink debug ( #13089 ) ( #13109 )
...
(cherry picked from commit 7d2729f6bd
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-10-23 17:02:00 +00:00
a536f779ee
scans crds table in parallel for finding old labels ( #13073 ) ( #13107 )
...
From runtime profiles, the majority time of ClusterInfo::handle_purge
https://github.com/solana-labs/solana/blob/0776fa05c/core/src/cluster_info.rs#L1605-L1626
is spent scanning crds table finding old labels:
https://github.com/solana-labs/solana/blob/0776fa05c/core/src/crds.rs#L175-L197
This can be done in parallel given that gossip thread-pool:
https://github.com/solana-labs/solana/blob/0776fa05c/core/src/cluster_info.rs#L1637-L1641
is idle when handle_purge is invoked:
https://github.com/solana-labs/solana/blob/0776fa05c/core/src/cluster_info.rs#L1681
(cherry picked from commit 37c8842bcb
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-23 15:36:06 +00:00
84a5e5ec97
Remove spammy invalid rpc log ( #13100 ) ( #13102 )
...
(cherry picked from commit c95f6c4b83
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-10-23 08:32:46 +00:00
dd33aae3cf
Add --bpf-out-dir argument to control where the final build products land ( #13099 )
...
(cherry picked from commit b169d9cfbe
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-23 07:56:35 +00:00
be2ace47e3
Add deploy err if program-account balance is too high ( #13091 ) ( #13098 )
...
* Add deploy err if program-account balance is too high
* Review comments
* Add system-program check
* Rename and unhide flag
(cherry picked from commit 4669fa0f98
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-23 07:02:16 +00:00
53b074aa35
Bump version to 1.4.3
2020-10-23 04:20:28 +00:00
a4ad2925a2
Allow nodes to advertise a different rpc address over gossip ( #13053 ) ( #13078 )
...
* Allow nodes to advertise a different rpc address over gossip
* Feedback
(cherry picked from commit 8b0242a5d8
)
Co-authored-by: Justin Starry <justin@solana.com >
v1.4.2
2020-10-22 07:06:27 +00:00
edfbd8d65a
Add replacements for Pubkey::new_rand()/Hash::new_rand() (bp #12987 ) ( #13076 )
...
* Add pubkey_new_rand(), mark Pubkey::new_rand() deprecated
(cherry picked from commit 0e68ed6a8d
)
* Add hash_new_rand(), mark Hash::new_rand() as deprecated
(cherry picked from commit 76f11c7dae
)
* Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand`
(cherry picked from commit 7bc073defe
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
# runtime/benches/accounts.rs
# runtime/src/accounts.rs
* Run `codemod --extensions rs Hash::new_rand solana_sdk:#️⃣ :new_rand`
(cherry picked from commit 17c391121a
)
* Remove unused pubkey::Pubkey imports
(cherry picked from commit 959880db60
)
# Conflicts:
# runtime/src/accounts_index.rs
* Resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-22 05:08:01 +00:00
e0ae54fd7e
Add cargo-build-bpf (bp #13040 ) ( #13075 )
...
* Add cargo-build-bpf
(cherry picked from commit 07a853d6cc
)
* Remove do.sh
(cherry picked from commit 61be155413
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-22 03:09:52 +00:00
60297951ec
CLI: Print address ephemeral keypair seed phrase to stderr on deploy failure (bp #13046 ) ( #13055 )
...
* CLI: Print address ephemeral keypair seed phrase to stderr on deploy failure
(cherry picked from commit 2905ccc7ec
)
# Conflicts:
# cli/Cargo.toml
* Fix conflicts
Co-authored-by: Trent Nelson <trent@solana.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-10-21 15:29:56 -06:00
e0f9f72a2c
RPC: Don't send base64 TXs to old clusters ( #13072 )
...
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-21 20:25:36 +00:00
5236acf4b0
Add ledger-tool dead-slots and improve purge a lot ( #13065 ) ( #13071 )
...
* Add ledger-tool dead-slots and improve purge a lot
* Reduce batch size...
* Add --dead-slots-only and fixed purge ordering
(cherry picked from commit 0776fa05c7
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-21 18:57:22 +00:00
5dd61b5db2
Port various rent fixes to runtime feature ( #12842 ) ( #13068 )
...
* Port various rent fixes to runtime feature
* Fix CI
* Use more consistent naming...
(cherry picked from commit 608b81b412
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-21 14:47:48 +00:00
8752bf0826
Skip 'Stake by Feature Set' output when showing status of a single feature ( #13052 )
...
(cherry picked from commit ad65d4785e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-21 07:14:49 +00:00
b1712e80ec
Parse stake and system instructions ( #13035 ) ( #13045 )
...
* Fix token account check
* Add helper to check num accounts
* Add parse_stake
* Add parse_system
* Fix AuthorizeNonce docs
* Remove jsonParsed unstable markers
* Clippy
(cherry picked from commit 46d0019955
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-21 04:35:05 +00:00
2fe1a4677c
Ignore more paths in increment-cargo-version.sh
...
(cherry picked from commit c1c69ecc34
)
2020-10-20 20:55:34 -07:00
f76c128f4f
Various clean-ups before assert adjustment ( #13006 ) ( #13041 )
...
* Various clean-ups before assert adjustment
* oops
(cherry picked from commit efdb560e97
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-21 02:41:20 +00:00
b143b9c3c2
Remove frozen ABI modules from solana-sdk (bp #13008 ) ( #13036 )
...
* Remove frozen ABI modules from solana-sdk
(cherry picked from commit 6858950f76
)
# Conflicts:
# Cargo.lock
# core/Cargo.toml
# frozen-abi/macro/Cargo.toml
# programs/bpf/Cargo.lock
# programs/stake/Cargo.toml
# programs/vote/Cargo.toml
# runtime/Cargo.toml
# sdk/Cargo.toml
# version/Cargo.toml
* rebase
* fix broken ci (#13039 )
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-21 02:00:45 +00:00
b4178b75e7
Add --eval flag to solana-install info
( #13038 )
...
(cherry picked from commit 6f930351d2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-21 01:12:48 +00:00
c54b751df7
Include sdk/bpf in the main release tarball
...
(cherry picked from commit f71677164f
)
2020-10-20 16:25:04 -07:00
0fde9e893f
Force unset CARGO to use correct version of cargo ( #13027 ) ( #13034 )
...
(cherry picked from commit 81d0c8ae7f
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2020-10-20 23:06:57 +00:00
d24abbdac9
Fix secp256k1 instruction indexing and add tests ( #13026 ) ( #13032 )
...
(cherry picked from commit 83c53ae4b5
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-10-20 22:25:59 +00:00
3b03985f28
Remove unsupported metrics tarball from release artifacts
...
(cherry picked from commit 62f20bc170
)
2020-10-20 13:16:35 -07:00
d05bfa08c7
improves threads' utilization in processing gossip packets ( #12962 ) ( #13023 )
...
ClusterInfo::process_packets handles incoming packets in a thread_pool:
https://github.com/solana-labs/solana/blob/87311cce7/core/src/cluster_info.rs#L2118-L2134
However, profiling runtime shows that threads are not well utilized and
a lot of the processing is done sequentially.
This commit redistributes the work done in parallel. Testing on a gce
cluster shows 20%+ improvement in processing gossip packets with much
smaller variations.
(cherry picked from commit 75d62ca095
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-20 19:59:35 +00:00
9da2ac7a44
passes through feature-set to gossip requests handling ( #12878 ) ( #12991 )
...
* passes through feature-set to down to gossip requests handling
* takes the feature-set from root_bank instead of working_bank
(cherry picked from commit 48283161c3
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-20 18:25:44 +00:00
9e95d0fb58
Add more info for --limit-ledger-size ( #13021 )
...
(cherry picked from commit de04a208c7
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-20 17:50:11 +00:00
94cad9873c
Support Debug Bank ( #13017 ) ( #13019 )
...
(cherry picked from commit c0675968b1
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-20 17:20:40 +00:00
f33171b32f
Remove errant print
2020-10-20 09:02:51 -06:00
aa6406f263
implements DataBudget using atomics ( #12856 ) ( #12990 )
...
(cherry picked from commit 05cf15a382
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-20 12:51:42 +00:00
77864a6bee
Parse bpf loader instructions ( #12998 ) ( #13005 )
...
* Add parsing for BpfLoader2 instructions
* Skip info if null
* Return account address in info map
(cherry picked from commit 942e4273ba
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-20 06:25:56 +00:00
b51715d33c
validator: Activate RPC before halting on slot ( #13002 )
...
(cherry picked from commit 3b3f7341fa
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-20 03:31:04 +00:00
7d395177d4
Add everything feature ( #12999 )
...
(cherry picked from commit c5e16383b0
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-20 01:52:21 +00:00
77ba6d6784
sdk: Add SyscallStubs to enable syscall interception when building programs for non-BPF (bp #12984 ) ( #12993 )
...
* Add SyscallStubs to enable syscall interception when building programs for non-BPF
(cherry picked from commit 9c53e1dfb2
)
* Remove program_stubs!()
(cherry picked from commit 6d5889bdb5
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-19 22:28:44 +00:00
4bf0a54ed7
Revert "CLI: Put deploy
ephemeral keypair behind a flag ( #12942 )" ( #12982 )
...
This reverts commit 8cac6835c0
.
2020-10-19 17:41:10 +00:00
8a526f2f53
Follow up to persistent tower with tests and API cleaning ( #12350 ) ( #12972 )
...
* Follow up to persistent tower
* Ignore for now...
* Hard-code validator identities for easy reasoning
* Add a test for opt. conf violation without tower
* Fix compile with rust < 1.47
* Remove unused method
* More move of assert tweak to the asser pr
* Add comments
* Clean up
* Clean the test addressing various review comments
* Clean up a bit
(cherry picked from commit 54517ea454
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-19 08:47:58 +00:00