2019-05-08 20:34:27 +02:00
|
|
|
# Indexer configuration.
|
|
|
|
|
#
|
2021-02-06 20:20:43 +01:00
|
|
|
# The indexer needs an upstream hub, by default it tries to find one
|
|
|
|
|
# on localhost, port 1235.
|
|
|
|
|
# You can override this in the [services] group:
|
|
|
|
|
[services]
|
|
|
|
|
# hub=localhost:1235
|
|
|
|
|
# hub=flowee.org
|
|
|
|
|
# hub=rest.flowee.org:1235
|
|
|
|
|
|
|
|
|
|
# The indexer is most useful if it binds itself and makes its services
|
|
|
|
|
# available. You can bind to one or more interfaces by providing
|
|
|
|
|
# an 'ip' value and also an optional 'port' value under a group of your
|
|
|
|
|
# naming.
|
|
|
|
|
# To bind to multiple interfaces, just create more sub-groups.
|
|
|
|
|
[myHostName]
|
|
|
|
|
# ip=192.168.1.5
|
|
|
|
|
# ip=localhost
|
|
|
|
|
# port=1234
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#####################################
|
2019-05-08 20:34:27 +02:00
|
|
|
# Various indexers have to be manually enabled in a subgroup of that indexer
|
|
|
|
|
# with an explicit 'enabled=true'
|
|
|
|
|
# More details listed in the individual subgroups.
|
2021-02-06 20:20:43 +01:00
|
|
|
#####################################
|
2019-05-08 20:34:27 +02:00
|
|
|
|
|
|
|
|
#### Subgroup: Transaction-ID indexer
|
|
|
|
|
# This indexer creates one directory with all the txids found.
|
|
|
|
|
[txdb]
|
|
|
|
|
enabled=true
|
|
|
|
|
|
2020-09-20 20:14:18 +02:00
|
|
|
#### Subgroup: SpentDB indexer
|
|
|
|
|
# This indexer creates one directory with the reverse of the UTXO.
|
|
|
|
|
# It records not what is unspent, it records which tx spent which output.
|
|
|
|
|
[spentdb]
|
|
|
|
|
enabled=true
|
2019-05-08 20:34:27 +02:00
|
|
|
|
|
|
|
|
#### Subgroup: address-database
|
|
|
|
|
# This indexer creates a global lookup table of all addresses (public key-hash)
|
|
|
|
|
# ever used on the chain. Even for payments to public keys (as was done in the
|
|
|
|
|
# first years of Bitcoin) the hash is stored for fast retrieval.
|
|
|
|
|
#
|
|
|
|
|
# Next to this database we store the transaction outputs that actually deposit
|
|
|
|
|
# money in those addresses. This is stored in a SQL database and you need to
|
|
|
|
|
# configure the access to this DB as well.
|
|
|
|
|
[addressdb]
|
|
|
|
|
enabled=false
|
2020-12-17 09:07:41 +01:00
|
|
|
# # AddressDB SQL requirement
|
|
|
|
|
#
|
|
|
|
|
# The AddressDB component of the Indexer is optional and requires a SQL backend.
|
|
|
|
|
# If you want to run this on mainnet we have tested and had good results with PostgreSQL
|
|
|
|
|
# version 10 and also version 12.
|
|
|
|
|
# Tests with MySQL have given much less positive results, functional but extremely slow,
|
|
|
|
|
# not adviced at this time.
|
|
|
|
|
#
|
|
|
|
|
# When it comes to postgres it is relevant to know that both username and database-name
|
|
|
|
|
# are always lowercase, please consider this while configuring your setup.
|
2019-05-08 20:34:27 +02:00
|
|
|
|
|
|
|
|
# driver is taken from the QSQL libraries, as such you will only be able to
|
|
|
|
|
# access drivers you have installed.
|
|
|
|
|
# db_driver=QSQLITE
|
|
|
|
|
# db_driver=QPSQL
|
2020-05-13 12:55:07 +00:00
|
|
|
# db_driver=QMYSQL
|
2019-05-08 20:34:27 +02:00
|
|
|
# db_hostname=myserver
|
|
|
|
|
# db_database=flowee
|
|
|
|
|
# db_username=flowee_indexer
|
2020-05-13 12:55:07 +00:00
|
|
|
# db_password=s3cr3t
|
2021-02-06 23:10:02 +01:00
|
|
|
#
|
|
|
|
|
# Postgresql uses port 5432 by default.
|
|
|
|
|
# MySql uses 3306 by default.
|
|
|
|
|
# If you want to use something else, set it here.
|
2020-05-13 12:55:07 +00:00
|
|
|
# db_port=1234
|