my-cloud / ruthenium

Golang implementation of the Ruthenium protocol
The Unlicense
11 stars 1 forks source link

Client timeout is too short #122

Closed JeremyPansier closed 2 years ago

JeremyPansier commented 2 years ago

To Reproduce Steps to reproduce the behavior:

  1. Run a node with a large blockchain

Expected behavior Requesting the node blocks succeeds.

Actual behavior Requesting the node blocks fails.

💡Tip: Add client settings:

    client, err = p2p.NewClient(tcp)
    settings := p2p.NewClientSettings()
    settings.SetConnTimeout(10*time.Second)
    client.SetSettings(settings)