Bitcoin-abc节点似乎未连接到bch测试网

时间:2019-05-30 13:16:48

标签: bitcoin-testnet

我尝试了最新版本(v.0.19.6)和v0.18.5,但两者似乎都与bitcoin.com testnet资源管理器中显示的视图不同,而bitcoin-abc的最新高度始终比当前高100块显示在bitcoin.com资源管理器上

例如,以下是我使用来自bitcoin-abc的rpc调用得到的高度为1306255的块的信息:

{
    "bits": "1b3037a6",
    "chainwork": "00000000000000000000000000000000000000000000004c90a4d396ee6583d7",
    "confirmations": 57,
    "difficulty": 1359,
    "hash": "00000000002b9e83a7f55211bdb847b58ad7f37fae879478f9e32f8e75e6c9b4",
    "height": 1306255,
    "mediantime": 1559185963,
    "merkleroot": "088f104ca41a7ca4f83d6de267a85724dc0283aefc27d7ae978badcd571d40c0",
    "nextblockhash": "0000000000066ba2e8a751149138dc3a1be8168ea85fab1bc398ff3fbb9307e2",
    "nonce": 1464894606,
    "previousblockhash": "000000000020127e583624c682c96efb50cd56fc189928de917faba96a9c3d40",
    "size": 201,
    "time": 1559188014,
    "tx": [{
        "blockhash": "00000000002b9e83a7f55211bdb847b58ad7f37fae879478f9e32f8e75e6c9b4",
        "blocktime": 1559188014,
        "confirmations": 57,
        "hash": "088f104ca41a7ca4f83d6de267a85724dc0283aefc27d7ae978badcd571d40c0",
        "hex": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff23038fee1300fefc980800fefb2308000963676d696e6572343208040000000000000000ffffffff01c817a804000000001976a9146db2250c113ad124a60e0a522faef0b7f0c8b0ed88ac00000000",
        "locktime": 0,
        "size": 120,
        "time": 1559188014,
        "txid": "088f104ca41a7ca4f83d6de267a85724dc0283aefc27d7ae978badcd571d40c0",
        "version": 1,
        "vin": [{
            "sequence": 4294967295
        }],
        "vout": [{
            "addressValid": true,
            "n": 0,
            "scriptPubKey": {
                "addresses": ["bchtest:qpkmyfgvzyadzf9xpc99ytaw7zmlpj9sa5qrn24u9t"],
                "asm": "OP_DUP OP_HASH160 6db2250c113ad124a60e0a522faef0b7f0c8b0ed OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a9146db2250c113ad124a60e0a522faef0b7f0c8b0ed88ac",
                "reqSigs": 1,
                "type": "pubkeyhash"
            },
            "value": 0.78125
        }]
    }],
    "version": 536870912,
    "versionHex": "20000000"
}

而bitcoin.com在相同高度1306255上显示以下内容(即使块哈希不同): https://explorer.bitcoin.com/tbch/block/0000000000000340762ba9648a982a18442ff7423e787d4115da323a399dc57b

我不确定是什么原因引起的,下面是我的conf:

server=1
daemon=1
txindex=1
logtimestamps=1

rpcuser=xxx
rpcpassword=xxxx
rpcport=18332
rpcallowip=0.0.0.0/0

datacarriersize=80

regtest=0
testnet=1

然后我使用以下cmd启动bitcoin-abc节点:

bin/bitcoind -conf=/data/xxx-bch-test/bitcoin.conf -datadir=/data/xxx-bch-test/testnet -testnet &

,我注意到debug.log中有一个日志,不确定是否与之相关:

2019-05-30T11:33:56Z ERROR: AcceptBlockHeader: block 000000000000003a3fb0ca1611035346a803e0344d6bb2eb4f5ea75f4dc2291c is marked invalid
2019-05-30T11:33:56Z ERROR: invalid header received

但是在bitcoin.com资源管理器中,哈希看起来不错

1 个答案:

答案 0 :(得分:0)

使用最新的0.19.6重新生成所有对我有用的块