routing/chainview: update API usage for neutrino due to recent changes

This commit is contained in:
Olaoluwa Osuntokun 2018-07-11 17:33:42 -07:00
parent 80ff2c8d9f
commit 505544e1b3
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
2 changed files with 4 additions and 5 deletions

@ -12,8 +12,6 @@ import (
"testing"
"time"
"github.com/lightninglabs/neutrino"
"github.com/ltcsuite/ltcd/btcjson"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
@ -22,6 +20,8 @@ import (
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/lightninglabs/neutrino"
"github.com/ltcsuite/ltcd/btcjson"
"github.com/btcsuite/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" // Required to register the boltdb walletdb implementation.
@ -835,7 +835,6 @@ var interfaceImpls = []struct {
ConnectPeers: []string{p2pAddr},
}
neutrino.WaitForMoreCFHeaders = 250 * time.Millisecond
spvNode, err := neutrino.NewChainService(spvConfig)
if err != nil {
return nil, nil, err

@ -5,13 +5,13 @@ import (
"sync"
"sync/atomic"
"github.com/lightninglabs/neutrino"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/rpcclient"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcutil/gcs/builder"
"github.com/btcsuite/btcwallet/waddrmgr"
"github.com/lightninglabs/neutrino"
)
// CfFilteredChainView is an implementation of the FilteredChainView interface
@ -29,7 +29,7 @@ type CfFilteredChainView struct {
// chainView is the active rescan which only watches our specified
// sub-set of the UTXO set.
chainView neutrino.Rescan
chainView *neutrino.Rescan
// rescanErrChan is the channel that any errors encountered during the
// rescan will be sent over.