Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: beep_boop on October 08, 2017, 06:02:59 PM



Title: [SOLVED] Node error : Assertion 'nIds != nNew' failed
Post by: beep_boop on October 08, 2017, 06:02:59 PM
Bitcoin client version: 0.15.0
Operating system: Raspian, kernel 4.9
Hardware: Raspberry Pi 3

I'm getting a new node set up and encountering an error I've never seen before. When I go to start up my node from the command line (I don't have the GUI installed) I get an error. The meaningful part seems to be: Assertion 'nIds != nNew' failed

I found this line in the bitcoin code: Assert(nIds != nNew); // this means nNew was wrong, oh ow
The comment isn't very helpful.

The full command line error output is: bitcoind: addrman.h.320: void CAddrMan::Serialize(Stream&)CAutoFile]: Assertion 'nIds != nNew' failed

If anyone knows what's going on or knows a solution I'd appreciate some advice!



Title: Re: Node error : Assertion 'nIds != nNew' failed
Post by: achow101 on October 08, 2017, 07:45:04 PM
Delete the files peers.dat and banlist.dat which can be found in the Bitcoin Core datadir. Then start Bitcoin Core.


Title: Re: Node error : Assertion 'nIds != nNew' failed
Post by: beep_boop on October 08, 2017, 08:01:24 PM

Delete the files peers.dat and banlist.dat which can be found in the Bitcoin Core datadir. Then start Bitcoin Core.

That did it, thank you!