【问题标题】:Coinpunk / Bitcoind / OSX Running on local machine errorCoinpunk / Bitcoind / OSX 在本地机器上运行错误
【发布时间】:2014-01-11 12:36:58
【问题描述】:

美好的一天。 bitcoind、coinpunk和redis的安装过程和配置很顺利,根据这个指南:https://github.com/kyledrake/coinpunk/blob/master/docs/INSTALL-OSX.md 毕竟我是通过 OSX 终端启动所有程序:

$bitcoind &
$cd coinpunk
$redis-server
$node start.js

没有错误。然后我转到我的 localhost:8080,Coinpunk 成功启动。但是在尝试注册后,为了创建新帐户和钱包,我得到了错误:

从比特币服务器收到一个无法识别的错误

以及终端消息:

bitcoind error 500: {"code":-5,"message":"Invalid Bitcoin address"}
bitcoind error 500: {"code":-5,"message":"Invalid Bitcoin address"}

我检查了我所有的配置文件是否匹配 npcuser 和 npcpassword。不知道该怎么办。

【问题讨论】:

    标签: macos bitcoin bitcoind


    【解决方案1】:

    您必须检查coinpunk/config.jsoncoinpunk/public/config.json 中的两个配置文件是否已针对测试网或生产环境进行了配置。

    1. coinpunk/config.json
      • 测试网:"testnet": true,
      • 对于生产,如果上面的行存在,请删除它。
    2. coinpunk/public/config.json
      • 测试网:"network": "testnet",
      • 用于生产:"network": "prod",

    如果这不能解决问题。你不能混合来自测试网和生产的 redis 数据库,所以如果你已经使用了测试网并且想要切换到生产,你应该删除/移动你的旧 dump.rdb。在 Linux 中,它位于 /var/lib/redis/dump.rdb 不确定 OSX。

    来源:https://github.com/kyledrake/coinpunk/issues/87

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-24
      • 1970-01-01
      • 2020-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多