-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core,btc,app: Manage SPV wallet peers
This change allows the user to see the peers the BTC SPV wallets are connected to, and add new peers. - `client/asset`: Adds a new `PeerManager` interface with three methods: `Peers`, `AddPeer` and `RemovePeer`. Wallets that implement this interface have the trait `WalletTraitPeerManager`. - `client/core`: Adds new methods that call the `PeerManager` methods. - `client/btc`: - A `SPVPeerManager` type is added which manages a key value db and a neutrino chain service. When the user adds a new peer, it is stored in the key value db, and will be automatically connected the next time the wallet is opened. - The `BTCWallet` interface now has three new functions, `Peers`, `AddPeer` and `RemovePeer`, and the BTC, BCH, and LTC SPV wallets each use a `SPVPeerManager` in order to handle these new functions.
- Loading branch information
Showing
27 changed files
with
936 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.