Skip to content

Conversation

@stefan-mysten
Copy link
Contributor

@stefan-mysten stefan-mysten commented Nov 21, 2025

Description

This PR fixes an issue flagged in #24041. Unfortunately, Windows does not allow clients to connect to 0.0.0.0, which was the case here, and led to an error when the faucet had to make an RPC client to node.

Test plan

Existing tests. Manually tested on Windows!


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • Indexing Framework:

@stefan-mysten stefan-mysten self-assigned this Nov 21, 2025
@stefan-mysten stefan-mysten temporarily deployed to sui-typescript-aws-kms-test-env November 21, 2025 01:41 — with GitHub Actions Inactive
@vercel
Copy link

vercel bot commented Nov 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sui-docs Ready Ready Preview Comment Nov 25, 2025 9:33pm
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
multisig-toolkit Ignored Ignored Preview Nov 25, 2025 9:33pm
sui-kiosk Ignored Ignored Preview Nov 25, 2025 9:33pm

Copy link

@Scetrov Scetrov left a comment

Choose a reason for hiding this comment

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

Feel free to @ me if you want me to to test this locally once you have settled the review.

.connect()
.await
.context("Failed to connect to gRPC endpoint")?;
let channel = endpoint.connect_lazy();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to connect lazily, as otherwise the grpc server might not be ready and the whole system errors due to being unable to connect to server.

@stefan-mysten
Copy link
Contributor Author

stefan-mysten commented Nov 25, 2025

Feel free to @ me if you want me to to test this locally once you have settled the review.

@Scetrov I think the fix is now ready. I am also planning to add some tests.

On my Windows machine, I built from source and then ran
sui start --force-regenesis --with-faucet --with-graphql --> with-graphql requires a PostgresDB.

@stefan-mysten
Copy link
Contributor Author

@amnn I touched the indexing side in three places and moved from connect to connect_lazy. I figure tests should catch any issues if these changes were to mess up with the grpc connections.

Copy link
Contributor

@amnn amnn left a comment

Choose a reason for hiding this comment

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

Yep, tests should have you covered! Couple more clean up questions, but this looks good to go, thanks @stefan-mysten

@stefan-mysten stefan-mysten temporarily deployed to sui-typescript-aws-kms-test-env November 25, 2025 21:31 — with GitHub Actions Inactive
@stefan-mysten stefan-mysten merged commit 63f36a8 into MystenLabs:main Nov 26, 2025
68 of 69 checks passed
@stefan-mysten stefan-mysten deleted the fix-windows-faucet-wallet-rpc branch November 26, 2025 16:09
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.

5 participants