mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 12:06:25 +00:00
fix(dashd): turn on indexes
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
txindex=1
|
||||
addressindex=1
|
||||
timestampindex=1
|
||||
spentindex=1
|
||||
|
||||
[main]
|
||||
rpcuser=RPCUSER_MAIN
|
||||
rpcpassword=RPCPASS_MAIN
|
||||
@@ -21,6 +26,7 @@ rpcuser=RPCUSER_REGTEST
|
||||
rpcpassword=RPCPASS_REGTEST
|
||||
bind=127.0.0.1:19899
|
||||
rpcbind=127.0.0.1:19898
|
||||
rpcallowip=127.0.0.1/16
|
||||
zmqpubrawtx=tcp://127.0.0.1:18809
|
||||
zmqpubrawtxlock=tcp://127.0.0.1:18809
|
||||
|
||||
|
||||
+42
-2
@@ -79,8 +79,12 @@ dashd \
|
||||
-conf="$HOME/.dashcore/dash.conf" \
|
||||
-settings="$HOME/.dashcore/settings.json" \
|
||||
-walletdir="$HOME/.dashcore/wallets/" \
|
||||
-datadir="/mnt/100gb/dashcore/_data/"
|
||||
-blocksdir="/mnt/100gb/dashcore/_caches/"
|
||||
-datadir="/mnt/100gb/dashcore/_data/" \
|
||||
-blocksdir="/mnt/100gb/dashcore/_caches/" \
|
||||
-addressindex=1 \
|
||||
-timestampindex=1 \
|
||||
-txindex=1 \
|
||||
-spentindex=1
|
||||
```
|
||||
|
||||
**Warning**: killing the process with ctrl+c before the first full sync may
|
||||
@@ -109,6 +113,42 @@ For **testnet**:
|
||||
- 1 vCPU
|
||||
- 1 hour to sync and index in ideal conditions
|
||||
|
||||
### How to configure `dash.conf`
|
||||
|
||||
You can set options for `main`, `test`, and `regtest`.
|
||||
|
||||
If you intend to use the various RPCs you must enable indexes.
|
||||
|
||||
```ini
|
||||
txindex=1
|
||||
addressindex=1
|
||||
timestampindex=1
|
||||
spentindex=1
|
||||
|
||||
[main]
|
||||
rpcuser=alice
|
||||
rpcpassword=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
bind=127.0.0.1:9999
|
||||
rpcbind=127.0.0.1:9998
|
||||
rpcallowip=127.0.0.1/16
|
||||
zmqpubrawtx=tcp://127.0.0.1:28332
|
||||
zmqpubrawtxlock=tcp://127.0.0.1:28332
|
||||
|
||||
[test]
|
||||
rpcuser=alice-test
|
||||
rpcpassword=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
|
||||
bind=127.0.0.1:19999
|
||||
rpcbind=127.0.0.1:19998
|
||||
rpcallowip=127.0.0.1/16
|
||||
zmqpubrawtx=tcp://127.0.0.1:18009
|
||||
zmqpubrawtxlock=tcp://127.0.0.1:18009
|
||||
```
|
||||
|
||||
See also:
|
||||
|
||||
- [dash: examples/dash.conf](https://github.com/dashpay/dash/blob/549e347b742cb4dc63807a292729e658218d7d0f/contrib/debian/examples/dash.conf#L2)
|
||||
- [dashd: Indexing Options](https://docs.dash.org/projects/core/en/19.0.0/docs/dashcore/wallet-arguments-and-commands-dashd.html#indexing-options)
|
||||
|
||||
### How to Separate Caches from Data
|
||||
|
||||
You can make your data much safer by separating it from the caches you may need
|
||||
|
||||
Reference in New Issue
Block a user