-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing on simnet requires bchd and bchctl from gcash to be in PATH. client/asset/bch: Add bchSpvWallet type, which implements btc.BTCWallet around gcash/btcwallet. Most methods simply perform type translaction from the gcash types to the btcsuite types. Wallet creation is handled in-package. Wallet initalization is handled via a constructor passed to the (now-exported) btc.OpenSPVWallet. client/asset/btc: ConfigOpts that are common to clone assets can be generated with the new CommonConfigOpts, SPVConfigOpts, and RPCConfigOpts functions. OpenSPVWallet has been exported and modified to accept a constructor for a BTCWallet. Some spvWallet methods are now exported, including startWallet -> Start and signTransaction -> SignTx. dex: New ErrorCloser type handles a common pattern where itermediary instances of whatever need to be shut down if some sequence of actions doesn't complete successfully. Used in bch and btc. dex/testing/btc: Harness updated to allow running a bchd/bchwallet pair. These are needed for the compact filters.
- Loading branch information
Showing
16 changed files
with
1,804 additions
and
386 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
Oops, something went wrong.