Skip to content

Instantly share code, notes, and snippets.

@brandoncurtis
Created March 20, 2019 01:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandoncurtis/ecc7a7275f83f87ccebdd0d8fbd55d01 to your computer and use it in GitHub Desktop.
Save brandoncurtis/ecc7a7275f83f87ccebdd0d8fbd55d01 to your computer and use it in GitHub Desktop.
Syncing Neutrino With Pre-#1319 and Post-#1319 BTCD

Setup

We have two BTCD nodes:

  • testnet1-btcd.zaphq.io, running BTCD commit before the #1319 filter fix
  • btcd-testnet.ion.radar.tech, running BTCD commit after the #1319 filter fix

We're running the version of LND packaged with the v0.4.4 release of Lightning-App:

  • Version: 0.5.2-99-beta commit=queue/v1.0.1-17-g09059eacf06068aefe6e5b23a0276fdcd8021d86

Findings

  1. Neutrino will happily sync against either pre-#1319 or post-#1319 BTCD peers.
  2. Removing reg_filter_headers.bin is sufficient to switch Neutrino between pre-#1319 and post-#1319 BTCD nodes.
  3. It's not necessary to delete neutrino.db or any additional LND files to trigger a resync.

Evidence

Initial Sync from Pre-#1319 BTCD

First, Neutrino was "synced fresh" against a pre-#1319 BTCD node.

$ ./Lightning-linux-x86_64v0.4.4-alpha.AppImage --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=testnet1-btcd.zaphq.io

[17:52:05.501] [info] lnd: 2019-03-19 17:52:05.501 [INF] BTCN: Waiting for more block headers, then will start cfheaders sync from height 0...
2019-03-19 17:52:05.501 [INF] BTCN: New valid peer 35.196.85.107:18333 (outbound) (/btcwire:0.5.0/btcd:0.12.0/)
2019-03-19 17:52:05.501 [INF] BTCN: Starting cfheaders sync from (block_height=0, block_hash=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943) to (block_height=1485296, block_hash=00000000000000ae8283955435ab2f6a4dd42b98bda76ff6a06e67b84ce1b91a)
[17:52:05.501] [info] lnd: 2019-03-19 17:52:05.501 [INF] BTCN: Starting cfheaders sync for filter_type=0
2019-03-19 17:52:05.501 [INF] BTCN: Syncing to block height 1485296 from peer 35.196.85.107:18333
2019-03-19 17:52:05.501 [INF] BTCN: Fetching set of headers from tip (height=1485296) from peer 35.196.85.107:18333
[17:52:05.592] [info] lnd: 2019-03-19 17:52:05.592 [INF] CMGR: DNS discovery failed on seed testnet-seed.bitcoin.schildbach.de: lookup testnet-seed.bitcoin.schildbach.de: no such host
[17:52:05.644] [info] lnd: 2019-03-19 17:52:05.644 [INF] CMGR: DNS discovery failed on seed x49.testnet-seed.bitcoin.jonasschnelli.ch: lookup x49.testnet-seed.bitcoin.jonasschnelli.ch: No address associated with hostname
[17:52:05.783] [info] lnd: 2019-03-19 17:52:05.783 [INF] BTCN: Fetching set of checkpointed cfheaders filters from height=0, hash=21584579b7eb08997773e5aeff3a7f932700042d0ed2a6129012b7d7ae81b750
2019-03-19 17:52:05.783 [INF] BTCN: Starting to query for cfheaders from checkpoint_interval=0
[17:52:05.980] [info] GRPC unlockerReady
[17:52:06.089] [info] lnd: 2019-03-19 17:52:06.089 [INF] BTCN: Attempting to query for 1485 cfheader batches
Update for version 0.4.4-alpha is not available (latest version: 0.4.4-alpha, downgrade is disallowed).
[17:52:15.237] [info] lnd: 2019-03-19 17:52:15.237 [INF] BTCN: Verified 51001 filter headers in the last 10.03s (height 51001, 2013-02-13 03:34:37 -0800 PST)
[17:52:25.261] [info] lnd: 2019-03-19 17:52:25.260 [INF] BTCN: Verified 57000 filter headers in the last 10.02s (height 108001, 2013-09-26 14:56:43 -0700 PDT)
[17:52:35.300] [info] lnd: 2019-03-19 17:52:35.300 [INF] BTCN: Verified 57000 filter headers in the last 10.03s (height 165001, 2014-01-10 14:35:00 -0800 PST)
[17:52:45.407] [info] lnd: 2019-03-19 17:52:45.406 [INF] BTCN: Verified 58000 filter headers in the last 10.1s (height 223001, 2014-04-14 00:29:06 -0700 PDT)
[17:52:55.491] [info] lnd: 2019-03-19 17:52:55.490 [INF] BTCN: Verified 60000 filter headers in the last 10.08s (height 283001, 2014-10-02 02:57:07 -0700 PDT)
[17:53:05.560] [info] lnd: 2019-03-19 17:53:05.559 [INF] BTCN: Verified 59000 filter headers in the last 10.06s (height 342001, 2015-04-13 19:12:52 -0700 PDT)
[17:53:15.661] [info] lnd: 2019-03-19 17:53:15.661 [INF] BTCN: Verified 60000 filter headers in the last 10.1s (height 402001, 2015-05-16 15:30:31 -0700 PDT)
[17:53:26.041] [info] lnd: 2019-03-19 17:53:26.040 [INF] BTCN: Verified 61000 filter headers in the last 10.37s (height 463001, 2015-06-10 12:02:55 -0700 PDT)
[17:53:36.171] [info] lnd: 2019-03-19 17:53:36.171 [INF] BTCN: Verified 59000 filter headers in the last 10.13s (height 522001, 2015-08-02 09:10:57 -0700 PDT)
[17:53:46.231] [info] lnd: 2019-03-19 17:53:46.231 [INF] BTCN: Verified 59000 filter headers in the last 10.06s (height 581001, 2015-10-29 01:43:03 -0700 PDT)
[17:53:56.373] [info] lnd: 2019-03-19 17:53:56.372 [INF] BTCN: Verified 59000 filter headers in the last 10.14s (height 640001, 2016-01-19 00:09:45 -0800 PST)
[17:54:06.463] [info] lnd: 2019-03-19 17:54:06.462 [INF] BTCN: Verified 60000 filter headers in the last 10.08s (height 700001, 2016-02-13 14:59:40 -0800 PST)
[17:54:16.464] [info] lnd: 2019-03-19 17:54:16.463 [INF] BTCN: Verified 57000 filter headers in the last 10s (height 757001, 2016-03-31 04:46:52 -0700 PDT)
[17:54:26.523] [info] lnd: 2019-03-19 17:54:26.522 [INF] BTCN: Verified 58000 filter headers in the last 10.05s (height 815001, 2016-05-07 00:50:38 -0700 PDT)
[17:54:36.595] [info] lnd: 2019-03-19 17:54:36.595 [INF] BTCN: Verified 58000 filter headers in the last 10.07s (height 873001, 2016-06-25 13:47:30 -0700 PDT)
[17:54:46.712] [info] lnd: 2019-03-19 17:54:46.711 [INF] BTCN: Verified 57000 filter headers in the last 10.11s (height 930001, 2016-09-24 23:14:29 -0700 PDT)
[17:54:56.834] [info] lnd: 2019-03-19 17:54:56.833 [INF] BTCN: Verified 54000 filter headers in the last 10.12s (height 984001, 2016-10-12 02:22:44 -0700 PDT)
[17:55:06.841] [info] lnd: 2019-03-19 17:55:06.840 [INF] BTCN: Verified 57000 filter headers in the last 10s (height 1041001, 2016-12-04 04:12:45 -0800 PST)
[17:55:17.142] [info] lnd: 2019-03-19 17:55:17.142 [INF] BTCN: Verified 59000 filter headers in the last 10.3s (height 1100001, 2017-03-28 12:46:25 -0700 PDT)
[17:55:27.241] [info] lnd: 2019-03-19 17:55:27.241 [INF] BTCN: Verified 57000 filter headers in the last 10.09s (height 1157001, 2017-08-09 22:56:44 -0700 PDT)
[17:55:37.297] [info] lnd: 2019-03-19 17:55:37.297 [INF] BTCN: Verified 58000 filter headers in the last 10.05s (height 1215001, 2017-11-02 11:22:04 -0700 PDT)
[17:55:47.379] [info] lnd: 2019-03-19 17:55:47.379 [INF] BTCN: Verified 59000 filter headers in the last 10.08s (height 1274001, 2018-02-04 01:29:16 -0800 PST)
[17:55:57.646] [info] lnd: 2019-03-19 17:55:57.646 [INF] BTCN: Verified 57000 filter headers in the last 10.26s (height 1331001, 2018-06-27 19:22:14 -0700 PDT)
[17:56:07.755] [info] lnd: 2019-03-19 17:56:07.754 [INF] BTCN: Verified 58000 filter headers in the last 10.1s (height 1389001, 2018-08-22 10:24:56 -0700 PDT)
[17:56:17.853] [info] lnd: 2019-03-19 17:56:17.852 [INF] BTCN: Verified 60000 filter headers in the last 10.09s (height 1449001, 2018-12-22 17:17:46 -0800 PST)
[17:56:26.563] [info] lnd: 2019-03-19 17:56:26.562 [INF] BTCN: Fully caught up with cfheaders at height 1485296, waiting at tip for new blocks
[17:56:26.563] [info] lnd: 2019-03-19 17:56:26.563 [INF] BTCN: Attempting to fetch set of un-checkpointed filters at height=1485296, hash=00000000000000ae8283955435ab2f6a4dd42b98bda76ff6a06e67b84ce1b91a

Switching to Post-#1319 BTCD

Upon switching to post-#1319 BTCD, Neutrino detects a discrepancy and will not continue to sync. It doesn't realize that the Post-#1319 filters are correct, delete its filters, and start over; it just gets stuck.

$ ./Lightning-linux-x86_64v0.4.4-alpha.AppImage.1 --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=btcd-testnet.ion.radar.tech

[18:00:43.339] [info] lnd: 2019-03-19 18:00:43.326 [INF] BTCN: New valid peer 3.18.26.129:18333 (outbound) (/btcwire:0.5.0/btcd:0.12.0/)
2019-03-19 18:00:43.326 [INF] BTCN: Syncing to block height 1485296 from peer 3.18.26.129:18333
2019-03-19 18:00:43.326 [INF] BTCN: Fetching set of headers from tip (height=1485296) from peer 3.18.26.129:18333
2019-03-19 18:00:43.327 [INF] BTCN: Waiting for more block headers, then will start cfheaders sync from height 1485296...
2019-03-19 18:00:43.327 [INF] BTCN: Starting cfheaders sync from (block_height=1485296, block_hash=00000000000000ae8283955435ab2f6a4dd42b98bda76ff6a06e67b84ce1b91a) to (block_height=1485296, block_hash=00000000000000ae8283955435ab2f6a4dd42b98bda76ff6a06e67b84ce1b91a)
2019-03-19 18:00:43.327 [INF] BTCN: Starting cfheaders sync for filter_type=0

[18:00:43.608] [info] lnd: 2019-03-19 18:00:43.608 [WRN] BTCN: mismatch at height 155000, expected 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b got ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6
2019-03-19 18:00:43.608 [WRN] BTCN: Detected mismatch at index=154 for checkpoints!!!

[18:00:43.811] [info] GRPC unlockerReady
[18:00:43.875] [info] lnd: 2019-03-19 18:00:43.865 [WRN] BTCN: mismatch at height 155000, expected 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b got ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6
2019-03-19 18:00:43.865 [WRN] BTCN: got error attempting to determine correct cfheader checkpoints: got mismatched checkpoints, trying again

[18:00:47.146] [info] lnd: 2019-03-19 18:00:47.145 [WRN] BTCN: mismatch at height 155000, expected 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b got ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6
2019-03-19 18:00:47.145 [WRN] BTCN: Detected mismatch at index=154 for checkpoints!!!

[18:00:47.390] [info] lnd: 2019-03-19 18:00:47.390 [WRN] BTCN: mismatch at height 155000, expected 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b got ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6
2019-03-19 18:00:47.390 [WRN] BTCN: got error attempting to determine correct cfheader checkpoints: got mismatched checkpoints, trying again

[18:00:50.672] [info] lnd: 2019-03-19 18:00:50.672 [WRN] BTCN: mismatch at height 155000, expected 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b got ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6
2019-03-19 18:00:50.672 [WRN] BTCN: Detected mismatch at index=154 for checkpoints!!!

Deleting reg_filter_headers.bin, syncing from post-#1319 BTCD

After deleting ONLY reg_filter_headers.bin, connecting to post-#1319 BTCD triggers a resync:

$ rm ~/.config/lightning-app/lnd/data/chain/bitcoin/testnet/reg_filter_headers.bin
$ ./Lightning-linux-x86_64v0.4.4-alpha.AppImage.1 --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=btcd-testnet.ion.radar.tech

2019-03-19 18:02:12.808 [INF] BTCN: New valid peer 3.18.26.129:18333 (outbound) (/btcwire:0.5.0/btcd:0.12.0/)
2019-03-19 18:02:12.808 [INF] BTCN: Starting cfheaders sync from (block_height=0, block_hash=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943) to (block_height=1485297, block_hash=000000000017d38feb7b42ef654c213bab972136787ee5f784c586a936d4111e)
2019-03-19 18:02:12.808 [INF] BTCN: Starting cfheaders sync for filter_type=0
2019-03-19 18:02:12.808 [INF] BTCN: Syncing to block height 1485297 from peer 3.18.26.129:18333
2019-03-19 18:02:12.808 [INF] BTCN: Fetching set of headers from tip (height=1485297) from peer 3.18.26.129:18333

[18:02:12.836] [info] lnd: 2019-03-19 18:02:12.835 [INF] CMGR: DNS discovery failed on seed x49.testnet-seed.bitcoin.jonasschnelli.ch: lookup x49.testnet-seed.bitcoin.jonasschnelli.ch: No address associated with hostname

[18:02:13.082] [info] lnd: 2019-03-19 18:02:13.081 [INF] BTCN: Fetching set of checkpointed cfheaders filters from height=0, hash=21584579b7eb08997773e5aeff3a7f932700042d0ed2a6129012b7d7ae81b750
2019-03-19 18:02:13.081 [INF] BTCN: Starting to query for cfheaders from checkpoint_interval=0

[18:02:13.090] [info] lnd: 2019-03-19 18:02:13.090 [INF] BTCN: Attempting to query for 1485 cfheader batches

[18:02:13.298] [info] GRPC unlockerReady
Update for version 0.4.4-alpha is not available (latest version: 0.4.4-alpha, downgrade is disallowed).
[18:02:22.657] [info] lnd: 2019-03-19 18:02:22.657 [INF] BTCN: Verified 64001 filter headers in the last 10.09s (height 64001, 2013-04-04 15:08:46 -0700 PDT)
[18:02:32.716] [info] lnd: 2019-03-19 18:02:32.716 [INF] BTCN: Verified 68000 filter headers in the last 10.05s (height 132001, 2013-11-10 11:44:09 -0800 PST)
[18:02:42.724] [info] lnd: 2019-03-19 18:02:42.724 [INF] BTCN: Verified 68000 filter headers in the last 10s (height 200001, 2014-02-28 23:38:49 -0800 PST)
[18:02:52.758] [info] lnd: 2019-03-19 18:02:52.758 [INF] BTCN: Verified 70000 filter headers in the last 10.03s (height 270001, 2014-07-19 16:34:28 -0700 PDT)
[18:03:02.833] [info] lnd: 2019-03-19 18:03:02.833 [INF] BTCN: Verified 67000 filter headers in the last 10.07s (height 337001, 2015-04-13 13:15:12 -0700 PDT)
[18:03:12.917] [info] lnd: 2019-03-19 18:03:12.917 [INF] BTCN: Verified 71000 filter headers in the last 10.08s (height 408001, 2015-05-18 08:44:46 -0700 PDT)
[18:03:23.002] [info] lnd: 2019-03-19 18:03:23.002 [INF] BTCN: Verified 70000 filter headers in the last 10.08s (height 478001, 2015-06-16 15:50:42 -0700 PDT)
[18:03:33.113] [info] lnd: 2019-03-19 18:03:33.113 [INF] BTCN: Verified 66000 filter headers in the last 10.11s (height 544001, 2015-09-02 00:22:38 -0700 PDT)
[18:03:43.204] [info] lnd: 2019-03-19 18:03:43.203 [INF] BTCN: Verified 69000 filter headers in the last 10.09s (height 613001, 2015-12-07 02:46:11 -0800 PST)
[18:03:53.292] [info] lnd: 2019-03-19 18:03:53.292 [INF] BTCN: Verified 71000 filter headers in the last 10.08s (height 684001, 2016-02-06 12:51:40 -0800 PST)
[18:04:03.392] [info] lnd: 2019-03-19 18:04:03.392 [INF] BTCN: Verified 68000 filter headers in the last 10.1s (height 752001, 2016-03-28 13:13:37 -0700 PDT)
[18:04:13.417] [info] lnd: 2019-03-19 18:04:13.416 [INF] BTCN: Verified 66000 filter headers in the last 10.02s (height 818001, 2016-05-07 01:16:13 -0700 PDT)
[18:04:23.501] [info] lnd: 2019-03-19 18:04:23.501 [INF] BTCN: Verified 71000 filter headers in the last 10.08s (height 889001, 2016-07-01 02:31:42 -0700 PDT)
[18:04:33.565] [info] lnd: 2019-03-19 18:04:33.565 [INF] BTCN: Verified 68000 filter headers in the last 10.06s (height 957001, 2016-09-29 15:59:25 -0700 PDT)
[18:04:43.628] [info] lnd: 2019-03-19 18:04:43.622 [INF] BTCN: Verified 69000 filter headers in the last 10.05s (height 1026001, 2016-11-04 19:31:01 -0700 PDT)
[18:04:53.625] [info] lnd: 2019-03-19 18:04:53.625 [INF] BTCN: Verified 71000 filter headers in the last 10s (height 1097001, 2017-03-28 11:12:58 -0700 PDT)
[18:05:03.633] [info] lnd: 2019-03-19 18:05:03.632 [INF] BTCN: Verified 69000 filter headers in the last 10s (height 1166001, 2017-08-11 11:02:25 -0700 PDT)
[18:05:13.634] [info] lnd: 2019-03-19 18:05:13.634 [INF] BTCN: Verified 70000 filter headers in the last 10s (height 1236001, 2017-11-25 07:08:30 -0800 PST)
[18:05:23.755] [info] lnd: 2019-03-19 18:05:23.755 [INF] BTCN: Verified 72000 filter headers in the last 10.12s (height 1308001, 2018-05-22 14:52:33 -0700 PDT)
[18:05:33.762] [info] lnd: 2019-03-19 18:05:33.762 [INF] BTCN: Verified 60000 filter headers in the last 10s (height 1368001, 2018-08-03 10:27:19 -0700 PDT)
[18:05:43.883] [info] lnd: 2019-03-19 18:05:43.883 [INF] BTCN: Verified 70000 filter headers in the last 10.12s (height 1438001, 2018-10-14 12:40:35 -0700 PDT)
[18:05:53.732] [info] lnd: 2019-03-19 18:05:53.730 [INF] BTCN: Fully caught up with cfheaders at height 1485297, waiting at tip for new blocks
2019-03-19 18:05:53.730 [INF] BTCN: Attempting to fetch set of un-checkpointed filters at height=1485297, hash=000000000017d38feb7b42ef654c213bab972136787ee5f784c586a936d4111e

Switching back to a pre-#1319 BTCD

Switching back to a pre-#1319 BTCD peer, Neutrino again detects a mismatch between the served and previously-stored filters and cannot continue:

$ ./Lightning-linux-x86_64v0.4.4-alpha.AppImage.1 --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=testnet1-btcd.zaphq.io

2019-03-19 18:06:50.494 [INF] BTCN: New valid peer 35.196.85.107:18333 (outbound) (/btcwire:0.5.0/btcd:0.12.0/)

[18:06:50.494] [info] lnd: 2019-03-19 18:06:50.494 [INF] BTCN: Starting cfheaders sync from (block_height=1485297, block_hash=000000000017d38feb7b42ef654c213bab972136787ee5f784c586a936d4111e) to (block_height=1485297, block_hash=000000000017d38feb7b42ef654c213bab972136787ee5f784c586a936d4111e)
2019-03-19 18:06:50.494 [INF] BTCN: Starting cfheaders sync for filter_type=0
2019-03-19 18:06:50.494 [INF] BTCN: Syncing to block height 1485297 from peer 35.196.85.107:18333
2019-03-19 18:06:50.494 [INF] BTCN: Fetching set of headers from tip (height=1485297) from peer 35.196.85.107:18333

[18:06:50.516] [info] lnd: 2019-03-19 18:06:50.515 [INF] CMGR: DNS discovery failed on seed x49.testnet-seed.bitcoin.jonasschnelli.ch: lookup x49.testnet-seed.bitcoin.jonasschnelli.ch: No address associated with hostname

[18:06:50.783] [info] lnd: 2019-03-19 18:06:50.783 [WRN] BTCN: mismatch at height 155000, expected ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6 got 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b
2019-03-19 18:06:50.783 [WRN] BTCN: Detected mismatch at index=154 for checkpoints!!!

[18:06:50.980] [info] GRPC unlockerReady
[18:06:51.128] [info] lnd: 2019-03-19 18:06:51.128 [WRN] BTCN: mismatch at height 155000, expected ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6 got 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b
2019-03-19 18:06:51.128 [WRN] BTCN: got error attempting to determine correct cfheader checkpoints: got mismatched checkpoints, trying again

Update for version 0.4.4-alpha is not available (latest version: 0.4.4-alpha, downgrade is disallowed).
[18:06:54.232] [info] lnd: 2019-03-19 18:06:54.232 [WRN] BTCN: mismatch at height 155000, expected ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6 got 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b
2019-03-19 18:06:54.232 [WRN] BTCN: Detected mismatch at index=154 for checkpoints!!!

[18:06:54.480] [info] lnd: 2019-03-19 18:06:54.480 [WRN] BTCN: mismatch at height 155000, expected ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6 got 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b
2019-03-19 18:06:54.480 [WRN] BTCN: got error attempting to determine correct cfheader checkpoints: got mismatched checkpoints, trying again

[18:06:57.621] [info] lnd: 2019-03-19 18:06:57.621 [WRN] BTCN: mismatch at height 155000, expected ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6 got 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b
2019-03-19 18:06:57.621 [WRN] BTCN: Detected mismatch at index=154 for checkpoints!!!

[18:06:57.909] [info] lnd: 2019-03-19 18:06:57.909 [WRN] BTCN: mismatch at height 155000, expected ffdd1a21e6bbba890e0d0560f192f149cadadc7f679877f04cb544a6a6f481f6 got 6d8f9fa10914fe0f88fec07eab9a849fb40f026925a04130aedf0003a14d017b
2019-03-19 18:06:57.909 [WRN] BTCN: got error attempting to determine correct cfheader checkpoints: got mismatched checkpoints, trying again

Deleting reg_filter_headers.bin, syncing from pre-#1319 BTCD

After deleting reg_filter_headers.bin, Neutrino will again successfully resync from the pre-#1319 BTCD:

$ rm ~/.config/lightning-app/lnd/data/chain/bitcoin/testnet/reg_filter_headers.bin
$ ./Lightning-linux-x86_64v0.4.4-alpha.AppImage.1 --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=testnet1-btcd.zaphq.io

[18:08:00.345] [info] lnd: 2019-03-19 18:08:00.345 [INF] BTCN: New valid peer 35.196.85.107:18333 (outbound) (/btcwire:0.5.0/btcd:0.12.0/)
2019-03-19 18:08:00.345 [INF] BTCN: Waiting for more block headers, then will start cfheaders sync from height 0...

[18:08:00.346] [info] lnd: 2019-03-19 18:08:00.345 [INF] BTCN: Starting cfheaders sync from (block_height=0, block_hash=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943) to (block_height=1485297, block_hash=000000000017d38feb7b42ef654c213bab972136787ee5f784c586a936d4111e)
2019-03-19 18:08:00.345 [INF] BTCN: Starting cfheaders sync for filter_type=0
2019-03-19 18:08:00.345 [INF] BTCN: Syncing to block height 1485297 from peer 35.196.85.107:18333
2019-03-19 18:08:00.345 [INF] BTCN: Fetching set of headers from tip (height=1485297) from peer 35.196.85.107:18333

[18:08:00.352] [info] lnd: 2019-03-19 18:08:00.352 [INF] CMGR: DNS discovery failed on seed x49.testnet-seed.bitcoin.jonasschnelli.ch: lookup x49.testnet-seed.bitcoin.jonasschnelli.ch: No address associated with hostname

[18:08:00.631] [info] lnd: 2019-03-19 18:08:00.631 [INF] BTCN: Fetching set of checkpointed cfheaders filters from height=0, hash=21584579b7eb08997773e5aeff3a7f932700042d0ed2a6129012b7d7ae81b750
2019-03-19 18:08:00.631 [INF] BTCN: Starting to query for cfheaders from checkpoint_interval=0

[18:08:00.645] [info] lnd: 2019-03-19 18:08:00.645 [INF] BTCN: Attempting to query for 1485 cfheader batches

[18:08:00.834] [info] GRPC unlockerReady

Update for version 0.4.4-alpha is not available (latest version: 0.4.4-alpha, downgrade is disallowed).
[18:08:10.116] [info] lnd: 2019-03-19 18:08:10.116 [INF] BTCN: Verified 53001 filter headers in the last 10.06s (height 53001, 2013-02-16 02:59:10 -0800 PST)
[18:08:20.233] [info] lnd: 2019-03-19 18:08:20.232 [INF] BTCN: Verified 58000 filter headers in the last 10.11s (height 111001, 2013-09-27 21:56:43 -0700 PDT)
[18:08:30.330] [info] lnd: 2019-03-19 18:08:30.330 [INF] BTCN: Verified 59000 filter headers in the last 10.09s (height 170001, 2014-01-26 10:40:50 -0800 PST)
[18:08:40.337] [info] lnd: 2019-03-19 18:08:40.337 [INF] BTCN: Verified 57000 filter headers in the last 10s (height 227001, 2014-04-27 23:27:51 -0700 PDT)
[18:08:50.745] [info] lnd: 2019-03-19 18:08:50.744 [INF] BTCN: Verified 59000 filter headers in the last 10.4s (height 286001, 2014-10-02 08:15:37 -0700 PDT)
[18:09:00.834] [info] lnd: 2019-03-19 18:09:00.834 [INF] BTCN: Verified 58000 filter headers in the last 10.08s (height 344001, 2015-04-13 21:20:34 -0700 PDT)
[18:09:10.845] [info] lnd: 2019-03-19 18:09:10.845 [INF] BTCN: Verified 56000 filter headers in the last 10.01s (height 400001, 2015-05-16 13:44:27 -0700 PDT)
[18:09:21.047] [info] lnd: 2019-03-19 18:09:21.047 [INF] BTCN: Verified 59000 filter headers in the last 10.2s (height 459001, 2015-06-08 23:36:57 -0700 PDT)
[18:09:31.048] [info] lnd: 2019-03-19 18:09:31.047 [INF] BTCN: Verified 58000 filter headers in the last 10s (height 517001, 2015-08-01 15:45:25 -0700 PDT)
[18:09:41.131] [info] lnd: 2019-03-19 18:09:41.131 [INF] BTCN: Verified 59000 filter headers in the last 10.08s (height 576001, 2015-10-03 15:58:14 -0700 PDT)
[18:09:51.239] [info] lnd: 2019-03-19 18:09:51.239 [INF] BTCN: Verified 60000 filter headers in the last 10.1s (height 636001, 2016-01-18 14:08:32 -0800 PST)
[18:10:01.240] [info] lnd: 2019-03-19 18:10:01.240 [INF] BTCN: Verified 56000 filter headers in the last 10s (height 692001, 2016-02-12 17:35:48 -0800 PST)
[18:10:11.249] [info] lnd: 2019-03-19 18:10:11.249 [INF] BTCN: Verified 59000 filter headers in the last 10s (height 751001, 2016-03-27 06:42:14 -0700 PDT)
[18:10:21.256] [info] lnd: 2019-03-19 18:10:21.256 [INF] BTCN: Verified 60000 filter headers in the last 10s (height 811001, 2016-05-06 23:20:59 -0700 PDT)
[18:10:31.380] [info] lnd: 2019-03-19 18:10:31.380 [INF] BTCN: Verified 58000 filter headers in the last 10.12s (height 869001, 2016-06-07 13:30:50 -0700 PDT)
[18:10:41.564] [info] lnd: 2019-03-19 18:10:41.564 [INF] BTCN: Verified 61000 filter headers in the last 10.18s (height 930001, 2016-09-24 23:14:29 -0700 PDT)
[18:10:51.678] [info] lnd: 2019-03-19 18:10:51.678 [INF] BTCN: Verified 61000 filter headers in the last 10.11s (height 991001, 2016-10-17 03:05:50 -0700 PDT)
[18:11:01.756] [info] lnd: 2019-03-19 18:11:01.755 [INF] BTCN: Verified 58000 filter headers in the last 10.07s (height 1049001, 2016-12-04 10:01:57 -0800 PST)
[18:11:11.791] [info] lnd: 2019-03-19 18:11:11.790 [INF] BTCN: Verified 58000 filter headers in the last 10.03s (height 1107001, 2017-03-28 16:58:35 -0700 PDT)
[18:11:22.061] [info] lnd: 2019-03-19 18:11:22.061 [INF] BTCN: Verified 61000 filter headers in the last 10.27s (height 1168001, 2017-08-11 12:29:05 -0700 PDT)
[18:11:32.150] [info] lnd: 2019-03-19 18:11:32.150 [INF] BTCN: Verified 59000 filter headers in the last 10.08s (height 1227001, 2017-11-08 17:31:10 -0800 PST)
[18:11:42.265] [info] lnd: 2019-03-19 18:11:42.265 [INF] BTCN: Verified 59000 filter headers in the last 10.11s (height 1286001, 2018-02-24 22:46:09 -0800 PST)
[18:11:52.440] [info] lnd: 2019-03-19 18:11:52.439 [INF] BTCN: Verified 61000 filter headers in the last 10.17s (height 1347001, 2018-06-29 08:00:16 -0700 PDT)
[18:12:02.538] [info] lnd: 2019-03-19 18:12:02.538 [INF] BTCN: Verified 59000 filter headers in the last 10.09s (height 1406001, 2018-08-22 20:27:36 -0700 PDT)
[18:12:12.658] [info] lnd: 2019-03-19 18:12:12.658 [INF] BTCN: Verified 59000 filter headers in the last 10.12s (height 1465001, 2019-02-17 23:11:59 -0800 PST)
[18:12:18.827] [info] lnd: 2019-03-19 18:12:18.827 [INF] BTCN: Fully caught up with cfheaders at height 1485297, waiting at tip for new blocks
[18:12:18.827] [info] lnd: 2019-03-19 18:12:18.827 [INF] BTCN: Attempting to fetch set of un-checkpointed filters at height=1485297, hash=000000000017d38feb7b42ef654c213bab972136787ee5f784c586a936d4111e
[18:21:22.291] [info] lnd: 2019-03-19 18:21:22.291 [INF] BTCN: Processed 1 block in the last 13m22.24s (height 1485298, 2019-03-19 18:21:20 -0700 PDT)
[18:21:22.297] [info] lnd: 2019-03-19 18:21:22.297 [INF] BTCN: Attempting to fetch set of un-checkpointed filters at height=1485298, hash=000000001eaeaa4c92c624896929365b7196bb31a27ed8eb05ee24cdf8e4a9b0
[18:21:22.396] [info] lnd: 2019-03-19 18:21:22.396 [INF] BTCN: Verified 20297 filter headers in the last 9m9.73s (height 1485298, 2019-03-19 18:21:20 -0700 PDT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment