Developers Forum for XinFin XDC Network

Discussion on: [Solved] XDC mainnet docker container restarting loop

s4njk4n profile image
s4njk4n Author

Just adding further information with the solution. The --enable-0x-prefix flag works when placed at the start of the XDC startup command in

Here is a working example:
XDC --enable-0x-prefix --ethstats ${netstats} --bootnodes ${bootnodes} --syncmode ${NODE_TYPE} --datadir /work/xdcchain --networkid 50 -port 30303 --rpc --rpccorsdomain "" --rpcaddr --rpcport 8545 --rpcapi admin,db,eth,debug,net,shh,txpool,personal,web3,XDPoS --rpcvhosts "" --ws --wsaddr="" --wsorigins "*" --wsport 8546 --wsapi admin,db,eth,debug,net,shh,txpool,personal,web3,XDPoS --unlock "${wallet}" --password /work/.pwd --mine --gasprice "1" --targetgaslimit "420000000" --verbosity 3 2>&1 >>/work/xdcchain/xdc.log | tee -a /work/xdcchain/xdc.log