621c73dad1
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) |
||
---|---|---|
.. | ||
addrindex.go | ||
addrindex_test.go | ||
blocklogger.go | ||
cfindex.go | ||
common.go | ||
log.go | ||
manager.go | ||
README.md | ||
txindex.go |
indexers
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.