f7091811d4
Allow buffered packets be consumed if bank is active, regardless leader schedule
2022-02-03 16:56:27 -06:00
15ef1827bf
push live packets straight to buffer, leader only process packets from buffer
2022-02-03 16:56:27 -06:00
85fef67213
Refactor Rent::due() with RentDue enum ( #22346 ) ( #22921 )
...
(cherry picked from commit d90d5ee9b6
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-03 22:15:54 +00:00
90a70d9b5b
Use lazy_rent_collection directly ( #22410 ) ( #22920 )
...
(cherry picked from commit 9bc2592da1
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-03 22:07:28 +00:00
643442e830
Reject close of active vote accounts (backport #22651 ) ( #22896 )
...
* Reject close of active vote accounts (#22651 )
* 10461 Reject close of vote accounts unless it earned no credits in the previous epoch. This is checked by comparing current epoch (from clock sysvar) with the most recent epoch with credits in vote state.
(cherry picked from commit 75563f6c7b
)
# Conflicts:
# programs/vote/src/vote_processor.rs
# sdk/src/feature_set.rs
* Resolve merge conflicts
Co-authored-by: Will Hickey <csu_hickey@yahoo.com >
Co-authored-by: Will Hickey <will.hickey@solana.com >
2022-02-03 19:59:07 +00:00
69e207ca58
rpc: use minimal mode by default (backport #22734 ) ( #22879 )
...
* rpc: use minimal mode by default
(cherry picked from commit eac4a6df68
)
# Conflicts:
# local-cluster/tests/local_cluster.rs
* test-validator-bin: reinstate full rpc method set
Co-authored-by: Trent Nelson <trent@solana.com >
2022-02-03 08:25:49 +00:00
fb8db79e63
adds reverse lookup index to cluster-nodes ( #22892 ) ( #22894 )
...
retransmit has to exclude slot leader from set of nodes for each shred;
which currently requires a linear scan:
https://github.com/solana-labs/solana/blob/e3b137066/core/src/cluster_nodes.rs#L238-L242
This commit adds a reverse lookup index to avoid linear scan.
(cherry picked from commit dccbddad80
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-02-02 21:15:51 +00:00
237347847b
caches WeightedShuffle struct in ClusterNodes ( #22877 ) ( #22889 )
...
Instead of reconstructing WeightedShuffle struct for each shred
broadcast or retransmit, we can use the same struct with minimal
mutations.
(cherry picked from commit e3b137066d
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-02-02 16:54:57 +00:00
4706790c20
docs-ci: prebuild cli bin with output to appease TravisCI hang check ( #22884 )
...
(cherry picked from commit 2fda90e414
)
Co-authored-by: Trent Nelson <trent@solana.com >
2022-02-02 09:00:48 +00:00
04281734e5
Cleanup serde snapshot common.rs ( #22854 ) ( #22863 )
...
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-02 00:35:50 +00:00
a98ca9037d
More serde snapshot cleanup (backport #22449 ) ( #22872 )
...
* More serde snapshot cleanup (#22449 )
(cherry picked from commit 2756abce39
)
# Conflicts:
# runtime/src/serde_snapshot.rs
# runtime/src/serde_snapshot/newer.rs
* fixup
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-01 22:25:04 +00:00
12e40a40f5
Cleanup serde snapshot's "future" to "newer" (backport #22431 ) ( #22870 )
...
* Refactor serde snapshot's "future" to "newer" (#22431 )
(cherry picked from commit 9c3144e286
)
# Conflicts:
# runtime/src/serde_snapshot.rs
* fixup conflicts
* fixup remove unused use
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-01 19:03:02 +00:00
c715bc93cf
removes Rng field from WeightedShuffle struct ( #22850 ) ( #22868 )
...
(cherry picked from commit 45e09664b8
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-02-01 17:33:52 +00:00
3aa3cd8852
Clean up before credits_auto_rewind ( #22839 ) ( #22866 )
...
* Clean up before credits_auto_rewind
* Use `=` intead of `|=` for mutable bool
(cherry picked from commit 545c97f903
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2022-02-01 15:22:33 +00:00
f83cb74509
rpc-sts: dedupe before initial send ( #22856 )
...
(cherry picked from commit 9f1f7aff2b
)
Co-authored-by: Trent Nelson <trent@solana.com >
2022-02-01 01:54:54 +00:00
6c47a98945
Small punctuation fix ( #22838 ) ( #22849 )
...
(cherry picked from commit 29bf1e2529
)
Co-authored-by: Justin Kat <601027+Jkat@users.noreply.github.com >
2022-01-31 18:48:16 +00:00
4dfbb4347c
includes zero weighted entries in WeightedShuffle ( #22829 ) ( #22847 )
...
Current WeightedShuffle implementation excludes zero weighted entries
from the shuffle:
https://github.com/solana-labs/solana/blob/13e631dcf/gossip/src/weighted_shuffle.rs#L29-L30
Though mathematically this might make more sense, for our use-cases
(turbine specifically), this results in less efficient code:
https://github.com/solana-labs/solana/blob/13e631dcf/core/src/cluster_nodes.rs#L409-L430
This commit changes the implementation so that zero weighted indices are
also included in the shuffle but appear only at the end after non-zero
weighted indices.
(cherry picked from commit 604ca9316c
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-31 18:16:40 +00:00
28fc733894
add 'ticks-per-slot' to 'solana-test-validator' ( #22701 )
...
* add 'ticks-per-slot' to 'solana-test-validator'
* add input parser validator for "ticks-per-slot" argument
* fix fmt
(cherry picked from commit 0562426661
)
2022-01-28 20:36:35 -08:00
93b44d8a4c
Add new_from_parent() timings ( #22744 ) ( #22806 )
...
(cherry picked from commit 94a5aee484
)
Co-authored-by: carllin <carl@solana.com >
2022-01-28 03:10:53 +00:00
2804204f80
Adds TEST_DUPLICATE_PRIVILEGE_ESCALATION_SIGNER and TEST_DUPLICATE_PRIVILEGE_ESCALATION_WRITABLE. ( #22790 )
2022-01-28 00:52:09 +01:00
4d891043d1
Update syscall base costs
2022-01-27 13:36:16 -08:00
74498650bc
Always contact release.solana.com over https ( #22795 )
...
(cherry picked from commit bd86459a94
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-01-27 21:30:37 +00:00
af3b307734
solana-test-validator now supports the --rpc-pubsub-enable-vote-subscription
flag
...
(cherry picked from commit 75658e2a96
)
2022-01-27 11:19:26 -08:00
2368e09d89
Add vote account address to vote subscription
...
(cherry picked from commit 331b953551
)
# Conflicts:
# core/src/cluster_info_vote_listener.rs
# rpc/src/rpc_pubsub.rs
# rpc/src/rpc_subscriptions.rs
2022-01-27 11:19:26 -08:00
6fca541847
Restrict the Mergify copy command to core contributors ( #22792 )
...
(cherry picked from commit c0638439be
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-01-27 17:10:07 +00:00
15e9cedc0d
test_ed25519 fails if we randomly select index 1 ( #22780 )
...
(cherry picked from commit c1b543c74d
)
Co-authored-by: Sean Young <sean@mess.org >
2022-01-27 12:50:01 +00:00
d68a40396c
Improve poh recorder metrics ( #22730 ) ( #22764 )
...
* Improve poh recorder metrics
* Add metric for poh service send record
* feedback
* clean up
(cherry picked from commit 115b488807
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-27 08:56:41 +00:00
b0e0410003
Set the correct root in block commitment cache initialization ( #22750 ) ( #22757 )
...
* Set the correct root in block commitment cache initialization
* clean up test
* bump
(cherry picked from commit d9c259a231
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-27 03:44:59 +00:00
d1174f677e
Perf: Reduce write locks on blockhash queue ( #22729 ) ( #22751 )
...
* Perf: Reduce write locks on blockhash queue
* Add comment about thread safety
* Add comment about write starvation
(cherry picked from commit 071e97053f
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-26 10:03:50 +00:00
cf88542254
Update vote-signing.md to remove references to anachronistic behavior ( #22742 )
...
(cherry picked from commit 8b1cde83c1
)
Co-authored-by: Bryan Ischo <bryan@ischo.com >
2022-01-25 23:53:46 +00:00
99c55dbec3
Export BanksClientError ( #22715 ) ( #22732 )
...
(cherry picked from commit f366e0f890
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2022-01-25 19:04:45 +00:00
bc412d51d6
Fix stable-bpf job by referencing Signature
directly ( #22721 )
2022-01-25 02:41:36 +00:00
87c3e71bb8
spl-associated-token-account: Add feature for new program ( #22648 ) ( #22719 )
...
* spl-associated-token-account: Add feature for new program
* Address feedback
(cherry picked from commit fc21af4e6e
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2022-01-24 19:20:30 -07:00
d0cf5bb721
Bump thread_local ( #22711 ) ( #22714 )
...
(cherry picked from commit 1c10677f82
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2022-01-24 12:10:10 -07:00
fb54991901
Fix typos ( #22700 )
...
Fix typos
(cherry picked from commit fd0f5e4d12
)
Co-authored-by: tanliwei <tanliwei@users.noreply.github.com >
2022-01-24 03:23:40 +00:00
9995a54be7
fix: flag was incorrect in doc ( #22698 )
...
(cherry picked from commit 714a344937
)
Co-authored-by: Arash <arash@backbone.link >
2022-01-23 21:24:58 +00:00
d9a5f714e1
Refactor: Rename variables and helper method to PohRecorder
( #22676 ) ( #22688 )
...
* Refactor: Rename leader_first_tick_height field
* Refactor: add `PohRecorder::slot_for_tick_height` helper
* Refactor: Add type for poh leader status
(cherry picked from commit 1240217a73
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-23 15:34:44 +08:00
620a80b581
sigverify -- dedupe bloom filter too slow followups
2022-01-21 23:59:41 -07:00
b354dae249
Perf: Only check executors cache for executable bpf program ids (backport #22624 ) ( #22629 )
...
* Perf: Only check executors cache for executable bpf program ids (#22624 )
* Only check executors cache for executable bpf program ids
* switch to native loader check
* clean up tests
* fix tests
* clippy
(cherry picked from commit 7d34a7acac
)
# Conflicts:
# runtime/src/bank.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-22 14:08:15 +08:00
af7ed83285
Document transaction module (backport #22440 ) ( #22664 )
...
* Document transaction module (#22440 )
* Document transaction module
* example_mocks is only for feature = full
(cherry picked from commit 8dd62854fa
)
# Conflicts:
# sdk/src/transaction/mod.rs
* Fix conflicts
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-01-21 22:58:44 -07:00
8bc4cc90d2
Bump version to 1.9.6
2022-01-21 20:15:43 -07:00
39a4cc95dc
v1.9: Impl get_/set_return_data syscalls for ProgramTest ( #22652 )
...
* Remove &mut self from set_return_data
* Impl get_/set_return_data for program-test SyscallStubs
* Add return_data program-test
v1.9.5
2022-01-21 18:03:27 -07:00
187ed6a387
Remove unused fields from Bank (backport #22491 ) ( #22630 )
...
* Remove unused fields from Bank (#22491 )
(cherry picked from commit 9977396d8f
)
# Conflicts:
# runtime/src/serde_snapshot/future.rs
* fixup the backport
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-22 00:13:32 +00:00
91bc44931f
Add hidden cli option to allow validator reports replayed transaction cost metrics (backport #22369 ) ( #22519 )
...
* Add hidden cli option to allow validator reports replayed transaction cost metrics (#22369 )
* add hidden cli option to allow validator reports replayed transaction cost detail metrics
* Update validator/src/main.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
* - rebase master, using unbounded instead of channel; dowgrade to datapoint_trace
* removed cli arg, prefer log at trace
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit a724fa2347
)
# Conflicts:
# core/src/tvu.rs
* fix conflict
Co-authored-by: Tao Zhu <82401714+taozhu-chicago@users.noreply.github.com >
Co-authored-by: Tao Zhu <tao@solana.com >
2022-01-21 15:05:41 -07:00
35ca3182ba
Add estimated and actual block cost units metrics (backport #22326 ) ( #22517 )
...
* Add estimated and actual block cost units metrics (#22326 )
* - report cost details for transactions selected to be packed into block;
- report estimated execution units packed into block, and actual units and time after execution
* revert reporting per-transaction details
* rollup transaction cost details (eg signature cost, wirte lock, data cost and execution costs) into block stats
* change naming from units to cu, use struct to replace tuple
(cherry picked from commit 1309a9cea0
)
# Conflicts:
# core/src/banking_stage.rs
# core/src/qos_service.rs
* fix conflicts
Co-authored-by: Tao Zhu <82401714+taozhu-chicago@users.noreply.github.com >
Co-authored-by: Tao Zhu <tao@solana.com >
2022-01-21 15:05:19 -07:00
24345d8e63
Update introduction.md ( #22623 ) ( #22625 )
...
A few fixes for grammatical and spelling issues.
(cherry picked from commit 373f200ab8
)
Co-authored-by: filip <44206832+filipkujawa@users.noreply.github.com >
2022-01-21 13:31:47 -07:00
bf45f5b88e
Faster dedup v1.9 ( #22638 )
...
Faster dedup port of #22607
2022-01-21 11:21:28 -08:00
2ddb5b27c1
Refactor: move instructions sysvar serialization out of Message ( #22544 ) ( #22595 )
...
(cherry picked from commit 7ba57e7a7c
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-21 13:45:47 +08:00
7f10fd6a21
Refactor: move compute budget runtime logic into solana-program-runtime (backport #22543 ) ( #22545 )
...
* Refactor: move compute budget runtime logic into solana-program-runtime (#22543 )
(cherry picked from commit cc76a73c49
)
# Conflicts:
# programs/bpf/tests/programs.rs
# sdk/src/compute_budget.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-21 13:45:01 +08:00
a0a881594a
Speed up packet dedup and fix benches ( #22592 ) ( #22613 )
...
* Speed up packet dedup and fix benches
* fix tests
* allow int arithmetic in bench
(cherry picked from commit a2d251ce1e
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-20 22:51:58 +00:00