Help needed with upgrading bitcoin ABC

0

I'm running my own bitcoin cash node. However, I'm getting stuck on the block where the network hard forked for the May 15th 32mb blocksize update. I believe the version of bitcoin abc I have installed is out of date, hence why it is stuck at block 530361. Here is the version with getinfo:

{
  "version": 160200,
  "protocolversion": 70015,
}

Is my node out of date? How can I upgrade my bitcoin abc node?

I tried:

sudo apt-get update
sudo apt-get upgrade

but nothing changes in the version or protocol version with getinfo. What should I do?

2523454

Posted 2018-06-19T18:22:42.493

Reputation: 131

How did you install bitcoin-abc in the first place?Nate Eldredge 2018-06-19T18:34:46.680

@NateEldredge I forgot how I originally installed it, awhile ago.2523454 2018-06-19T18:38:30.827

you can try apt list --installed | grep bitcoin to see if it was installed by apt-get. If not, then apt-get upgrade won't work. chances are you downloaded from https://download.bitcoinabc.org/ or built it from source. you should back up your wallet data file before any upgrade though.

Will Gu 2018-06-19T18:46:03.247

Answers

1

Yes, you need to upgrade. You have version 0.16.2, and the 32MB block support was added in 0.17.0. The latest release version is 0.17.2.

Your apt-get commands will only work if you originally installed bitcoin-abc from the apt package repository. It sounds like you didn't.

You can check if you installed from a package at all with dpkg -l bitcoinabc. If so then you can remove the package with dpkg -r bitcoinabc. Otherwise you can figure out where the bitcoin-abc binaries are installed (using which or similar) and delete them manually. Then install a new copy from scratch, either from the above-linked repository or any other way you choose. (But this time make a note of what you did!)

Nate Eldredge

Posted 2018-06-19T18:22:42.493

Reputation: 21 420

dpkg -l bitcoinabc finds no packages, so yes I believe I installed from source. I want to install new copy from the repo, so I added ppa:bitcoin-abc/ppa. How can I specify the package I want though? apt-get install (name), but it says not found for every name I try. (already ran apt-get update after adding the repo)2523454 2018-06-19T18:59:52.813

Should just be called bitcoinabc, as far as I can tell.Nate Eldredge 2018-06-19T19:22:37.157

@2523454: What Linux distribution / version is this?Nate Eldredge 2018-06-19T19:24:32.167

0.14.04, I'm trying 0.16 now2523454 2018-06-19T19:35:41.720

No package found when running apt-get install bitcoinabc on both versions.2523454 2018-06-19T19:36:54.467

Hm. What exactly got added to /etc/apt/sources.list.d? When you did apt-get update, did you see it fetching the Packages file for the repo? Any error messages?Nate Eldredge 2018-06-19T19:41:33.320

Taking a look at sudo nano /etc/apt/sources.list, I see nothing bitcoin related. Here is my console after adding the repo: https://imgur.com/a/tIhYyx5

2523454 2018-06-19T19:50:18.287

I have updated by manually compiling and installing the latest source code.2523454 2018-06-19T20:21:09.700

add-apt-repository normally adds a new file in the /etc/apt/sources.list.d subdirectory instead of modifying /etc/apt/sources.list. Anyway, glad you got it working.Nate Eldredge 2018-06-19T21:02:28.820