Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
6 years, 1 month ago
This question already has an answer here:
6 years ago.
I'm trying to understand how my node would interperet a
SegWit transaction if I do not upgrade.
Even if I do not upgrade, I should be receiving the exact same block data as everyone else, correct?
If so, let's say my node receives a block that contains a segwit transaction (i.e. one with a
[marker][flag] and some
[witness] data). I'm not sure how my node is going to interpret the data...
, does my node read this as being 0 inputs and 1 output, and still consider this transaction valid?
If so, how can it go about recreating the
TXID from the
[version][txins][txouts][locktime] if the transaction data is of the format
Basically, I don't understand how my node could receive transactions with
[witness] data and still consider those blocks to be valid.
Apr 26, 2017 at 19:22
2,878 1 1 gold badge 17 17 silver badges 41 41 bronze badges
Segwit node will convert transactions and blocks "on-the-fly" while sending them to your non-upgraded node. You will see anyone-can-spend outputs and redeems from such outputs. You will not see any additional flags, witness data and any other segwit stuff.
Apr 26, 2017 at 20:22
6,724 1 1 gold badge 20 20 silver badges 32 32 bronze badges
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only