868e757d9d
CI: Make BPF test suite a first-class citizen (backport #18535 ) ( #18570 )
...
* CI: Extricate BPF tests from stable-perf
(cherry picked from commit 1eab0773af
)
* CI: Dump BPF assembly listings and upload as artifact
(cherry picked from commit f1996ca0f3
)
# Conflicts:
# ci/test-stable.sh
Co-authored-by: Trent Nelson <trent@solana.com >
2021-07-10 19:24:27 +00:00
92b2b8dae7
Add storage-proto build.rs and readme (backport #18353 ) ( #18561 )
...
* Add storage-proto build.rs and readme (#18353 )
* Use build.rs for storage-proto generation
* Add readme
* Single use statements
(cherry picked from commit c2e7d39154
)
# Conflicts:
# Cargo.lock
# storage-proto/build-proto/Cargo.lock
# storage-proto/build-proto/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-09 22:12:01 +00:00
a53fe7b779
Bump prost, prost-types, and tonic (backport #18537 ) ( #18557 )
...
* Bump prost, prost-types, and tonic (#18537 )
* Bump prost+tonic and accommodate generated service changes
* Unignore advisory
* Fixup .proto error list
(cherry picked from commit 761de8b1a3
)
# Conflicts:
# Cargo.lock
# storage-bigtable/Cargo.toml
# storage-proto/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-09 19:37:51 +00:00
a9d6b90e9a
Show grcov version as well ( #18549 ) ( #18550 )
...
(cherry picked from commit a5b91ef4c3
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-07-09 12:54:51 +00:00
88c5d6b10c
featurize_policy_update (backport #18492 ) ( #18501 )
...
* featurize_policy_update (#18492 )
(cherry picked from commit ccdf93e2b8
)
# Conflicts:
# runtime/benches/message_processor.rs
# runtime/src/message_processor.rs
* fix conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-07-08 22:21:37 +00:00
9891cc6a17
Remove dead solana airdrop parameters ( #18520 ) ( #18523 )
...
(cherry picked from commit f39ffa69f6
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-07-08 22:03:13 +00:00
d18a08471e
Temporarily ignore prost-types advisory (backport #18525 ) ( #18526 )
...
* Temporarily ignore prost-types audit (#18525 )
(cherry picked from commit 6188283ba6
)
* Bump tokio
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-08 14:04:06 -06:00
50393adadd
Record parent slot to reconstruct fork tree from influxdb ( #18482 ) ( #18487 )
...
(cherry picked from commit d69f469b83
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-07-08 02:53:08 +00:00
1be989c5d2
adds fallback logic if retransmit multicast fails (backport #17714 ) ( #18498 )
...
* adds fallback logic if retransmit multicast fails (#17714 )
In retransmit-stage, based on the packet.meta.seed and resulting
children/neighbors, each packet is sent to a different set of peers:
https://github.com/solana-labs/solana/blob/708bbcb00/core/src/retransmit_stage.rs#L421-L457
However, current code errors out as soon as a multicast call fails,
which will skip all the remaining packets:
https://github.com/solana-labs/solana/blob/708bbcb00/core/src/retransmit_stage.rs#L467-L470
This can exacerbate packets loss in turbine.
This commit:
* keeps iterating over retransmit packets for loop even if some
intermediate sends fail.
* adds a fallback to UdpSocket::send_to if multicast fails.
Recent discord chat:
https://discord.com/channels/428295358100013066/689412830075551748/849530845052403733
(cherry picked from commit be957f25c9
)
# Conflicts:
# core/src/cluster_info.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-07-07 22:36:32 +00:00
6bc914989b
Update verify policy (backport #18459 ) ( #18490 )
...
* Update verify policy (#18459 )
(cherry picked from commit 44289e6728
)
# Conflicts:
# runtime/src/message_processor.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-07-07 18:45:58 +00:00
9a7ea1229b
Add vote/stake checked instructions (backport #18345 ) ( #18456 )
...
* Add vote/stake checked instructions
(cherry picked from commit ee219ffa47
)
# Conflicts:
# programs/stake/src/stake_instruction.rs
# sdk/program/src/stake/instruction.rs
# sdk/src/feature_set.rs
* Fix set-lockup custodian index
(cherry picked from commit 544f62c92f
)
* Add parsing for new stake instructions; clean up confusing test args
(cherry picked from commit 9b302ac0b5
)
# Conflicts:
# transaction-status/src/parse_stake.rs
* Add parsing for new vote instructions
(cherry picked from commit 39bac256ab
)
* Add VoteInstruction::AuthorizeChecked test
(cherry picked from commit b8ca2250fd
)
* Add Stake checked tests
(cherry picked from commit 74e89a3e3e
)
# Conflicts:
# programs/stake/src/stake_instruction.rs
* Fix conflicts and accommodate old apis in backport
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-07 03:14:54 +00:00
d8a2de1fd9
Remove obsolete stake-monitor command (backport #18020 ) ( #18461 )
...
* Remove obsolete stake-monitor command
(cherry picked from commit f859a39b86
)
# Conflicts:
# Cargo.lock
# scripts/cargo-install-all.sh
# stake-monitor/Cargo.toml
# stake-monitor/src/lib.rs
* Fix conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-07 01:13:48 +00:00
6859516126
sdk: add is_interactive()
method Signer
trait
...
(cherry picked from commit 2af5ec4f57
)
2021-07-06 11:13:53 -07:00
57b69b5804
Cli: expose --with-memo
to nonce and stake commands (backport #18404 ) ( #18409 )
...
* Cli: expose `--with-memo` to nonce and stake commands (#18404 )
* Fmt memo_arg
* Add --with-memo to nonce and stake cli commands
(cherry picked from commit 1dd730d685
)
# Conflicts:
# cli/src/stake.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-05 00:34:36 +00:00
9a5a9ff633
SDK: Add test for illegal Pubkey::create_with_seed
owners ( #18401 )
...
(cherry picked from commit 216983c50e
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-07-03 01:10:39 +00:00
06b1c980d4
Bump version to v1.6.17 ( #18393 )
2021-07-02 19:40:37 +00:00
86c26f8432
Revert "Clean up build warning"
...
This reverts commit 17a173ebb5
.
(cherry picked from commit d269975784
)
v1.6.16
2021-07-01 19:09:08 -07:00
78d44ae215
More detailed voting timings in replay stage ( #18229 ) ( #18246 )
...
(cherry picked from commit 5d08bf9aa3
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-07-01 14:10:04 +00:00
31dc79a4f9
Bump version to v1.6.16
2021-06-30 22:53:51 -06:00
5c2dab8055
solana validators
output now includes average skip rate
...
(cherry picked from commit 52290dbd35
)
v1.6.15
2021-06-30 17:54:17 -07:00
0ecd7e5c90
Fixed an issue doing the set_roots repeatedly for the same set. Instead doing the per chunks. ( #18314 ) ( #18336 )
...
(cherry picked from commit a67d26a1e8
)
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2021-06-30 23:49:38 +00:00
df8cf37b89
test-validator: hold rent constant with --slots-per-epoch
( #18317 )
...
(cherry picked from commit 02b14caa5f
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-30 08:30:39 +00:00
56a4fc3dd2
Use timeout to allow RpcClient to retry initial transaction confirmation (backport #18311 ) ( #18315 )
...
* Use timeout to allow RpcClient to retry initial transaction confirmation (#18311 )
* Tidying: relocate function
* Use proper helper method for RpcClient commitment
* Add RpcClientConfig
* Add configurable confirm_transaction_initial_timeout
* Use default 5s timeout for initial tx confirmation
(cherry picked from commit 9d4428d3d8
)
* Fixup deprecated method
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-30 04:51:11 +00:00
5380623f32
tx-status: Don't assume a memo instruction succeeded ( #18287 )
...
(cherry picked from commit 7babf28ef7
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-29 03:02:03 +00:00
313e8bddd4
Cli epoch-info: generate epoch-completed time from block times ( #18258 ) ( #18284 )
...
* Generate epoch-completed time from block times
* Add annotation when block times not available
(cherry picked from commit f2b0d562b0
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-06-28 23:17:29 +00:00
7d68c44307
Don't update if already an executable ( #18252 )
...
(cherry picked from commit 2fbedd834f
)
# Conflicts:
# runtime/src/message_processor.rs
Co-authored-by: Jack May <jack@solana.com >
2021-06-27 19:21:02 +00:00
6b9a529cda
Bump borsh from 0.8.1 to 0.9.0 (backport #18230 ) ( #18237 )
...
* Bump borsh from 0.8.1 to 0.9.0 (#18230 )
(cherry picked from commit 7ed2cf30a5
)
# Conflicts:
# programs/bpf/Cargo.lock
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-25 23:10:01 +00:00
12eea11f93
Add entrypoint to run CI locally (backport #18131 ) ( #18216 )
...
* ci: use versioned cargo wrapper for crate ordering
(cherry picked from commit 554002b73c
)
* ci: nvidia persistence mode isn't a hard requirement
(cherry picked from commit f213e48067
)
* sdk: ensure `ld` can find criterion when running BPF tests
(cherry picked from commit 7ee39fcb0f
)
* ci: give localnet nodes a more time to startup
(cherry picked from commit 278a241db3
)
* ci: add downstream build wrapper
(cherry picked from commit 761e324982
)
* ci: add wrapper script for running ci locally
Linux only for now
(cherry picked from commit 0bc38153ca
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-25 05:18:15 +00:00
d2a0445fff
Update README.md ( #18191 ) ( #18194 )
...
(cherry picked from commit 3362ac06b5
)
Co-authored-by: Hao-Cher Hong <rax333j@gmail.com >
2021-06-24 15:47:05 +00:00
232ba8473d
fix build broken by 37f618f
2021-06-23 01:43:11 -06:00
a455c8a5af
ci: isolate release builds
2021-06-23 06:02:39 +00:00
07865a97ce
Add metrics for rpc send-transaction failures (backport #18156 ) ( #18163 )
...
* Add metrics for rpc send-tx failures (#18156 )
(cherry picked from commit 64cff8c5a1
)
# Conflicts:
# core/src/rpc.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-23 00:00:10 -06:00
37f618fc62
programs/config: Disallow duplicate signers
2021-06-22 23:04:24 -06:00
86ff6f82f8
chore(pubkey): remove dead code ( #18161 )
...
(cherry picked from commit 755b7c7aee
)
Co-authored-by: hrls <viktor.kharitonovich@gmail.com >
2021-06-23 03:12:30 +00:00
57baf7f79b
Add memory operation syscalls (backport #16447 ) ( #18149 )
...
* Add memory operation syscalls (#16447 )
(cherry picked from commit 2b50529265
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/rust/sysvar/tests/lib.rs
# programs/bpf/tests/programs.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-06-22 19:57:51 +00:00
e259388069
Move stake_weighted_timestamp module (backport #18114 ) ( #18119 )
...
* Move stake_weighted_timestamp module (#18114 )
* Move timestamp module into runtime
* Less public
* Remove unused enum
(cherry picked from commit 19fe1dd463
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/lib.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-22 00:28:02 +00:00
06d6e357ae
Bump version to v1.6.15 ( #18108 )
2021-06-21 14:23:43 -06:00
7759210ff3
Add logging when RpcHealthStatus::Unknown ( #18099 )
v1.6.14
2021-06-21 11:40:15 -06:00
16c42a7b30
docs: flesh out validator network requirements
2021-06-21 11:14:42 -06:00
d0f08cf25b
docs: don't suggest cloud instances for validators
2021-06-21 11:14:42 -06:00
0ed9f7144c
sdk: refactor pda generation
2021-06-21 10:16:49 -06:00
b17c2f451a
Add additional subscription metrics ( #18071 ) ( #18075 )
...
(cherry picked from commit 83a6c669a5
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-06-18 23:56:17 +00:00
4aedc086e5
fix loader instruction checker ( #18047 ) ( #18073 )
...
(cherry picked from commit d18e02ef44
)
Co-authored-by: Jack May <jack@solana.com >
2021-06-18 21:06:23 +00:00
0afb330db0
validator: expose max active pubsub subscriptions to CLI ( #18035 )
...
(cherry picked from commit 5efc48fc69
)
# Conflicts:
# core/src/rpc_pubsub_service.rs
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-18 00:35:26 +00:00
1201ef172e
Bump version to v1.6.14 ( #18050 )
2021-06-17 20:42:10 +00:00
b63a65bc21
validator: run poh speed test earlier in start up ( #18023 )
...
(cherry picked from commit 5bc6c89adc
)
Co-authored-by: Trent Nelson <trent@solana.com >
v1.6.13
2021-06-17 00:51:27 +00:00
392d2dbd8a
metrics: Don't unwrap client instantiation errors ( #18018 )
...
(cherry picked from commit 5cc073420a
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-16 22:02:43 +00:00
4733d6dfc3
v1.6: Properly handle block_height in Bigtable bincode deserialization ( #17992 )
...
* Default block_height on eof
* Add comment to prevent future errors
2021-06-16 00:55:19 +00:00
337de51088
Bump version to v1.6.13 ( #17972 )
2021-06-15 23:47:22 +09:00
24ee0b3934
Avoid full-range compactions with periodic filtered b.g. ones (backport #16697 ) ( #17956 )
...
* Avoid full-range compactions with periodic filtered b.g. ones (#16697 )
* Update rocksdb to v0.16.0
* Promote the infrequent and important log to info!
* Force background compaction by ttl without manual compaction
* Fix test
* Support no compaction mode in test_ledger_cleanup_compaction
* Fix comment
* Make compaction_interval customizable
* Avoid major compaction with periodic filtering...
* Adress lazy_static, special cfs and range check
* Clean up a bit and add comment
* Add comment
* More comments...
* Config code cleanup
* Add comment
* Use .conflicts_with()
* Nullify unneeded delete_range ops for special CFs
* Some clean ups
* Clarify the locking intention
* Ensure special CFs' consistency with PurgeType::CompactionFilter
* Fix comment
* Fix bad copy paste
* Fix various types...
* Don't use tuples
* Add a unit test for compaction_filter
* Fix typo...
* Remove flag and just use new behavior always
* Fix wrong condition negation...
* Doc. about no set_last_purged_slot in purge_slots
* Write a test and fix off-by-one bug....
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Follow up to github review suggestions
* Fix line-wrapping
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 1f97b2365f
)
# Conflicts:
# Cargo.lock
# ledger/src/blockstore_db.rs
* Fix conflicts
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
v1.6.12
2021-06-15 08:49:13 +00:00