Can I use run Bitcoin Core in regtest mode in v0.8.1?

0

I'm trying to run bitcoin-core v0.8.1 in regtest mode, but it doesn't work. When placing regtest=1 in bitcoin.conf it starts to sync the mainnet. I've not seen anything related in the code.

So I was wondering if there's any configuration different to run regtest mode in that version different from more recent ones.

When was regtest mode added ?

Carlos GC

Posted 2017-11-27T11:35:49.853

Reputation: 3

May I ask why you're interested in using such an old version? Depending on your goal, another approach may be better.Pieter Wuille 2017-11-28T00:40:08.773

Sure! I'm making some tests with the disabled opcodes re-enabling them again. And realised that the 0.8.1 was the last version where them were coded, so it was easy to "enable" them. I just coded the bitwise logic ones in the current version, but the arithmetic ones were difficult, so i tried to run the 0.8.1.Carlos GC 2017-11-28T21:08:19.710

Answers

0

Regtest mode was introduced in version 0.9.0, via pull request #2632. That is why it doesn't work in 0.8.1, as you noticed. There is no other option to run regtest in that version, although testnet3 is supported by that version so you should still be able to use that if it suits your needs. Otherwise just upgrade to a newer version which will contain performance improvements, bugfixes and newer feature support :)

MeshCollider

Posted 2017-11-27T11:35:49.853

Reputation: 8 735

Oh.. okay!

I was trying to do some tests with some code that was removed from the core, and that was the newest version including the code.

For other tests i'm using v0.15.1 in regtest and testnet too, depending the necessities.

Thanks! – Carlos GC 2017-11-27T12:18:36.830