lbcd/blockchain/indexers
Alex 621c73dad1 multi: change cfilter Extended bool to FilterType uint8
The cfilter BIP specifies that the filter type is a uint8. The
current code encodes it correctly on the wire, but everywhere else,
it's treated as a boolean (false for basic filter, true for
extended). This commit corrects that to account for possible
additional filter types in the future. All package changes are
done in one commit as they're all interdependent. The following
packages are updated:

* blockchain/indexers
* btcjson
* peer
* wire
* main (server.go and rpcserver.go)
2018-05-23 16:46:15 -07:00
..
addrindex.go btcd/multi: fix a number of typos in comments. 2018-01-25 23:23:59 -06: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 multi: change cfilter Extended bool to FilterType uint8 2018-05-23 16:46:15 -07:00
common.go blockchain/indexers: Allow interrupts. 2017-09-05 11:02:46 -05:00
log.go indexers: Implement optional tx/address indexes. 2016-04-11 17:16:42 -05:00
manager.go blockchain: fix --dropcfindex 2018-05-23 16:46:15 -07:00
README.md multi: Update markdown files for GFM changes. 2017-05-25 12:06:16 -05:00
txindex.go btcd/multi: fix a number of typos in comments. 2018-01-25 23:23:59 -06: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.