Merge pull request #841 from aakselrod/chainview-bitcoind-notifyblocks

routing/chainview: bitcoind back-end now requires explicit `NotifyBlocks()`
This commit is contained in:
Conner Fromknecht 2018-03-14 15:47:26 -07:00 committed by GitHub
commit 07266d8080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

4
Gopkg.lock generated
View File

@ -225,7 +225,7 @@
"walletdb/bdb",
"wtxmgr"
]
revision = "46f7390abe89576059b52588d91b82212e753493"
revision = "45445d1b09670109410174cb01fab0b133e3a904"
[[projects]]
branch = "master"
@ -359,6 +359,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "bc62d68c801d1d76b0d443fe409f6370d3141db3d62d0875f29531955efc8c72"
inputs-digest = "def340dd46b9ae439bf7c1e27155358aba5bb709c613fc1c577dacc4a2d4a1be"
solver-name = "gps-cdcl"
solver-version = 1

View File

@ -64,7 +64,7 @@
[[constraint]]
name = "github.com/roasbeef/btcwallet"
revision = "46f7390abe89576059b52588d91b82212e753493"
revision = "45445d1b09670109410174cb01fab0b133e3a904"
[[constraint]]
name = "github.com/tv42/zbase32"

View File

@ -101,6 +101,11 @@ func (b *BitcoindFilteredChainView) Start() error {
return err
}
err = b.chainClient.NotifyBlocks()
if err != nil {
return err
}
_, bestHeight, err := b.chainClient.GetBestBlock()
if err != nil {
return err