This website requires JavaScript.
1418d672f9
htlcswitch: notify the ChainArbitrator of fresh signals upon link creation
Olaoluwa Osuntokun
2018-01-16 20:13:42 -08:00
f2642a70db
htlcswitch: once we discover a pre-image, add it to the witness cache
Olaoluwa Osuntokun
2018-01-16 20:13:16 -08:00
9cb3657314
htlcswitch: add new ProcessContractResolution method
Olaoluwa Osuntokun
2018-01-16 20:11:01 -08:00
8807d1d752
fundingmgr: add new function closure to send new channels to the ChainArbitrator
Olaoluwa Osuntokun
2018-01-16 20:05:07 -08:00
3c66d94f87
rpc: route all channel force close requests through the ChainArbitrator
Olaoluwa Osuntokun
2018-01-16 20:03:28 -08:00
884f3459e7
lnd: add new preimageBeacon struct
Olaoluwa Osuntokun
2018-01-16 20:02:25 -08:00
850ff1d970
channeldb: add new WitnessCache structure
Olaoluwa Osuntokun
2018-01-16 19:58:58 -08:00
94504a9d41
breacharbiter: notify the ChainArbitrator of fresh signals for a channel on startup
Olaoluwa Osuntokun
2018-01-16 19:57:04 -08:00
367231320b
breacharbiter: no longer watch for pending close, ChannelArbitrator will
Olaoluwa Osuntokun
2018-01-16 19:56:37 -08:00
31aa7265b7
contractcourt: add new ChainArbitrator struct as central coordinator of package
Olaoluwa Osuntokun
2018-01-16 19:52:22 -08:00
09b6bee8d4
contractcourt: add complete ContractResolver implementations
Olaoluwa Osuntokun
2018-01-16 19:44:45 -08:00
701eb9d4f4
contractcourt: add new briefcase.go file to house persistent arbitrator state
Olaoluwa Osuntokun
2018-01-16 19:38:35 -08:00
b4fc34a93a
channeldb: add ShortChanID to close channel summary
Olaoluwa Osuntokun
2018-01-16 19:37:53 -08:00
5d7119fe9c
channeldb: expose methods to serialize HTLC's on-disk
Olaoluwa Osuntokun
2018-01-16 19:37:41 -08:00
d64ffcb6c8
contractcourt: add new ChannelArbitrator struct
Olaoluwa Osuntokun
2018-01-16 19:37:09 -08:00
71009438b6
contractcourt: create new package, add logger
Olaoluwa Osuntokun
2018-01-16 19:25:45 -08:00
eba6ba0760
routing: properly prune edges that return a FailPermanentChannelFailure
Olaoluwa Osuntokun
2018-01-16 18:54:41 -08:00
b396d438bb
lnwallet: add new TestChannelUnilateralCloseHtlcResolution test case
Olaoluwa Osuntokun
2018-01-16 18:51:06 -08:00
f9d5656d17
lnwallet: update unit tests to be aware of new channel API changes
Olaoluwa Osuntokun
2018-01-16 18:45:54 -08:00
d35709b38e
lnwallet: extend TestForceClose to close with both incoming+outgoing HTLCs
Olaoluwa Osuntokun
2018-01-16 18:45:06 -08:00
1d7a1ac0ee
lnwallet: update channel state machine tests to use distinct keys
Olaoluwa Osuntokun
2018-01-16 18:38:49 -08:00
b5496c52a2
lnwallet: newHtlcResolution now returns both incoming and outgoing HTLC resolutions
Olaoluwa Osuntokun
2018-01-16 18:36:31 -08:00
d98026f579
lnwallet: modify OutgoingHtlcResolution to also account for remote force closes
Olaoluwa Osuntokun
2018-01-16 18:26:11 -08:00
bcfe7192d7
lnwallet: add new IncomingHtlcResolution for resolving incoming HTLC's on-chain
Olaoluwa Osuntokun
2018-01-16 18:23:41 -08:00
ecf6d758a2
lnwallet: add distinct CommitOutputResolution for resolving commit outputs on-chain
Olaoluwa Osuntokun
2018-01-16 18:17:18 -08:00
42cd2fa5be
lnwallet: add new ActiveHtlcs to channel state machine
Olaoluwa Osuntokun
2018-01-16 18:10:58 -08:00
5f6c15cfa4
lnwallet: RevokeCurrentCommitment now returns the set of active HTLC's
Olaoluwa Osuntokun
2018-01-16 18:09:32 -08:00
75d2f09d4c
lnwallet: add a PreimageCache instead of a FeeEstimator as LightningChannel dep
Olaoluwa Osuntokun
2018-01-16 18:08:20 -08:00
b1503adfad
lnwallet: add new PreimageCache interface
Olaoluwa Osuntokun
2018-01-16 18:04:07 -08:00
a9d451e46d
lnwallet: add AcceptedHtlcTimeoutWitnessSize to size.go
Olaoluwa Osuntokun
2018-01-16 18:03:40 -08:00
774ec5b528
lnwallet: rename OfferedHtlcWitnessSize to OfferedHtlcSuccessWitnessSize
Olaoluwa Osuntokun
2018-01-16 18:03:08 -08:00
65619b11aa
lnwallet: modify TxWeightEstimator methods to allow chaining
Olaoluwa Osuntokun
2018-01-16 18:02:46 -08:00
ff872b798c
lnwallet: update WitnessType names to be more descriptive
Olaoluwa Osuntokun
2018-01-16 17:59:43 -08:00
3fa0cde631
lnwallet: export senderHtlcSpendRedeem and make rename HtlcSpendSuccess to HtlcSecondLevelSpend
Olaoluwa Osuntokun
2018-01-16 17:57:03 -08:00
0becaddcd5
lnwallet: Move mocks to separate file and augment mockSigner.
Jim Posen
2017-09-25 21:05:24 -07:00
86133e559b
config: add peer, rpc, and rest listener options
Matt Drollette
2017-12-17 11:28:38 -06:00
8cce2ad630
Merge pull request #573 from wilmerpaulino/parse-data-fields
Johan T. Halseth
2018-01-19 18:40:48 +01:00
8807fb804b
invoice: add unit tests for each parsed tagged field
Wilmer Paulino
2018-01-09 01:14:31 -05:00
07ac278771
invoice: properly parse the field data length
Wilmer Paulino
2018-01-09 07:08:21 -05:00
fa2cc57ca6
invoice: sanity check routing info field
Wilmer Paulino
2018-01-09 01:04:58 -05:00
db7154a401
invoice: sanity check empty fallback addr field
Wilmer Paulino
2018-01-09 01:01:24 -05:00
00d530bd91
invoice: remove duplicate code when parsing the timestamp
Wilmer Paulino
2018-01-09 00:59:06 -05:00
6f5d673679
invoice: refactor parsing tagged fields
Wilmer Paulino
2018-01-09 00:46:29 -05:00
cb7699068b
Merge pull request #591 from AdamISZ/master
Johan T. Halseth
2018-01-19 14:47:22 +01:00
88f5c9ca9c
Merge branch 'master' into master
Johan T. Halseth
2018-01-19 14:04:52 +01:00
e4e6766746
Doc fix: typo in lnd/bitcoind arguments
Deelight-fr
2018-01-18 23:51:35 +01:00
5126e43135
rpcserver: flip inbound bool for display, fix internally later
Conner Fromknecht
2018-01-18 14:10:35 -08:00
92ac81b3b0
lnd+server: Allow configurable Node Alias and Color
Benjamin Congdon
2017-12-15 17:06:20 -06:00
a40ee8fe8a
config: Add settings for Alias and Color
Benjamin Congdon
2017-12-15 17:03:38 -06:00
ecff8f2a07
lnwire: Trim zero-bytes from NodeAlias String representation
Benjamin Congdon
2017-12-15 17:02:04 -06:00
f1f1c8a257
rpc: Remove SetAlias and add Alias to GetInfo Response
Benjamin Congdon
2017-12-15 16:57:34 -06:00
a8728ccb5b
docs: add example of Java gRPC client
Maarten Tutak
2017-12-13 18:46:26 +01:00
d512642c02
Travis: fix sudo required and apt-get update command
romanornr
2018-01-17 17:07:31 +01:00
7b6f4d34b1
docker: fix stray quote in start-lnd.sh
Olaoluwa Osuntokun
2018-01-16 17:19:33 -08:00
ebd97b83f3
discovery: ensure we only send node announcements that have active channels
Olaoluwa Osuntokun
2018-01-16 17:18:15 -08:00
3da0e2011b
docker, docs, sample-lnd.conf: update examples for new command-line options
Alex
2018-01-12 22:34:46 -07:00
1305a4fedf
build: update travis to install bitcoind for running tests
Alex
2018-01-12 11:47:48 -07:00
db55569bac
chainntfns: stop neutrino service before closing DB in interface_test.go
Alex
2018-01-10 17:19:43 -07:00
9a02884d0b
main/lntest: factor out node config options, add options for bitcoind
Alex
2017-12-21 22:23:24 -07:00
187f59556a
multi: add bitcoind drivers and tests
Alex
2017-11-09 17:30:20 -07:00
244ae4b571
Merge pull request #605 from timo-schmid/master
Johan T. Halseth
2018-01-15 11:33:11 +01:00
9ab2ab0424
rpc: remove SetAlias from the rpc docs
Timo Schmid
2018-01-13 21:27:06 +01:00
db06a8a7ee
Merge pull request #506 from halseth/dynamic-channel-params
Olaoluwa Osuntokun
2018-01-12 15:38:12 -08:00
d030773c8d
lnd test: add testUpdateChannelPolicy
Johan T. Halseth
2017-12-19 17:10:00 +01:00
f4f024aff2
lnd_test: extract graph topology subscription into own method
Johan T. Halseth
2017-12-22 13:49:49 +01:00
483abbee5b
discovery: make sure ChannelUpdates always have incremented timestamp
Johan T. Halseth
2017-12-20 14:02:04 +01:00
43d7dd3d99
lnd: make NumRequiredConfs and RequiredRemoteDelay scale with chanAmt
Johan T. Halseth
2017-12-17 16:13:23 +01:00
3edc1a7456
fundingmanager: define min and maxRemoteDelay
Johan T. Halseth
2017-12-17 16:08:21 +01:00
53b0ee3765
lntest/node: use --bitcoin.defaultchanconfs=1 and --bitcoin.defaultremotedelay=4
Johan T. Halseth
2017-12-19 17:07:35 +01:00
4ee3bff771
lnd: use cfg.Bitcoin.DefaultNumChanConfs
Johan T. Halseth
2017-12-20 16:17:51 +01:00
0815bd4eb0
config: make DefaultNumChanConfs part of chainConfig
Johan T. Halseth
2017-12-17 16:07:32 +01:00
633878d497
funding test: return static num conf instead of default value
Johan T. Halseth
2017-12-19 17:29:45 +01:00
10bd46ac72
chainregistry: use forwarding policy rules from config
Johan T. Halseth
2017-12-17 14:33:49 +01:00
f1c6d40db8
lnd_test: use defaultBitcoinTimeLockDelta instead of defaultBitcoinForwardingPolicy.TimeLockDelta
Johan T. Halseth
2017-12-20 17:31:46 +01:00
1f6268cdde
rpcserver: use cfg.Bitcoin.TimeLockDelta as default CLTVExpiry for invoices
Johan T. Halseth
2017-12-17 14:33:09 +01:00
f4feb1e697
config: add forwarding policy rules to config
Johan T. Halseth
2017-12-17 14:31:38 +01:00
79a6efe33f
fundingmanager: use minHtlc from initFundingMsg
Johan T. Halseth
2017-12-17 00:01:38 +01:00
7805a53c34
pilot: pass minHtlc = 1 satoshi to OpenChannel
Johan T. Halseth
2017-12-17 00:01:08 +01:00
f3dff2ae97
rpcserver: add min_htlc_msat parameter to OpenChannel and OpenChannelSync
Johan T. Halseth
2017-12-17 00:00:11 +01:00
84e5adcdd0
server: add min_htlc_msat parameter to OpenChannel method
Johan T. Halseth
2017-12-17 00:00:37 +01:00
59b331c04d
lncli: add min_htlc_msat to openchannel
Johan T. Halseth
2017-12-16 23:57:31 +01:00
e27f524309
lnrpc: add min_htlc_msat to OpenChanneRequest
Johan T. Halseth
2017-12-16 23:58:08 +01:00
c4139b9f89
rpcserver: rename UpdateFees -> UpdateChannelPolicy
Johan T. Halseth
2017-12-16 23:14:58 +01:00
26421031e2
lncli: rename updatefees to updatechanpolicy
Johan T. Halseth
2017-12-16 23:13:17 +01:00
551326586c
lnrpc: rename UpdateFee -> UpdateChannelPolicy
Johan T. Halseth
2017-12-15 22:11:23 +01:00
8370fa2cde
discovery/gossiper: apply TimeLockDelta to edge when processing policy update
Johan T. Halseth
2017-12-15 21:56:11 +01:00
0b8e7ff836
routing: embed FeeSchema in ChannelPolicy
Johan T. Halseth
2017-12-15 21:54:07 +01:00
9bdb483757
htlcswitch/link: make MinHTLC non-changable
Johan T. Halseth
2017-12-15 21:50:21 +01:00
a3f2bdebbf
Merge pull request #577 from halseth/test-log-testcase-start
Olaoluwa Osuntokun
2018-01-12 12:05:14 -08:00
9992612d96
Merge pull request #581 from cfromknecht/handle-nil-spend-report
Olaoluwa Osuntokun
2018-01-11 22:47:53 -08:00
cd7f40422f
Fix trivial comment errors in noise.go
Adam Gibson
2018-01-11 16:49:38 +02:00
6f408004e2
lnrpc+rpc: remove SetAlias method
Olaoluwa Osuntokun
2018-01-10 15:16:38 -08:00
d70e4bb0a0
routing: account for case where final destination send TemporaryChannelFailure
Olaoluwa Osuntokun
2018-01-10 15:15:49 -08:00
40ccc3f417
docs/grpc: added instructions for writing gRPC clients in Ruby
kingvest
2018-01-10 19:21:03 +01:00
c17b695128
lnwallet/btcwallet/blockchain: properly handle nil spend report
Conner Fromknecht
2018-01-09 18:14:25 -08:00
beeb75cb5f
Merge pull request #572 from halseth/fix-flake-announcements
Olaoluwa Osuntokun
2018-01-09 15:55:46 -08:00
e5b74174b5
pilot: avoid cancelling the tx subscription twice, use proper wg value
Olaoluwa Osuntokun
2018-01-09 12:18:57 -08:00
0571918d3d
routing: process only single ChannelEdgePolicy per channelID concurrently
Johan T. Halseth
2018-01-08 16:55:26 +01:00
3f0a525331
discovery test: update gossiper test to account for timestamp deduping
Johan T. Halseth
2018-01-08 18:16:36 +01:00
ea95f37277
discovery: keep newest messages when deduping in gossiper
Johan T. Halseth
2018-01-07 20:10:02 +01:00