On Sun, Jan 31, 2016 at 01:32:26AM +1000, Anthony Towns via bitcoin-dev wrote: > On Thu, Jan 28, 2016 at 01:51:24PM -0500, Peter Todd via bitcoin-dev wrote: > > While Pieter Wuille's segwit branch(1) doesn't yet implement a fix for > > the above problem, the obvious thing to do is to add a new service bit > > such as NODE_SEGWIT, and/or bump the protocol version, and for outgoing > > peers only connect to peers with segwit support. > If I'm following the code right, the segwit branch has a fHaveWitness > flag for each connection, which is set when a HAVEWITNESS message comes > from the peer, and HAVEWITNESS is sent as part of handshaking. BIP144 > suggests maybe this should be changed to a service bit though: Oh, there's a PR to change this to a NODE_WITNESS service bit: https://github.com/sipa/bitcoin/pull/55 Cheers, aj