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 communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Segwit nodes know about the move of the witnesses to another part of the transaction block.
What would happen when they receive a transaction between two legacy nodes, knowing that they will build it following the "old" format, with a txid.
While segwit nodes are looking for a wtxid and witnesses (scriptsig and redeem script) being on another place.
Also, how would the miners consider this particular transaction, currently ?
Segwit did not change the rules for existing output types. The non-segwit standard output types P2PKH (Pay to Public Key Hash) and P2SH (Pay to Script Hash) still work exactly as they always have. Legacy nodes that don't understand segwit will only create addresses for non-segwit output types, and thus any transactions created by legacy nodes will never include any witness data.
Naturally, the more modern segwit nodes are backwards-compatible and can read non-segwit transactions just fine. Only transactions that spend segwit outputs include witness data.
Segwit nodes can recognise legacy transaction types and will handle them in the traditional way.
A legacy node would create a transaction that omits the optional segwit flag. When this transaction data is received by a segwit node, it can see that the segwit flag is not present and therefore knows to treat it using the old rules.
See What are the parts of a Bitcoin transaction in segwit format? for details of Segwit flag.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments