[email protected]
to [email protected]
This major upgrade includes changes to indexes, API methods and services. Please review below details before upgrading.
Indexes include more information and are now also faster. Because of this a reindex will be necessary when upgrading as the address and database indexes are now a part of raptoreumd with three new raptor.conf
options:
-addressindex
-timestampindex
-spentindex
To start reindexing add reindex=1
during the first startup only.
- The
raptor.conf
file in will need to be updated to include additional indexes (see below). - The
datadir
option is now a part ofraptoreumd
spawn configuration, and there is a new option to connect to multiple raptoreumd processes (Please see Raptoreum Service Docs for more details). The servicesdb
andaddress
are now a part of theraptoreumd
service. Here is how to updatertmcore-node.json
configuration options:
Before:
{
"datadir": "/home/<username>/.raptor",
"network": "livenet",
"port": 3001,
"services": [
"address",
"raptoreumd",
"db",
"web"
]
}
After:
{
"network": "livenet",
"port": 3001,
"services": [
"raptoreumd",
"web"
],
"servicesConfig": {
"raptoreumd": {
"spawn": {
"datadir": "/home/<username>/.raptor",
"exec": "/home/<username>/rtmcore-node/bin/raptoreumd"
}
}
}
}
It will also be necessary to update raptor.conf
settings, to include these fields:
server=1
whitelist=127.0.0.1
txindex=1
addressindex=1
timestampindex=1
spentindex=1
zmqpubrawtx=tcp://127.0.0.1:<port>
zmqpubhashblock=tcp://127.0.0.1:<port>
rpcallowip=127.0.0.1
rpcuser=<user>
rpcpassword=<password>
Important: Once changes have been made you'll also need to add the reindex=1
option only for the first startup to regenerate the indexes. Once this is complete you should be able to remove the rtmcore-node.db
directory with the old indexes.
- Many API methods that were a part of the
db
andaddress
services are now a part of theraptoreumd
service. Please see Raptoreum Service Docs for more details. - The
db
andaddress
services are deprecated, most of the functionality still exists. Any services that were extending indexes with thedb
service, will need to manage chain state itself, or build the indexes withinraptoreumd
.