github.com/decred/dcrlnd@v0.7.6/routing/chainview/dcrwallet.go (about)

     1  package chainview
     2  
     3  import (
     4  	"decred.org/dcrwallet/v4/wallet"
     5  	"github.com/decred/dcrlnd/blockcache"
     6  	"github.com/decred/dcrlnd/chainntnfs/dcrwnotify"
     7  	"github.com/decred/dcrlnd/chainntnfs/remotedcrwnotify"
     8  	"google.golang.org/grpc"
     9  )
    10  
    11  func NewDcrwalletFilteredChainView(w *wallet.Wallet, blockCache *blockcache.BlockCache) (FilteredChainView, error) {
    12  	src := dcrwnotify.NewDcrwChainSource(w, blockCache)
    13  	return newChainscanFilteredChainView(src)
    14  }
    15  
    16  func NewRemoteWalletFilteredChainView(conn *grpc.ClientConn, blockCache *blockcache.BlockCache) (FilteredChainView, error) {
    17  	src := remotedcrwnotify.NewRemoteWalletChainSource(conn, blockCache)
    18  	return newChainscanFilteredChainView(src)
    19  }