lnd.xprv/lnwallet
Olaoluwa Osuntokun 2c8914e7bc
lnwallet: ensure that each backend uses a distinct seed in integration tests
In this commit, we add an additional degree of isolation to the set of
integration tests. A bug was recently fixed to ensure that the wallet
always starts rescans from _after_ it's birthday. In the past it would
miss some funds that were deposited _right_ before the birthday of the
wallet. Fixing this bug exposed a test flake wherein the btcd node would
itself rescan back and collect some of the funds that were last sent to
the bitcoind node.

In order to fix this, we now ensure that each backend will use a unique
HD seed such that the tests are still deterministic for each backend and
role.
2018-09-04 18:52:30 -07:00
..
btcwallet multi: update to latest fee estimation interface 2018-08-09 17:29:52 -07:00
channel_test.go multi: update to latest fee estimation interface 2018-08-09 17:29:52 -07:00
channel.go lnwallet/channel: add FwdMinHtlc(), returning MinHTLC from localChanCfg 2018-08-23 07:50:17 +02:00
config.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
errors.go lnwallet/errors: create concrete errors for settle/fail 2018-08-21 00:30:27 -07:00
fee_estimator_test.go lnwallet: switch fee estimation to return sat/kw fee rates 2018-08-09 17:29:48 -07:00
fee_estimator.go lnwallet: fix logging message for fee floor 2018-08-23 19:38:13 -07:00
interface_test.go lnwallet: ensure that each backend uses a distinct seed in integration tests 2018-09-04 18:52:30 -07:00
interface.go multi: update to latest fee estimation interface 2018-08-09 17:29:52 -07:00
log.go multi: switch over import paths from roasbeef/* to btcsuite/* 2018-07-13 17:05:39 -07:00
parameters.go multi: switch over import paths from roasbeef/* to btcsuite/* 2018-07-13 17:05:39 -07:00
README.md multi: fix typos in comments 2018-04-17 19:03:27 -07:00
reservation.go lnwallet + funding: move funding tx publish to fundingmgr 2018-07-31 14:53:21 +02:00
script_utils_test.go lnwallet: update GetUtxo to accept the pkScript to comply with new gcs filter 2018-07-31 21:28:56 -07:00
script_utils.go lnwallet: publicy export WitnessScriptHash and GenMultiSigScript 2018-07-31 21:28:50 -07:00
signdescriptor_test.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
signdescriptor.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
sigpool.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
size_test.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
size.go lnwallet/size: correct commit to-local and 2nd stage script sizes 2018-07-24 22:53:13 -07:00
test_utils.go multi: update to latest fee estimation interface 2018-08-09 17:29:52 -07:00
transactions_test.go multi: sort import paths with gofmt 2018-08-02 18:20:49 -07:00
txout_test.go multi: switch over import paths from roasbeef/* to btcsuite/* 2018-07-13 17:05:39 -07:00
txout.go multi: switch over import paths from roasbeef/* to btcsuite/* 2018-07-13 17:05:39 -07:00
wallet.go fundingmanager+lnwallet: allow specifying number of min confs for coin selection 2018-08-16 20:19:30 -07:00
witnessgen.go multi: switch over import paths from roasbeef/* to btcsuite/* 2018-07-13 17:05:39 -07:00

lnwallet

Build Status MIT licensed GoDoc

The lnwallet package implements an abstracted wallet controller that is able to drive channel funding workflows, a number of script utilities, witness generation functions for the various Lightning scripts, revocation key derivation, and the commitment update state machine.

The package is used within lnd as the core wallet of the daemon. The wallet itself is composed of several distinct interfaces that decouple the implementation of things like signing and blockchain access. This separation allows new WalletController implementations to be easily dropped into lnd without disrupting the code base. A series of integration tests at the interface level are also in place to ensure conformance of the implementation with the interface.

Installation and Updating

$ go get -u github.com/lightningnetwork/lnd/lnwallet