Commit Graph

12627 Commits

Author SHA1 Message Date
Oliver Gugger
167a1f2b79
btcwallet: add method for deriving key from BIP32 path 2022-01-06 13:24:31 +01:00
Oliver Gugger
ca5d5023e3
btcwallet: move PSBT related methods to own file
This is a pure code move commit to extract the FundPsbt and FinalizePsbt
methods into their own file.
2022-01-06 13:24:31 +01:00
Oliver Gugger
8c77829c46
lnwallet+lntest+mod: bump btcwallet to export ScriptForOutput 2022-01-06 13:24:30 +01:00
Oliver Gugger
1902ad724e
signrpc: remove incomplete sentence and TODO
We use SignOutputRaw which expects a witness script being set, even for
P2WKH. There is a special case in SignOutputRaw for the case where the
script is a p2wkh script, then the input script is reconstructed
correctly for the sighash.
2022-01-06 13:24:30 +01:00
Oliver Gugger
9da8333a6e
multi: fix formatting 2022-01-06 13:24:30 +01:00
Oliver Gugger
61bffa70f9
Merge pull request #6052 from yyforyongyu/itest-2-refactor-1
itest: prepare itest for major refactor
2022-01-06 10:26:20 +01:00
Oliver Gugger
10d876ae98
itest: fix RPC middleware itest 2022-01-06 15:01:02 +08:00
Oliver Gugger
39c6236054
Merge pull request #6124 from C-Otto/force-close-logging
contractcourt: use "info" log level for messages leading to force-closes
2022-01-05 09:52:23 +01:00
yyforyongyu
587273174e
itest: start using harness miner in harness net
This commit replaces the old miner with the new HarnessMiner and cleans
harness_node.go by moving methods into the test_common.go.
2022-01-05 13:10:06 +08:00
yyforyongyu
337aa6670b
itest: introduce harness miner
This commit adds a new component, harness miner, to the itest. This
newly added component is responsible for checking the mempool and blocks
for the itest.
2022-01-05 13:10:06 +08:00
yyforyongyu
61d6f5da11
itest: refactor initClientWhenReady to clean up init node 2022-01-05 13:10:05 +08:00
yyforyongyu
75da5cabc8
itest: add method waitTillServerState in harness node 2022-01-05 13:10:05 +08:00
yyforyongyu
f5f1289dab
itest: use node.rpc namespace inside harness net
This commit adds a new struct RPCClients to better handle rpc clients.
A private field, rpc, is added to HarnessNode to prevent direct access
to its clients. Inside RPCClients, all clients are exported in case a
test case need access to a specific client.
2022-01-05 13:10:05 +08:00
yyforyongyu
f8cf7c8775
itest: shorten functions inside harness node
This commit refactors the long function start() into smaller pieces and
moves commonly used functions into test_common.go.
2022-01-05 13:10:05 +08:00
Olaoluwa Osuntokun
ebc1547abc
Merge pull request #6054 from yyforyongyu/itest-fix-gossiper
discovery: resend premature messages when block height reached
2022-01-04 17:52:18 -08:00
yyforyongyu
c619023007
docs: add release note for premature msg fix 2022-01-05 04:28:10 +08:00
eugene
ead414c689
discovery: use source instead of peer for accurate rejectCache 2022-01-05 04:27:33 +08:00
yyforyongyu
17938b08ac
discovery: resend premature messages when new blocks arrive
This commit adds a method to resend premature when new blocks arrive.
Previously when a message has specified a block+delta in the future, we
would ignore the message and never process it again, causing an open
channel never being broadcast under fast blocks generation. This commit
fixes it by saving the future messages and resending them once the
required block height is reached.
2022-01-05 04:27:33 +08:00
yyforyongyu
8d0cae5e18
discovery: sync blocks in a dedicated goroutine
This commit moves syncing blocks into a dedicated goroutine to avoid the
race condition where several go channels are ready and the block height
update is pushed after a network message is processed.
2022-01-05 04:27:33 +08:00
yyforyongyu
dd74486b59
routing+discovery: uniform error codes in routing 2022-01-05 04:27:33 +08:00
yyforyongyu
c15c8a1f0b
discovery: transit all inactive syncers when needed 2022-01-05 04:27:32 +08:00
yyforyongyu
2250cb752b
discovery: shorten mutex locking closure 2022-01-05 04:27:32 +08:00
yyforyongyu
1c3cabee7f
funding: add explicit log to avoid confusion 2022-01-05 04:27:32 +08:00
yyforyongyu
6f4a9d8661
funding: add String method for channelOpeningState
The newly added String method can be helpful in reading logs.
2022-01-05 04:27:32 +08:00
yyforyongyu
eb5e32f221
chainntnfs: add more verbose logs for txnotifier 2022-01-05 04:27:32 +08:00
yyforyongyu
c1175dcabe
discovery: add verbose network messages related logs 2022-01-05 04:27:32 +08:00
Oliver Gugger
604aefe650
Merge pull request #6113 from kaganovych/improvement/mobile_and_android_docs
Edited mobile documentation for mobile developers [skip ci]
2022-01-04 19:48:45 +01:00
Vsevolod Kaganovych
e4c2fa6d0c mobile: improved documentation for building Android [skip ci] 2022-01-04 20:44:02 +02:00
Oliver Gugger
774c541453
Merge pull request #6116 from bottlepay/pg-max-conns
itest: increase pg database connection limit
2022-01-04 10:00:24 +01:00
Joost Jager
2009aec59d
itest: increase pg database connection limit 2022-01-04 08:29:22 +01:00
Oliver Gugger
71ecc8a299
Merge pull request #5964 from bottlepay/leaseoutput
lncli: add leaseoutput command
2022-01-03 18:41:26 +01:00
Joost Jager
f99b472bbb
lncli: add lockid parameter to releaseoutput 2022-01-03 18:21:12 +01:00
Joost Jager
0b2388bd4b
lncli: add leaseoutput command 2022-01-03 18:21:10 +01:00
Oliver Gugger
9d6701be2b
Merge pull request #6082 from yyforyongyu/6000-peer-conn
peer: fix competing connections to the same peer
2022-01-03 13:28:45 +01:00
Oliver Gugger
c2c96d907c
Merge pull request #6053 from yyforyongyu/itest-fix-invoice-registry
invoice: fix inactive client not cleaned from invoice registry
2022-01-03 13:21:01 +01:00
Oliver Gugger
2aad76aea9
Merge pull request #6105 from liviu-ln/master
make: don't optimize debug binaries
2022-01-03 12:35:24 +01:00
Carsten Otto
118ef31792 docs: add release notes [skip ci] 2021-12-31 16:49:32 +01:00
Carsten Otto
0d36734167 contractcourt: use "info" log level for messages leading to force-closes [skip ci] 2021-12-31 16:44:33 +01:00
Carsten Otto
0fc6bd8e12 contractcourt: fix typos [skip ci] 2021-12-31 16:44:27 +01:00
yyforyongyu
c9aa034ec9
docs: add release note for peer conn fix 2021-12-28 19:31:52 +08:00
yyforyongyu
85b626e6a7
server: fix peers not ignored during bootstrapping
This commit fixes the issue where duplicate peers are used both in
making persistent connections and bootstrap connections. When we init
bootstrapping, we need to ignore peers that have connections already
made so far plus peers which we are attempting to make connections with,
hence the persistent peers.
2021-12-23 15:14:37 +08:00
yyforyongyu
46050fc631
multi: enhance logging for debugging peer connection 2021-12-23 15:14:37 +08:00
Oliver Gugger
5d9b59ac5a
Merge pull request #6108 from bottlepay/pg-fix
kvdb/postgres: fix context cancellation
2021-12-22 15:44:51 +01:00
Joost Jager
0cae55c162
kvdb/postgres: fix context cancellation 2021-12-22 14:54:43 +01:00
Joost Jager
62a2f3c809
kvdb/postgres: fix tests 2021-12-22 14:54:41 +01:00
Liviu
715d2f08fd docs: update release notes 2021-12-21 22:08:24 -08:00
Liviu
abada24899 make: don't optimize debug binaries
Disable compiler optimizations and function inlining on a debug build to
improve debugging experience.
2021-12-20 11:47:18 -08:00
Oliver Gugger
088970e7e8
Merge pull request #6096 from Kixunil/clarify-systemd-log-message
(trivial) signal: clarify the log message about systemd
2021-12-20 13:44:02 +01:00
Oliver Gugger
f7e40d82f6
Merge pull request #6085 from schjonhaug/improvements-to-mobile-instructions
docs: Improvements to mobile instructions [skip ci]
2021-12-20 12:46:35 +01:00
Andreas Schjønhaug
6dc7bda883 docs: Improvements to mobile instructions [skip ci]
Fixed PR feedback

Fixed name of xcode framwork file, and added section on dependency on Swift Protobuf in Xcode

Added link to https://api.lightning.community

Link to PR
2021-12-20 12:43:02 +01:00