Continuation of "How to sync testnet of BCHN"
sugawara0620 opened this issue · comments
Hi,
I try to test my application with Bitcoin ABC 0.22.6 (BCHN Network).
I expect this sync to testnet of BCHN.
But this sync to testnet of BCHA(https://texplorer.bitcoincash.org/).
I use this.
https://download.bitcoinabc.org/bchn/0.22.6/linux/bitcoin-abc-0.22.6-x86_64-linux-gnu.tar.gz
And here is a start of the logs.
2020-11-16T02:09:56Z Bitcoin ABC version v0.22.6-fb3ee2224 (release build)
2020-11-16T02:09:56Z Checkpoints will be verified.
2020-11-16T02:09:56Z Assuming ancestors of block 00000000000000830172be2a72b3f82958ed326e18319833931423cf1fb855d9 have valid signatures.
2020-11-16T02:09:56Z Setting nMinimumChainWork=00000000000000000000000000000000000000000000006e40c4825ce5884b99
2020-11-16T02:09:56Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2020-11-16T02:09:56Z Using RdSeed as additional entropy source
2020-11-16T02:09:56Z Using RdRand as an additional entropy source
2020-11-16T02:09:56Z Default data directory /home/app/.bitcoin
2020-11-16T02:09:56Z Using data directory /home/app/.bitcoin/testnet3
2020-11-16T02:09:56Z Config file: /home/app/.bitcoin/bitcoin.conf
2020-11-16T02:09:56Z Config file arg: datadir="/home/app/.bitcoin"
2020-11-16T02:09:56Z Config file arg: printtoconsole="1"
2020-11-16T02:09:56Z Config file arg: rest="1"
2020-11-16T02:09:56Z Config file arg: rpcallowip="127.0.0.1"
2020-11-16T02:09:56Z Config file arg: rpcauth=****
2020-11-16T02:09:56Z Config file arg: server="1"
2020-11-16T02:09:56Z Config file arg: testnet="3"
2020-11-16T02:09:56Z Config file arg: txindex="1"
2020-11-16T02:09:56Z Config file arg: [test] rpcbind=****
2020-11-16T02:09:56Z Config file arg: [test] rpcport="18332"
2020-11-16T02:09:56Z Command-line arg: datadir="/home/app/.bitcoin"
Is this specification or failure on configuration?
Thanks.
Now I find this message.
$ bitcoind -help
Bitcoin ABC version v0.22.6-fb3ee2224 (Bitcoin Cash Node network)
Usage: bitcoind [options] Start Bitcoin ABC
00000000289d6afe7e55fe62a7b21b5d0d5481189bb6d9e8dad5e194078e434a
was not accepted although it's first block of the fork on BCHN network.
2020-11-17T10:04:04Z bad bits after height: 1421483
2020-11-17T10:04:04Z ERROR: AcceptBlockHeader: Consensus::ContextualCheckBlockHeader: 00000000289d6afe7e55fe62a7b21b5d0d5481189bb6d9e8dad5e194078e434a, bad-diffbits, incorrect proof of work
2020-11-17T10:04:04Z Misbehaving: 193.135.10.144:18333 peer=2 (0 -> 100) reason: invalid header received BAN THRESHOLD EXCEEDED
2020-11-17T10:04:04Z Disconnecting and discouraging peer 193.135.10.144:18333!
Run reconsiderblock
on the block just before the one you listed.
Is this specification or failure on configuration?
Yes, this is the expected behavior. Your testnet node seems to be operating normally.
The testnet for BCHN version of ABC is at texplorer.bitcoincash.org
It is the same as the BCHA testnet, since the two networks operate almost exactly the same (other than the coinbase rule - which is disabled on testnet)
Thanks. I got it.