Skip to content

Increase network read timeout when sending transactions#636

Open
NicolasFlamel1 wants to merge 1 commit into
mimblewimble:stagingfrom
NicolasFlamel1:timeout-grin
Open

Increase network read timeout when sending transactions#636
NicolasFlamel1 wants to merge 1 commit into
mimblewimble:stagingfrom
NicolasFlamel1:timeout-grin

Conversation

@NicolasFlamel1

Copy link
Copy Markdown

These changes increase the network read timeout from 20 seconds to 5 minutes when sending transactions to avoid timing out too early when exchanging a slate with a device that takes longer than 20 seconds to generate a reply.

This will improve interoperability with wallets that support the Grin dependent Ledger app since that app takes approximately 90 seconds to generate a bulletproof on current Ledger hardware wallets.

@yeastplume

Copy link
Copy Markdown
Member

Thank you for looking into this. I agree that time timeout can be too short, particularly over the famously slow TOR network. However, I'm not sure the answer is to set it as high as 5 minutes by default in case of genuine timeouts.

Don't have a definitive answer here. Do you think it would be worth making this a configurable parameter?

@ardocrat

ardocrat commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Reasonable value is 60sec, with ability to configure at grin-wallet.toml.

@aglkm

aglkm commented Jun 24, 2026

Copy link
Copy Markdown

Grin-wallet is trying to send over Tor by default and increasing timeout value would lead to bad UX, because a slatepack address(tor) is not online in most cases, so that would be annoying to wait a long time.

Instead, a configurable parameter could be a good alternative to satisfy Ledger app users, who can be guided to increase the timeout.

Increasing it to 60s looks way high and that doesn't cover the issue reported by Nicolas.

@ardocrat

ardocrat commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Grin-wallet is trying to send over Tor by default and increasing timeout value would lead to bad UX, because a slatepack address(tor) is not online in most cases, so that would be annoying to wait a long time.

This PR is not about Tor sending, its about node-wallet communication.

60s is current timeout for Tor connection, whats can be normal, cause it can take some time to boostrap, otherwise we can decided Tor is not available. (Implemented at this PR #750)

Timeout for Tor connections also can be added to grin-wallet.toml config.

@ardocrat ardocrat changed the base branch from master to staging June 25, 2026 09:22
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.

4 participants