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

Peer backup #8490

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Commits on May 12, 2024

  1. peer: Change createTestPeer name.

    In this function `createTestPeer` is changed to
    `createTestPeerWithChannel`. This is useful in coming commits where we
    decouple the process of creating test peer from the function.
    
    Signed-off-by: Ononiwu Maureen <maureen.ononiwu@outlook.com>
    Ononiwu Maureen authored and Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    52d310c View commit details
    Browse the repository at this point in the history
  2. peer: createTestPeerWithChannel returns a struct

    The `createTestPeerWithChannel` function is made to return this newly
    created struct and error.
    
    This is useful because upcoming commits would require us returning more
    objects from the function.
    
    Signed-off-by: Ononiwu Maureen <maureen.ononiwu@outlook.com>
    Ononiwu Maureen authored and Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    6d06ced View commit details
    Browse the repository at this point in the history
  3. peer: Create mockswitch, publTx, notifier in ..

    test_utils
    
    Signed-off-by: Ononiwu Maureen <maureen.ononiwu@outlook.com>
    Ononiwu Maureen authored and Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    be3f077 View commit details
    Browse the repository at this point in the history
  4. peer: Add new function to create test peer.

    Signed-off-by: Ononiwu Maureen <maureen.ononiwu@outlook.com>
    Ononiwu Maureen authored and Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    637d6ab View commit details
    Browse the repository at this point in the history
  5. peer: Add startPeer test function

    Signed-off-by: Ononiwu Maureen <maureen.ononiwu@outlook.com>
    Ononiwu Maureen authored and Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    4f70129 View commit details
    Browse the repository at this point in the history
  6. lnwire: Add feature bits for peer backup storage.

    This commit introduces new feature bits to enable
    backing up data with peers.
    
    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    3322038 View commit details
    Browse the repository at this point in the history
  7. lnwire: Add peer backup storage message.

    This commit adds the peer backup storage message
    as well as functions to encode and decode them.
    
    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    71027b8 View commit details
    Browse the repository at this point in the history
  8. multi: Add optional peer storage feature config

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    5a8be6b View commit details
    Browse the repository at this point in the history
  9. peer: Add storage layer to handle PeerStorage

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    abbb190 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. lnd: Include a Kvdb impl for peer.PeerDataStore

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    8b0bd5b View commit details
    Browse the repository at this point in the history
  2. lncfg+lnd: Add PeerStorage kvdb to DB backend

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    ccecf4b View commit details
    Browse the repository at this point in the history
  3. lnd: Include kvdbStorage in server and peer config

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    63c5f2d View commit details
    Browse the repository at this point in the history
  4. peer: Create hasActiveChannels function.

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    562d40a View commit details
    Browse the repository at this point in the history
  5. peer: Add IsDisconnected method to brontide.

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    46d3a2a View commit details
    Browse the repository at this point in the history
  6. peer: Make brontide know peer backup storage msgs

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    b9d38e5 View commit details
    Browse the repository at this point in the history
  7. peer: Add handler for peerStorageRetrieval

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    0b66b3d View commit details
    Browse the repository at this point in the history
  8. peer: Add handler for PeerStorage message

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    9dedf1a View commit details
    Browse the repository at this point in the history
  9. peer: Add PeerStorageWriter to brontide.

    In this commit, a new goroutine is added to manage the delay in
    persisting backupData shared by peers.
    
    This change serves as a safety check to ensure that a flood of
    PeerStorage messages from peers does not degrade our performance by
    causing multiple database transactions within a short period.
    
    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    12d4c95 View commit details
    Browse the repository at this point in the history
  10. peer: Send peers their data on connection.

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    93af069 View commit details
    Browse the repository at this point in the history
  11. docs: Added release note

    Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
    Chinwendu20 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    59f829b View commit details
    Browse the repository at this point in the history