Commit Graph

5548 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
d8e6085c17 multi: update to go 1.11 gofmt 2018-10-07 14:37:38 +09:00
Olaoluwa Osuntokun
233246714d build+docs: bump to golang 1.11 2018-10-07 11:28:49 +09:00
Olaoluwa Osuntokun
e9809c715e Merge pull request #2001 from Roasbeef/new-neutrino-parallel-sync
build: update neutrino version to new version with parallel block+fil…
2018-10-07 09:49:03 +09:00
Conner Fromknecht
c2d9cb11d3 docs/MAKEFILE: add log params to unit test targets 2018-10-05 13:04:45 +09:00
Conner Fromknecht
1881ccdaf2 Makefile: merge build+install tags with DEV/PROD_TAGS, trim whitespace 2018-10-05 13:04:45 +09:00
Conner Fromknecht
57ec03564e make/testing_flags: add LOG_TAGS, set using log envvar
The default is nolog, which prevents the unit tests in
the main pkg from being active, since otherwise they
would print as if they were being run like a dev build
of the daemon. Users can pass in custom tags when running
the Makefile by passing arguments using the log variable,
e.g. log="xxxxx xxx"".
2018-10-05 13:04:45 +09:00
Conner Fromknecht
2e489fcf24 rpcserver: replace DebugBuild cmp w/ IsDevBuild in AbandonChannel 2018-10-05 13:04:45 +09:00
Conner Fromknecht
5706c12d69 config_production: remove in favor of build.Deployment 2018-10-05 13:04:45 +09:00
Conner Fromknecht
a98cdfd897 config_debug: remove in favor of build.Deployment 2018-10-05 13:04:45 +09:00
Conner Fromknecht
ecc5d267e3 Makefile: use git describe for better commit versions 2018-10-05 13:04:45 +09:00
Conner Fromknecht
0903fe3183 main+lnd: display build.Version() for commit hash 2018-10-05 13:04:45 +09:00
Conner Fromknecht
97fd56cf47 cmd/lncli: display build.Version() for commit hash 2018-10-05 13:04:45 +09:00
Conner Fromknecht
1e64070a1d build/version: move version.go to build pkg 2018-10-05 13:04:45 +09:00
Conner Fromknecht
bbceec8bea lnd: log shutdown before closing rotator 2018-10-05 13:04:45 +09:00
Conner Fromknecht
bfcda6e205 log: initialize subloggers w/ build.LogWriter
and build.NewSubLogger
2018-10-05 13:04:45 +09:00
Conner Fromknecht
59b459674d multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
Conner Fromknecht
9654a1c619 build/log: add log types + NewSubLogger 2018-10-05 13:04:45 +09:00
Conner Fromknecht
4ea1a40a88 build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
Conner Fromknecht
738ba45bcf build/deployment: add prod+dev targets 2018-10-05 13:04:45 +09:00
Conner Fromknecht
10b35a8f20 main: remove disable log in testing + clean up imports 2018-10-05 13:04:45 +09:00
Conner Fromknecht
bab52421fa make/testing_flags: make DEV_TAGS+PROD_TAGS, switch debug to dev 2018-10-05 13:04:45 +09:00
Conner Fromknecht
ece3051237 htlcswitch/hodl: switch from debug tag to dev 2018-10-05 13:04:45 +09:00
Conner Fromknecht
3403794e81 chainntnfs: switch debug tag to dev
This avoids collisions with the logging level tags
2018-10-05 12:59:34 +09:00
bluetegu
2f3e2f9308 Add --include_unannounced flag to describegraph lncli command.
Private and public channels which weren't announced yet are returned only
if the flag is set.
Note: this changes the default output of describegraph which used to
return all channels known to node.
2018-10-04 14:54:49 -04:00
bluetegu
d942bb58c3 Add support for IncludeUnannounced property of ChannelGraphRequest in
DescribeGraph rpc server method.
2018-10-04 14:54:35 -04:00
bluetegu
bd75a56855 Add unit test for db Wipe. 2018-10-04 13:35:42 -04:00
bluetegu
755f7ff372 Add IncludeUnannounced property to ChannelGraphRequest rpc. 2018-10-04 13:35:30 -04:00
Olaoluwa Osuntokun
a24a2eb5a4 build: update neutrino version to new version with parallel block+filterheader sync 2018-10-02 20:20:02 -07:00
Olaoluwa Osuntokun
a3edcf9cd5 Merge pull request #1951 from cfromknecht/reorder-commit-hints-and-notify
chainntnfs: Reorder commit hints and notify
2018-10-02 17:43:11 -07:00
Conner Fromknecht
91b0e9cae5 chainntnfs/txconfnotifier: commit conf hints before notifying 2018-10-02 01:09:26 -07:00
Conner Fromknecht
7dceac92d2 chainntnfs/neutrino: commit spend hints before notifying 2018-10-02 01:09:26 -07:00
Conner Fromknecht
e498a837a3 chainntnfs/btcd: commit spend hints before notifying 2018-10-02 01:09:26 -07:00
Conner Fromknecht
fb7b12a7db chainntnfs/bitcoind: commit spend hints before notifying 2018-10-01 16:47:01 -07:00
Olaoluwa Osuntokun
7fe095c541 Merge pull request #1970 from Roasbeef/more-abandon-channel-details
rpc: populate additional information in AbandonChannel close summary
2018-09-30 20:41:46 -07:00
Olaoluwa Osuntokun
79ed4e8b60 Merge pull request #1733 from cfromknecht/persist-network-watcher
lntest/node: persist network subscription state across restarts
2018-09-28 17:16:37 -07:00
Olaoluwa Osuntokun
13802b4218 Merge pull request #1963 from wpaulino/create-chan-buckets-once
channeldb: ensure channel buckets are only created once
2018-09-28 17:06:39 -07:00
Olaoluwa Osuntokun
4b1334ad49 rpc: populate additional information in AbandonChannel close summary
In this commit, we extend the AbandonChannel RPC method to store as much
information as possible within the CloseSummary. Most importantly, we
store the current and next (if available) revocation of the remote party
along with the channel config for the local party. With this
information, we have enough data to be able to generate a custom signer
for a new commitment state, or to prove that the channel was indeed
ours if needed.
2018-09-28 16:43:17 -07:00
Olaoluwa Osuntokun
c508365bcc Merge pull request #1905 from halseth/fundinglocked-htlc-mismatch
Defer channel restoration until after channel active check.
2018-09-28 16:34:18 -07:00
Olaoluwa Osuntokun
e44e588a36 Merge pull request #1987 from wpaulino/remove-newwitnessaddress-rpc
rpc: remove NewWitnessAddress RPC
2018-09-28 15:43:56 -07:00
Johan T. Halseth
22d0e5b43e channeldb/invoice test: add more tests for edge cases 2018-09-28 13:00:57 +02:00
Johan T. Halseth
0c51e31d1c channeldb/invoices+test: don't return invoices on reversed query at index 1
Previously a call to QueryInvoices with reversed=true and index_offset=1
would make the cursor point to the first available invoice (num 1) that
would be returned as part of the response. This is inconsistent with the
othre indexes, so we instead just return an empty list in this case.

A test case for this situation is also added.
2018-09-28 13:00:57 +02:00
Wilmer Paulino
bdcc847a44 rpc: remove NewWitnessAddress RPC
In this commit, we remove the unnecessary NewWitnessAddress RPC. We do
this as, at the moment, we only expose the wallet to generate witness
addresses. Now that the RPC has been removed, its REST endpoint has been
assigned to the NewAddress RPC, which should be the de facto way of
having the wallet generate any type of supported address.

Fixes #1986.
2018-09-28 02:52:09 -07:00
Johan T. Halseth
54a608d09d htlcswitch+discovery mock: adhere to new lnpeer interface 2018-09-28 09:05:18 +02:00
Johan T. Halseth
a433e70575 fundingmanager test: satisfy new interfaces 2018-09-28 09:05:01 +02:00
Johan T. Halseth
b712b861f8 peer: make AddNewChannel take OpenChannel
This commit makes the AddNewChannel expect a OpenChannel instead of a
LightningChannel struct. This moves the responsibility for starting the
LightningChannel from the fundingmanager to the peer, and we can defer
the channel restoration until we know that the channel is not already
active.
2018-09-28 08:59:27 +02:00
Johan T. Halseth
addb4aed89 funding+server: make FindChannel return OpenChannel instead of LightningChannel 2018-09-28 08:59:27 +02:00
Johan T. Halseth
240318befe peer: return error on newChanReq
Previously the errors weren't returned back to the sender of the new
channel, making it impossible to tell whether it suceeded or not.
2018-09-28 08:59:26 +02:00
Olaoluwa Osuntokun
b341dea373 Merge pull request #1108 from sangaman/sever-server
multi: fix sever/server typos
2018-09-27 22:23:45 -07:00
Dave Kerr
1977d45de5 multi: fix function references in comments and clarify grammar 2018-09-27 20:59:59 -07:00
CirroStorm
f594a57c94 lnwallet: remove need for lnwallet to have access to the private key
This paves the way for lnd to work with hardware wallets, in which case it will not have access to the private key.
2018-09-27 20:58:46 -07:00