Hey
I have been trying various options without success yet.
I pooled down my server, and rebuild it. install fresh wordpress and start all at fresh.
re-install bitcoin following the instruction at https://bitcoin.org/en/full-node#ubuntu-1610 to be sure all if from the source. But now, the plugin displays the following error
Bitcoin and Altcoin Wallets error
The Bitcoin RPC API cannot be contacted.
You need to make sure that your Bitcoin RPC settings are correctly configured.
Then edit your .conf file and append the following:
server=1
rpcallowip=127.0.0.1/8
rpcallowip=35.185.xx.xx/24
rpcport=8332
walletnotify=curl -s https://domain.com/wallets/api2/notify/BTC/wallet/%s >/dev/null
blocknotify=curl -s https://domain.com/wallets/api2/notify/BTC/block/%s >/dev/null
rpcauth=rpcuser:c9a055bc6b9d0b529366da7$fa3d314c07bd6dd6948001de0e9c2d4f2ddb08b8554c687c4348a8dd9951500a
Finally, start the daemon.
You are advised to not dismiss this error manually. It will stop showing once the daemon can be contacted.
I ran the following on my server
curl --verbose --user rpcuser:rpcpassword --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getinfo","params":[]}' -H 'content-type:text/plain;' https:// 35.185.xx.xx:8332/
With the following error
* Could not resolve host: http
* Closing connection 0
curl: (6) Could not resolve host: http
* Trying 35.185.87.30…
* connect to 35.185.87.30 port 8332 failed: Connection refused
* Failed to connect to 35.185.87.30 port 8332: Connection refused
* Closing connection 1
curl: (7) Failed to connect to 35.185.87.30 port 8332: Connection refused
I checked my firewall, and it is disabled, I went to my googl vm and enable all the necessary ports, 8332, 24 and even 8 to be sure, still yet, no result.
I later enabled firewall on the server, enable all the neccessary ports as well, without good result.
I also, remove rpcuser and rpcpassword from my bitcoin.conf file and also from the plugin without result.
Checking the status of my bitcoin node with bitcoin-cli getblock
and it returned
{
“walletname”: “wallet.dat”,
“walletversion”: 159900,
“balance”: 0.00000000,
“unconfirmed_balance”: 0.00000000,
“immature_balance”: 0.00000000,
“txcount”: 0,
“keypoololdest”: 1522230894,
“keypoolsize”: 1000,
“keypoolsize_hd_internal”: 1000,
“paytxfee”: 0.00000000,
“hdmasterkeyid”: “7b3cfa58f367f875f68af350ceee3ddfe9f28597”
}
Which I believe it means working
Then tried bitcoin-cli getblockchaininfo
which also returned
{
“chain”: “main”,
“blocks”: 469482,
“headers”: 515677,
“bestblockhash”: “0000000000000000004b0ae1dad098873538f4ecb19ccd3f39592fd446b192e8”,
“difficulty”: 595921917085.416,
“mediantime”: 1496463384,
“verificationprogress”: 0.727302937618417,
“initialblockdownload”: true,
“chainwork”: “0000000000000000000000000000000000000000005c9eef8760f1167e431811”,
“size_on_disk”: 135997343540,
“pruned”: false,
“softforks”: [
{
“id”: “bip34”,
“version”: 2,
“reject”: {
“status”: true
}
},
{
“id”: “bip66”,
“version”: 3,
“reject”: {
“status”: true
}
},
{
“id”: “bip65”,
“version”: 4,
“reject”: {
“status”: true
}
}
],
“bip9_softforks”: {
“csv”: {
“status”: “active”,
“startTime”: 1462060800,
“timeout”: 1493596800,
“since”: 419328
},
“segwit”: {
“status”: “started”,
“bit”: 1,
“startTime”: 1479168000,
“timeout”: 1510704000,
“since”: 439488,
“statistics”: {
“period”: 2016,
“threshold”: 1916,
“elapsed”: 1771,
“count”: 547,
“possible”: false
}
}
},
“warnings”: “”
}
Which I believe that the bitcoin node is working as expected.