lbcd/blockchain/indexers
Olaoluwa Osuntokun be191ca111
blockchain/indexers: fix bug in indexer re-org catch up
In this commit, we fix an existing bug in the re-org catch up logic for
the `IndexManager`. Before this commit, we would assign the block to the
_local_ scope rather than the outer scope. As a result, we would never
properly bisect the chain to find the fork point to be able to reconcile
the index state to the main chain only after a re-org occurs.

Fixes #1261
2018-08-22 19:46:27 -07:00
..
addrindex.go blockchain/indexers: update indexing to use stxos instead of utxo view for blocks 2018-05-30 20:47:40 -07:00
addrindex_test.go multi: Correct misspellings detected by misspell. 2016-10-28 09:43:38 -05:00
blocklogger.go indexers: Implement optional tx/address indexes. 2016-04-11 17:16:42 -05:00
cfindex.go blockchain/indexers: ensure the cfindex gets inputs 2018-07-06 16:15:24 -07:00
common.go blockchain/indexers: update indexing to use stxos instead of utxo view for blocks 2018-05-30 20:47:40 -07:00
log.go indexers: Implement optional tx/address indexes. 2016-04-11 17:16:42 -05:00
manager.go blockchain/indexers: fix bug in indexer re-org catch up 2018-08-22 19:46:27 -07:00
README.md multi: Update markdown files for GFM changes. 2017-05-25 12:06:16 -05:00
txindex.go blockchain/indexers: update indexing to use stxos instead of utxo view for blocks 2018-05-30 20:47:40 -07:00

indexers

Build Status ISC License GoDoc

Package indexers implements optional block chain indexes.

These indexes are typically used to enhance the amount of information available via an RPC interface.

Supported Indexers

  • Transaction-by-hash (txbyhashidx) Index
    • Creates a mapping from the hash of each transaction to the block that contains it along with its offset and length within the serialized block
  • Transaction-by-address (txbyaddridx) Index
    • Creates a mapping from every address to all transactions which either credit or debit the address
    • Requires the transaction-by-hash index

Installation

$ go get -u github.com/btcsuite/btcd/blockchain/indexers

License

Package indexers is licensed under the copyfree ISC License.