I forked TurtleCoin and customized some config including addresses pefix. I compiled it on Windows using Visual Studio. Wallet
and daemon
work fine but miner
do not work. When I start miner and add address get this message:
Address is not valid: The address does not have the correct prefix corresponding to this coin - it appears to be an address for another cryptocurrency.
Where can I define addresses pefix for miner
?
I followed these steps: https://github.com/turtlecoin/turtlecoin#windows
Interesting, looking over the codebase this error is referred to as ADDRESS_WRONG_PREFIX
. Which is returned by an the function validateAddresses
which the mining code calls, here.
This function simply checks that the prefix matches WalletConfig::addressPrefix
, meaning that as long as you changed the address prefix in the wallet config located here. It should work.. I hope this is helpful.