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

Pull secp256k1 contexts from per-peer to per-PeerManager #1472

Merged

Commits on May 11, 2022

  1. Pull secp256k1 contexts from per-peer to per-PeerManager

    Instead of including a `Secp256k1` context per
    `PeerChannelEncryptor`, which is relatively expensive memory-wise
    and nontrivial CPU-wise to construct, we should keep one for all
    peers and simply reuse it.
    
    This is relatively trivial so we do so in this commit.
    
    Since its trivial to do so, we also take this opportunity to
    randomize the new PeerManager context.
    TheBlueMatt committed May 11, 2022
    Configuration menu
    Copy the full SHA
    e6aaf7c View commit details
    Browse the repository at this point in the history