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 ?

  • May I ask why you're interested in using such an old version? Depending on your goal, another approach may be better. – Pieter Wuille Nov 28 '17 at 0:40
  • 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 Nov 28 '17 at 21:08

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 :)

| improve this answer | |
  • 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 Nov 27 '17 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.