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

channeldb+htlcswitch: don't use fastsha256 in tests #4300

Merged
merged 1 commit into from
May 22, 2020

Conversation

guggero
Copy link
Collaborator

@guggero guggero commented May 20, 2020

The btcsuite/fastsha256 registers itself in the crypto package of
golang as a replacement for sha256. This causes problems in TLS1.3
connections that require the hash implementations to be serializable
and results in the tls: internal error: failed to clone hash error.
By removing all uses of the library we fix that error which appears to
occur for REST connections from modern browsers that support TLS1.3.

The btcsuite/fastsha256 registers itself in the crypto package of
golang as a replacement for sha256. This causes problems in TLS1.3
connections that require the hash implementations to be serializable
and results in the "tls: internal error: failed to clone hash" error.
By removing all uses of the library we fix that error.
@cfromknecht cfromknecht added this to the 0.11.0 milestone May 20, 2020
Copy link
Contributor

@cfromknecht cfromknecht left a comment

Choose a reason for hiding this comment

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

Didn't realize this would cause issues for rest, nice find! LGTM 👏

@githorray
Copy link
Contributor

Tested. No more frustrating retries. Been dealing with this frustrating issue for a long time. Great work.

Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM 💎

@Roasbeef Roasbeef merged commit c2e7ca9 into lightningnetwork:master May 22, 2020
@guggero guggero deleted the no-fastsha branch May 22, 2020 08:51
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