Skip to content

Instantly share code, notes, and snippets.

@t4sk
Created December 29, 2016 21:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t4sk/0bc6b35a26998b9007d68f376a852636 to your computer and use it in GitHub Desktop.
Save t4sk/0bc6b35a26998b9007d68f376a852636 to your computer and use it in GitHub Desktop.
How to activate segwit on regtest

How to activate segwit on regtest

Start bitcoind

> bitcoind -regtest -daemon

Generate block chain

> bitcoin-cli -regtest generate 432

Check segwit is activated

> bitcoin-cli -regtest getblockchaininfo
{
  ...
  "bip9_softforks": {
    ...
    "segwit": {
      "status": "active",
      "startTime": 0,
      "timeout": 999999999999,
      "since": 432
    }
  }
 }

Notice"status": "active"under "segwit"

References

Segregated Witness Hints For Developers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment