Andras Banki-Horvath
415de2f0c7
kvdb+etcd: remove retry goroutine from the STM
...
This commit removes the retry goroutine from the STM as the retry loop
is only running when the STM transaction is encapsulated in Update/View
whereas for self-standing transactions we use a different approach.
By removing the goroutine we won't catch panics thrown that are supposed
to be catched outside of the STM.
2020-06-03 17:44:44 +02:00
Olaoluwa Osuntokun
09bb9db782
Merge pull request #4342 from wpaulino/create-chan-ann-zero-features
...
netann: decode features when creating chan ann from stored chan info
2020-06-02 20:06:53 -07:00
Olaoluwa Osuntokun
cd04dd79b6
Merge pull request #4339 from bhandras/etcd_bump
...
build: bump etcd to v3.3.22
2020-06-02 18:31:17 -07:00
Andras Banki-Horvath
1dd43f3669
test: add error to itest whitelist
2020-06-02 15:40:20 +02:00
Andras Banki-Horvath
2a591ee2f1
build: bump etcd to v3.3.22
2020-06-02 15:40:20 +02:00
Joost Jager
9f32942a90
Merge pull request #4334 from joostjager/hold-keysend-part1
...
invoices: add explicit hodl invoice flag
2020-06-02 10:59:47 +02:00
Joost Jager
d416ed59ea
multi: add explicit hodl invoice flag to invoice
...
Previously it wasn't possible to store a preimage in the invoice
database and signal that a payment should not be settled right away. The
only way to hold a payment was to insert the magic UnknownPreimage value
in the invoice database. This commit introduces a distinct flag to
signal that an invoice is a hold invoice and thereby allows the preimage
to be present in the database already.
Preparation for (key send) hodl invoices for which we already know the
preimage.
2020-06-02 07:34:23 +02:00
Wilmer Paulino
d0fe8b737b
netann: decode features when creating chan ann from stored chan info
...
This was the only field not properly set when creating a
lnwire.ChannelAnnouncement from a channeldb.ChannelEdgeInfo.
2020-06-01 17:30:23 -07:00
Olaoluwa Osuntokun
bdc0d875bc
Merge pull request #4327 from joostjager/stuck-payment-loop
...
routing: don't treat bad features as an unexpected error
2020-05-28 15:43:09 -07:00
Olaoluwa Osuntokun
c5e62ba9b3
Merge pull request #4332 from cfromknecht/dry-run-migration-logs
...
channeldb: dry run migration logs
2020-05-28 15:39:55 -07:00
Olaoluwa Osuntokun
6b3c2c1ac5
Merge pull request #4335 from joostjager/queryroutes-limit
...
rpcserver+routerrpc: remove payment limit
2020-05-28 15:39:15 -07:00
András Bánki-Horváth
703e8acb36
Merge pull request #4326 from bhandras/testclock_improvement
...
clock: add module support
2020-05-28 19:47:28 +02:00
Joost Jager
df7a05da84
rpcserver+routerrpc: remove payment limit
2020-05-28 19:34:17 +02:00
Andras Banki-Horvath
1ae27b4f44
itest: add errors to the whitelist
2020-05-28 13:32:51 +02:00
Andras Banki-Horvath
fc87e8358e
clock: add go.mod
2020-05-28 10:37:04 +02:00
Conner Fromknecht
5e09a5287a
lnd: use Infof to format errors on channeldb open
2020-05-27 22:42:46 -07:00
Conner Fromknecht
66652ec4bc
channeldb/db: lower-case ErrDryRunMigrationOk message
2020-05-27 22:42:22 -07:00
Joost Jager
24c865450a
Merge pull request #4331 from cfromknecht/stray-read-bucket
...
channeldb/invoices: correct stray kvdb.ReadBucket to RBucket
2020-05-28 07:25:58 +02:00
Conner Fromknecht
eae8e6de17
channeldb/invoices: correct stray kvdb.ReadBucket to RBucket
...
We recently renamed kvdb.ReadBucket to kvdb.RBucket in #4252 , but this
was not detected in #4285 since this new code didn't produce a
conflict.
2020-05-27 20:20:29 -07:00
Conner Fromknecht
3faf8bad3f
Merge pull request #4320 from guggero/refactor-log-writer
...
config+log: remove global RootLogWriter variable
2020-05-27 19:25:32 -07:00
Conner Fromknecht
0f3ab775c7
Merge pull request #4285 from cfromknecht/pay-addr-index
...
channeldb: index payments by payment addr, use payment hash as fallback
2020-05-27 17:36:30 -07:00
Olaoluwa Osuntokun
f5598f7305
Merge pull request #4324 from Roasbeef/lnd-v-0-10-99
...
build: bump version to lnd v0.10.99-beta
2020-05-27 15:57:19 -07:00
Olaoluwa Osuntokun
d2d8793afd
Merge pull request #4298 from cfromknecht/sub-inv-fixes
...
channeldb+invoices: minor invoice subscription fixes
2020-05-27 15:56:47 -07:00
Olaoluwa Osuntokun
eddd9049dc
Merge pull request #4252 from cfromknecht/rename-kvdb-read
...
multi: rename kvdb Read* types to R*
2020-05-27 15:52:49 -07:00
Joost Jager
3ef68baf4a
routing: don't treat bad features as an unexpected error
...
Previous behavior led to the payment loop being abandoned immediately,
resulting in a payment stuck in state in_flight.
2020-05-27 12:15:53 +02:00
Oliver Gugger
75f916b026
log+config: remove global RootLogWriter variable
2020-05-27 09:43:59 +02:00
Oliver Gugger
70772ab99b
config+lnd+rpcserver: use log writer from cfg
2020-05-27 09:43:59 +02:00
Conner Fromknecht
152d153e7f
itest: increase mempool timeout
...
Neutrino can get slow towards the end of the itests.
2020-05-26 19:49:42 -07:00
Conner Fromknecht
5c4ab4b7cf
lntest: update error whitelist
2020-05-26 19:49:42 -07:00
Conner Fromknecht
cbf71b5452
channeldb+invoices: use payment addr as primary index
2020-05-26 18:55:27 -07:00
Conner Fromknecht
3522f09a08
channeldb+invoices: track invoices by InvoiceRef
2020-05-26 18:55:27 -07:00
Conner Fromknecht
2799202fd9
invoices/invoiceregistry: rename updateCtx to ctx
2020-05-26 18:55:27 -07:00
Conner Fromknecht
e80e21d1a8
channeldb/migration: add generic CreateTLB migration
...
This commit creates a generic migration for creating top-level buckets.
2020-05-26 18:55:27 -07:00
Conner Fromknecht
24cce7a6ec
channeldb: consolidate top-level bucket create/wipe
2020-05-26 18:55:27 -07:00
Conner Fromknecht
d343575104
channeldb/migtest: log migration failure instead of failing
...
This line was incorrectly moved when the migtest package was created for
migration 12. This PR introduces a negative test for CreateTLB which
surfaced this.
2020-05-26 18:55:22 -07:00
Conner Fromknecht
32b04b7ac3
Merge pull request #4228 from carlaKC/txdetails-labeltxrpc
...
walletrpc: add LabelTransaction endpoint to retrospectively label txns
2020-05-26 18:37:27 -07:00
Olaoluwa Osuntokun
d9044e5692
build: bump version to lnd v0.10.99-beta
...
In this commit, we bump the version to a `.99` minor version to reflect
the fact that master is ahead of _both_ `v0.10.0-beta`, and the upcoming
`v0.10.1-beta`.
2020-05-26 18:34:42 -07:00
Conner Fromknecht
d0f3f6166d
lntest/itest: add link error to whitelist
2020-05-26 18:21:08 -07:00
Conner Fromknecht
ef9068319b
multi: rename ReadCursor to RCursor
2020-05-26 18:21:08 -07:00
Conner Fromknecht
455ddfebdb
multi: rename: ReadBucket to RBucket
2020-05-26 18:21:08 -07:00
Conner Fromknecht
d0d2ca403d
multi: rename ReadTx to RTx
2020-05-26 18:20:37 -07:00
Olaoluwa Osuntokun
03e6a18212
Merge pull request #4317 from bhandras/testclock_improvement
...
clock: optionally wait until tickers are registered in TestClock
2020-05-26 18:02:25 -07:00
Olaoluwa Osuntokun
797d0f9368
Merge pull request #4316 from gcomte/master
...
lncli: Fix typos in closechannel help dialog
2020-05-26 18:01:12 -07:00
Conner Fromknecht
6a02fa1107
invoices/invoiceregistry: properly synchronize backlog
...
This commit moves the db calls for retrieving add and settle backlogs
outide of the main event loop. All other db operations are performed
outside of the event loop and synchronized via the invoice registry's
mutex, which also synchronizes the order in which events submitted to be
processed.
This resolves various concurrency issues where notifications can be
missed of inconsistent reads against the databse. This is especially
important in this case because we are actually making two separate
database calls.
2020-05-26 17:50:46 -07:00
Conner Fromknecht
5b747715fc
invoices: return error from SubscribeNotifications on shutdown
2020-05-26 17:50:45 -07:00
Conner Fromknecht
1332575482
channeldb/invoices: ignore error when no settles exist
...
This fixes a bug that would cause no backlog to be delivered at all.
2020-05-26 17:50:45 -07:00
Andras Banki-Horvath
337d282a3f
clock+test: convert checks to testify asserts
2020-05-26 23:55:28 +02:00
Andras Banki-Horvath
e81061bda4
clock: optionally wait until tickers are registered in TestClock
2020-05-26 23:55:26 +02:00
Olaoluwa Osuntokun
d32c7a4814
Merge pull request #4309 from Roasbeef/restore-open-time
...
lnd: fix regression in DB open time logs
2020-05-26 11:27:17 -07:00
Carla Kirk-Cohen
35d40efd52
Merge pull request #4315 from carlaKC/gomod-tidy
...
gomod: tidy dependencies
2020-05-26 11:29:14 +02:00