Configurations
Pastel makes use of various configuration files to start & then keep the services functioning properly.
Below is the list of configuration files along with description and samples.
This file is used by pasteld for simple node settings. Its default location is pastel config directory. Here's a sample file
server=1
listen=1
rpcuser=5pa4HxyM
rpcpassword=q20stoBEctqQN2o
rpcport=19932
testnet=1
addnode=18.112.12.211
This file is used by pasteld for masternode specific settings
{
"my-masternode-name": {
"extAddress": "1.23.456.789:14444",
"extCfg": "",
"extKey": "jXYj8SueWC7q19cknwWVykjZZR7boK8BF1v7abqpf7Nn4CJqdQL4wPwZJr9XNpynezcJ2Vw3c7L3G5mQoVkxMp",
"extP2P": "1.23.456.789:14445",
"mnAddress": "1.23.456.789:19933",
"mnPrivKey": "93Tyo5C6K7wpoS6EvaKVjmC84LdcDTq1gkFw2c4ioJ9CLB2GaCi",
"outIndex": "1",
"txid": "c8a3e1ef635f692eb3bb079bcf9eff479abe17ccb2b1936335f9229eef8b75cb"
}
}
As the name implies, this is used by supernode service
log-config:
log-file: # e.g: logs.json - by default, logs are only written to stdout
log-compress: true # compress log or not
log-max-size-mb: 100 # maximum log file size before rotate to new file
log-max-age-days: 3 # maximum duration to retain old log files based on the timestamp encoded in their filename
log-max-backups: 10 # set the maximum number of old log files to retain
log-levels: # log level of individual files
common: debug
p2p: debug
metadb: info
dd: info
temp-dir:
work-dir:
rq-files-dir:
dd-service-dir:
node:
pastel_id: <<pastel_id>>
pass_phrase: <<passphrase>>
server:
listen_addresses: "0.0.0.0"
port: 14444
p2p:
listen_address: "0.0.0.0"
port: 14445
data_dir: "p2p-data"
raptorq:
host: "rq-server-1"
port: 50051
dd-server:
host: "dd-server-1"
port: 50052
dd-temp-file-dir: "dd-server"
As the name implies, this is used by walletnode service. Its default location is pastel config directory.
log-config:
log-level: info
log-file: /home/user/.pastel/walletnode.log
log-compress: true
log-max-size-mb: 100
log-max-age-days: 3
log-max-backups: 10
quiet: false
temp-dir: /home/user/.pastel/tmp
work-dir: /home/user/.pastel
rq-files-dir: /home/user/.pastel/rqfiles
node:
api:
hostname: "localhost"
port: 8080
burn_address: <<burn_address>>
raptorq:
host: "localhost"
port: 50051