Bitcoin Forum
January 26, 2020, 02:16:50 AM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: SegWit compatibility  (Read 87 times)
efabe9f9-ec22-4699-a70a-4
Copper Member
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
February 02, 2018, 08:59:07 PM
 #1

As I understand it, SegWit is a soft fork since it doesn't change the block size - just the format of a block. If that's so, how is compatibility maintained? Let's say you have old mining and wallet software that has not been modified to support SegWit. What happens when those things encounter a SegWit-formatted block? It seems like they just wouldn't know what to do with it. Is that true?
1580005010
Hero Member
*
Offline Offline

Posts: 1580005010

View Profile Personal Message (Offline)

Ignore
1580005010
Reply with quote  #2

1580005010
Report to moderator
1580005010
Hero Member
*
Offline Offline

Posts: 1580005010

View Profile Personal Message (Offline)

Ignore
1580005010
Reply with quote  #2

1580005010
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
DannyHamilton
Legendary
*
Offline Offline

Activity: 2324
Merit: 1685



View Profile
February 02, 2018, 09:09:38 PM
Merited by RGBKey (1)
 #2

As I understand it, SegWit is a soft fork since it doesn't change the block size - just the format of a block. If that's so, how is compatibility maintained? Let's say you have old mining and wallet software that has not been modified to support SegWit. What happens when those things encounter a SegWit-formatted block? It seems like they just wouldn't know what to do with it. Is that true?
When communicating with a node that is running older (pre-SegWit) software, the SegWit node does not send the Witness data.  As such, the non-SegWit node sees a transaction that looks like the value can be spent by anyone (instead of the intended recipient).

Mining (building blocks) with old software would be a very bad idea, since you could easily be tricked into including an invalid transaction in your block. If you do that, then the entire network will reject your block and you'll fail to earn any mining revenue.

If you operate a non-mining node with the old software, then you are trusting that the blocks you receive which contain segwit transactions have already been verified by a SegWit node.  Since the vast majority of the network IS running SegWit nodes, you should be fine as long as you always follow the chain with the most work.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!