TurtleCoin 分叉:如何为矿工定义地址前缀?

TurtleCoin fork: how to define addresses prefix for miner?

我分叉了 TurtleCoin 并自定义了一些配置,包括地址前缀。我使用 Visual Studio 在 Windows 上编译了它。 Walletdaemon 工作正常,但 miner 不工作。当我启动矿工并添加地址时收到此消息:

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.

我在哪里可以为 miner 定义地址前缀?

我遵循了这些步骤:https://github.com/turtlecoin/turtlecoin#windows

有趣的是,查看代码库这个错误被称为 ADDRESS_WRONG_PREFIX。这是由挖掘代码调用的函数 validateAddresses 返回的,here.

此函数只是检查前缀是否匹配 WalletConfig::addressPrefix,这意味着只要您在位于 here 的钱包配置中更改了地址前缀。应该可以。希望对您有所帮助。