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
If I'm right, segwit TxIDs are composed of the SHA^2(256) hash of the non-segwit data of a transaction. But, how does another node use the TxID to obtain information about the transaction such as the address information.
Am I right in saying that the node with the TxID will send it to a full-node which matches the desired TxID with the TxIDs that it stores with the relevant information which is then sent back to the node? If so, does that mean full nodes store the TxID and the transaction information?
Yes, all txid
s are calculated only from non-witness data. While many nodes have a complete copy of the blockchain (which does contain all transactions), most nodes do not have a full transaction index. It is generally not possible to request a transaction per its txid
via the P2P protocol.
via https://developer.bitcoin.org/reference/p2p_networking.html
Nodes will advertise new transactions to their peers once per inv
(inventory) messages. Only the notified peers can then request announced transactions per getdata
messages, which prompts tx
message responses. Nodes will not serve getdata
requests unless they recently announced the transaction to the requesting peer for privacy reasons.
In absence of a prior announcement, a node can only learn about a transaction from a peer by requesting the block it was included in.
You can read more about the P2P messages for example here: https://developer.bitcoin.org/reference/p2p_networking.html
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