What was the number of the block in which SegWit got activated? And first transaction?

2

1

It was definitely on August 24th 2017, but not sure about the block number. Many sources reference block 481,822; but others state 481,824.

Also, even if this was the first block to allow segwit transactions, what was the first very block that contained one of them?

knocte

Posted 2017-10-28T07:00:25.397

Reputation: 1 531

I believe the first transaction is in block 481825, because this is the block where my parser fails.Jus12 2017-12-15T11:30:19.167

Answers

1

This is a very old question but probably someone else needs to know the same:

SegWit was activated in block 481824 and that block has two p2wpkh txs:

dfcec48bb8491856c353306ab5febeb7e99e4d783eedf3de98f3ee0812b92bad in block 0000000000000000001c8018d9cb3b742ef25114f27563e3fc4a1902167f9893
f91d0a8a78462bc59398f2c5d7a84fcff491c26ba54c4833478b202796c8aafd in block 0000000000000000001c8018d9cb3b742ef25114f27563e3fc4a1902167f9893

I have to run my script against testnet in order to find the best p2wpk tx.

lontivero

Posted 2017-10-28T07:00:25.397

Reputation: 121

1So, block 481824 is the first block that could contain a SwgWit transaction according to consensus or is it just the first block that actually does?Willtech 2018-02-24T00:41:53.483

it is the first block that actually does. There is no mention of any specify block height in the segwit activation mechanism, there is a start time and a timeout time (a time frame) when it was possible to activate it. Take a look at the code https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L101

lontivero 2018-02-24T04:56:00.770

I will try and find out exactly.Willtech 2018-02-24T06:49:24.087

According to this Question it was indeed block 481824.

Willtech 2018-02-24T06:54:27.923