Legacy blockchain after upgrade to SegWit

2

Let's suppose I run a legacy (non-SegWit) node after SegWit gets activated. My blockchain doesn't store any SegWit data. What happens when I upgrade my node? Will I have to re-download the blockchain to include the missing SegWit data?

Paul

Posted 2017-08-11T15:27:11.797

Reputation: 361

Answers

3

Indeed.

Bitcoin Core will, after upgrade to a SegWit-compatible version (0.13.1 and later), rewind to the latest non-SegWit block and then fetch the later blocks again.

Pieter Wuille

Posted 2017-08-11T15:27:11.797

Reputation: 54 032

Will it fetch only the witness data or the entire block?sanket1729 2017-08-30T03:03:01.687

The entire block. There is no P2P protocol for downloading just witnesses.Pieter Wuille 2017-08-30T03:17:54.627