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

Move public IP address detection out of bash #499

Merged
merged 1 commit into from
Jun 30, 2018

Conversation

mvines
Copy link
Member

@mvines mvines commented Jun 30, 2018

Includes further refinement/churn of the setup.sh/solana-fullnode-config` CLI arguments. The options are:

Use local address (may be a private IP):

$ ./multinode-demo/setup.sh
.. or ..
$ ./multinode-demo/setup.sh -l

Use the detected public address (forced for the snap-based fullnode daemon):

./multinode-demo/setup.sh -p

@mvines mvines requested a review from garious June 30, 2018 00:58
@mvines
Copy link
Member Author

mvines commented Jun 30, 2018

@garious I think this is a little nicer for the snap setup at least. My Rust is still pretty terrible so donno what you think about bringing in that curl create dependency

Copy link
Contributor

@garious garious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

src/nat.rs Outdated
@@ -16,6 +19,31 @@ pub struct UdpSocketPair {
pub sender: UdpSocket, // Locally bound socket to send via public address
}

/// Tries to determine the public IP address of this machine, returns 0.0.0.0 on
/// failure
pub fn get_public_ip_addr() -> IpAddr {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should return a Result. There's enough things to go wrong.

@garious
Copy link
Contributor

garious commented Jun 30, 2018

Good thinking on defaulting local.

@mvines mvines force-pushed the public_ip branch 2 times, most recently from 84a1910 to 08edf46 Compare June 30, 2018 02:21
@mvines
Copy link
Member Author

mvines commented Jun 30, 2018

Gross this brings in an openssl dependency that's breaking sagan and the snap build.

@mvines mvines added the work in progress This isn't quite right yet label Jun 30, 2018
@garious
Copy link
Contributor

garious commented Jun 30, 2018

An openssl dep seems pretty unavoidable. A broken one is disappointing.

@garious
Copy link
Contributor

garious commented Jun 30, 2018

nat put a dependency on hyper. Might as well add https://docs.rs/reqwest/0.8.6/reqwest/?

@mvines mvines removed the work in progress This isn't quite right yet label Jun 30, 2018
@mvines mvines added the automerge Merge this Pull Request automatically once CI passes label Jun 30, 2018
@solana-grimes solana-grimes removed the automerge Merge this Pull Request automatically once CI passes label Jun 30, 2018
@solana-grimes
Copy link
Contributor

💔 Unable to automerge due to merge conflict

@mvines
Copy link
Member Author

mvines commented Jun 30, 2018

🚍

@mvines mvines added the automerge Merge this Pull Request automatically once CI passes label Jun 30, 2018
@solana-grimes solana-grimes merged commit 450f271 into solana-labs:master Jun 30, 2018
@mvines mvines deleted the public_ip branch July 8, 2018 03:10
mvines pushed a commit to mvines/solana that referenced this pull request Jun 15, 2020
mvines pushed a commit that referenced this pull request Jun 15, 2020
godmodegalactus pushed a commit to godmodegalactus/solana that referenced this pull request Jan 10, 2024
Backport clone derivation (416) (solana-labs#418)

backports solana-labs#430: update jito-programs (solana-labs#432)

Backport solana-labs#446 to v1.17 (solana-labs#448)

[JIT-1661] Faster Autosnapshot (solana-labs#445)

v1.17: Backport solana-labs#449 (solana-labs#451)

backports solana-labs#419: add upsert to accountoverrides (solana-labs#421)

backport 428 runtime-plugin (solana-labs#458)

[JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499)

Backport solana-labs#500 to v1.17 (solana-labs#507)

Backport solana-labs#520: add priority fees to mev claim (solana-labs#525)
godmodegalactus pushed a commit to godmodegalactus/solana that referenced this pull request Mar 22, 2024
Backport clone derivation (416) (solana-labs#418)

backports solana-labs#430: update jito-programs (solana-labs#432)

Backport solana-labs#446 to v1.17 (solana-labs#448)

[JIT-1661] Faster Autosnapshot (solana-labs#445)

v1.17: Backport solana-labs#449 (solana-labs#451)

backports solana-labs#419: add upsert to accountoverrides (solana-labs#421)

backport 428 runtime-plugin (solana-labs#458)

[JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499)

Backport solana-labs#500 to v1.17 (solana-labs#507)

Backport solana-labs#520: add priority fees to mev claim (solana-labs#525)

Faster MEV tip claiming (v1.17) (solana-labs#568)

Backport Release Fixes (solana-labs#586)
godmodegalactus pushed a commit to godmodegalactus/solana that referenced this pull request Mar 28, 2024
Backport clone derivation (416) (solana-labs#418)

backports solana-labs#430: update jito-programs (solana-labs#432)

Backport solana-labs#446 to v1.17 (solana-labs#448)

[JIT-1661] Faster Autosnapshot (solana-labs#445)

v1.17: Backport solana-labs#449 (solana-labs#451)

backports solana-labs#419: add upsert to accountoverrides (solana-labs#421)

backport 428 runtime-plugin (solana-labs#458)

[JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499)

Backport solana-labs#500 to v1.17 (solana-labs#507)

Backport solana-labs#520: add priority fees to mev claim (solana-labs#525)

Faster MEV tip claiming (v1.17) (solana-labs#568)

Backport Release Fixes (solana-labs#586)
willhickey pushed a commit that referenced this pull request Mar 29, 2024
#499)

ci: fix some issues for the release pipeline (#493)

* add TRIGGERED_BUILDKITE_TAG to the pipeline

* publish a pre-release for the release id

(cherry picked from commit b1e1799)

Co-authored-by: Yihau Chen <[email protected]>
lijunwangs pushed a commit to lijunwangs/solana that referenced this pull request Apr 7, 2024
…na-labs#493) (solana-labs#499)

ci: fix some issues for the release pipeline (solana-labs#493)

* add TRIGGERED_BUILDKITE_TAG to the pipeline

* publish a pre-release for the release id

(cherry picked from commit b1e1799)

Co-authored-by: Yihau Chen <[email protected]>
godmodegalactus pushed a commit to blockworks-foundation/solana that referenced this pull request Apr 15, 2024
Backport clone derivation (416) (solana-labs#418)

backports solana-labs#430: update jito-programs (solana-labs#432)

Backport solana-labs#446 to v1.17 (solana-labs#448)

[JIT-1661] Faster Autosnapshot (solana-labs#445)

v1.17: Backport solana-labs#449 (solana-labs#451)

backports solana-labs#419: add upsert to accountoverrides (solana-labs#421)

backport 428 runtime-plugin (solana-labs#458)

[JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499)

Backport solana-labs#500 to v1.17 (solana-labs#507)

Backport solana-labs#520: add priority fees to mev claim (solana-labs#525)

Faster MEV tip claiming (v1.17) (solana-labs#568)

Backport Release Fixes (solana-labs#586)
vovkman pushed a commit to helius-labs/solana that referenced this pull request May 11, 2024
Backport clone derivation (416) (solana-labs#418)

backports solana-labs#430: update jito-programs (solana-labs#432)

Backport solana-labs#446 to v1.17 (solana-labs#448)

[JIT-1661] Faster Autosnapshot (solana-labs#445)

v1.17: Backport solana-labs#449 (solana-labs#451)

backports solana-labs#419: add upsert to accountoverrides (solana-labs#421)

backport 428 runtime-plugin (solana-labs#458)

[JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499)

Backport solana-labs#500 to v1.17 (solana-labs#507)

Backport solana-labs#520: add priority fees to mev claim (solana-labs#525)

Faster MEV tip claiming (v1.17) (solana-labs#568)

Backport Release Fixes (solana-labs#586)

Update release URLs for jito-solana (solana-labs#589)

Backports solana-labs#595: correctly initialize account overrides (solana-labs#599)

Fix: Ensure set contact info to UDP port instead of QUIC (solana-labs#601)

Buffer bundles that exceed processing time and make the allowed processing time longer (solana-labs#609)
godmodegalactus pushed a commit to blockworks-foundation/solana that referenced this pull request May 30, 2024
Backport clone derivation (416) (solana-labs#418)

backports solana-labs#430: update jito-programs (solana-labs#432)

Backport solana-labs#446 to v1.17 (solana-labs#448)

[JIT-1661] Faster Autosnapshot (solana-labs#445)

v1.17: Backport solana-labs#449 (solana-labs#451)

backports solana-labs#419: add upsert to accountoverrides (solana-labs#421)

backport 428 runtime-plugin (solana-labs#458)

[JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499)

Backport solana-labs#500 to v1.17 (solana-labs#507)

Backport solana-labs#520: add priority fees to mev claim (solana-labs#525)

Faster MEV tip claiming (v1.17) (solana-labs#568)

Backport Release Fixes (solana-labs#586)

Update release URLs for jito-solana (solana-labs#589)

Backports solana-labs#595: correctly initialize account overrides (solana-labs#599)

Fix: Ensure set contact info to UDP port instead of QUIC (solana-labs#601)

Buffer bundles that exceed processing time and make the allowed processing time longer (solana-labs#609)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants