lbcwallet/chain
Wilmer Paulino b3643ed7a9
chain: dispatch RescanFinished notification after BlockConnected
In this commit, we address a bug within the wallet when running with
Neutrino where it wouldn't be able to mark it as synced with the chain
due to not receiving a RescanFinished notification if it was a block
behind the chain. This happened because of the order in which the
notifications are delivered within the underlying Neutrino ChainService,
FilteredBlockConnected gets dispatched before BlockConnected. This
doesn't always work however because there is an implicit dependency
between them in which BlockConnected must occur first.

To address it, rather than switching the order in which the
notifications are dispatched, we just check if we can dispatch the final
RescanFinished notification after dispatching BlockConnected.

Co-Authored-By: Roei Erez <roeierez@gmail.com>
2019-04-18 19:32:37 -07:00
..
bitcoind_client.go chain/bitcoind_client: extend filterTx with script spend support 2019-01-14 18:38:45 -08:00
bitcoind_conn.go chain: allow setting the client's birthday after creation 2018-09-12 14:24:30 -07:00
block_filterer.go chain: update block filterer to map outpoints to addrs 2018-07-16 19:47:17 -07:00
block_filterer_test.go chain: update block filterer unit tests 2018-07-16 19:47:17 -07:00
interface.go chain: update watched/found outpoints to map to addrs 2018-07-16 19:47:17 -07:00
log.go Use LICENSE file and short license headers. 2016-02-28 22:22:34 -05:00
neutrino.go chain: dispatch RescanFinished notification after BlockConnected 2019-04-18 19:32:37 -07:00
queue.go chain: add concurrent unbounded queue implementation 2018-07-26 16:38:54 -07:00
rpc.go chain/rpc: remove unnecessary ping keep alive 2018-08-27 17:25:16 -07:00