From 6db0bc4b0507b558320217889ac0d9fd12d45617 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 10 Sep 2018 12:46:23 +0200 Subject: [PATCH] chainntnfs/neutrino_debug: new neutrino API --- chainntnfs/neutrinonotify/neutrino_dev.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/chainntnfs/neutrinonotify/neutrino_dev.go b/chainntnfs/neutrinonotify/neutrino_dev.go index 635f0d95..b069ff5d 100644 --- a/chainntnfs/neutrinonotify/neutrino_dev.go +++ b/chainntnfs/neutrinonotify/neutrino_dev.go @@ -8,7 +8,6 @@ import ( "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/rpcclient" - "github.com/btcsuite/btcwallet/waddrmgr" "github.com/lightninglabs/neutrino" "github.com/lightningnetwork/lnd/chainntnfs" ) @@ -26,14 +25,10 @@ func (n *NeutrinoNotifier) UnsafeStart(bestHeight int32, bestHash *chainhash.Has // start the auto-rescan from this point. Once a caller actually wishes // to register a chain view, the rescan state will be rewound // accordingly. - header, height, err := n.p2pNode.BlockHeaders.ChainTip() + startingPoint, err := n.p2pNode.BestBlock() if err != nil { return err } - startingPoint := &waddrmgr.BlockStamp{ - Height: int32(height), - Hash: header.BlockHash(), - } // Next, we'll create our set of rescan options. Currently it's // required that a user MUST set an addr/outpoint/txid when creating a