Author

Topic: bash-script for users with dynamic IP to restart bitcoin (Read 1736 times)

donator
Activity: 2772
Merit: 1019
The post is old, and I've not seen this issue since a quite long time.
Guess it has been fixed in most recent client releases.

Ehm, I forgot to give you the deserved credit for the script, looks very nice Smiley

Thanks!

And: the issue (https://github.com/bitcoin/bitcoin/issues#issue/48) is not solved. There's new comments now.

BlueMatt looked into it and we chatted a bit yesterday on #bitcoin-dev. It seems it will need some serious debugging. I'm trying to help him as much as I can (testing).
member
Activity: 112
Merit: 10
Yesterday I was disconnected from the internet for a couple of hours and the Bitcoin gui still showed 15 connections and my miner was still buzzing away.  Huh

Well the miner will simply continue to process the current work it has been given until it either finishes it or is told to stop.
member
Activity: 67
Merit: 10
Stop trying to steal my account, thanks.
The post is old, and I've not seen this issue since a quite long time.
Guess it has been fixed in most recent client releases.

Ehm, I forgot to give you the deserved credit for the script, looks very nice Smiley
newbie
Activity: 18
Merit: 0
Yesterday I was disconnected from the internet for a couple of hours and the Bitcoin gui still showed 15 connections and my miner was still buzzing away.  Huh
member
Activity: 67
Merit: 10
Stop trying to steal my account, thanks.
The post is old, and I've not seen this issue since a quite long time.
Guess it has been fixed in most recent client releases.
donator
Activity: 2772
Merit: 1019
I wrote a little bash a while back, because I'm on a dynamic ip connection and bitcoin doesn't behave so nicely with changing IPs. (see https://github.com/bitcoin/bitcoin/issues#issue/48 for more info (while the gui still displays connections, the node may in fact be disconnected)).
Since I still wanted to mine solo, I wrote this script.

I've been using it for 6 weeks now, have been mining solo using it for 2 weeks now without problem and I thought it's ripe for sharing:

http://pastebin.com/tFJwFwns

It works by comparing an "official blockcount" (e.g. from blockexplorer.com) with the local one from rpc interface.

To use it, you should check/edit some variables at the beginning of the script: BITCOIN_BIN, PING_HOST and OFFICIAL_URL
Then just go ahead and run it.
If you want, you can also adjust some timing variables.

Feedback is welcome, also symbolic (0.01 BTC or so) donations to the address in my signature are of course appreciated and also good for your karma Wink
Jump to: