Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.18: rpc-sts: add config options for stake-weighted qos (backport of #197) #341

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Mar 20, 2024

Problem

no simple way to configure an rpc node to send transactions to staked peer(s), as per stake-weighted qos

Summary of Changes

  • adds --rpc-send-transaction-tpu-peer HOST:PORT to specify a specific tpu peer to send transctions to, instead of the current leader. this argument may be passed multiple times.
  • adds --rpc-send-transaction-also-leader to continue sending to the current leader even though tpu peers have been specified with --rpc-send-transaction-tpu-peer HOST:PORT

This is an automatic backport of pull request #197 done by [Mergify](https://mergify.com).

@mergify mergify bot added the conflicts label Mar 20, 2024
Copy link
Author

mergify bot commented Mar 20, 2024

Cherry-pick of f41fb84 has failed:

On branch mergify/bp/v1.18/pr-197
Your branch is up to date with 'origin/v1.18'.

You are currently cherry-picking commit f41fb84e15.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   send-transaction-service/src/send_transaction_service.rs
	both modified:   validator/src/cli.rs
	both modified:   validator/src/main.rs

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

* rpc-sts: plumb options for swqos config

* rpc-sts: send to specific tpu peers when configured

(cherry picked from commit f41fb84)

# Conflicts:
#	send-transaction-service/src/send_transaction_service.rs
#	validator/src/cli.rs
#	validator/src/main.rs
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 62.50000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 81.6%. Comparing base (5562d8d) to head (f400fa7).
Report is 2 commits behind head on v1.18.

Additional details and impacted files
@@            Coverage Diff            @@
##            v1.18     #341     +/-   ##
=========================================
- Coverage    81.6%    81.6%   -0.1%     
=========================================
  Files         827      827             
  Lines      224535   224549     +14     
=========================================
+ Hits       183310   183311      +1     
- Misses      41225    41238     +13     

@t-nelson t-nelson merged commit f629e32 into v1.18 Mar 21, 2024
36 checks passed
@t-nelson t-nelson deleted the mergify/bp/v1.18/pr-197 branch March 21, 2024 17:20
anwayde pushed a commit to firedancer-io/agave that referenced this pull request Jul 23, 2024
…anza-xyz#197) (anza-xyz#341)

rpc-sts: add config options for stake-weighted qos (anza-xyz#197)

* rpc-sts: plumb options for swqos config

* rpc-sts: send to specific tpu peers when configured

(cherry picked from commit f41fb84)

# Conflicts:
#	send-transaction-service/src/send_transaction_service.rs
#	validator/src/cli.rs
#	validator/src/main.rs

Co-authored-by: Trent Nelson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants