Replies: 4 comments 17 replies
-
Mining Protocolunder the Mining Protocol, this is relevant for before stratum-mining/stratum#1832, SRI would create Extended Jobs where while this is a valid approach, it puts the burden on the message receiver to be aware of this and strip those bytes before using the coinbase's meanwhile, Braiins sends Extended Jobs that do strip the fact that there are two different valid approaches for creating Extended Jobs should be acknowledged in the spec, so that implementers are able to be interoperable without unpleasant surprises |
Beta Was this translation helpful? Give feedback.
-
Job Declaration Protocolunder the Job Declaration Protocol, this is relevant for (note: the following analysis assumes the original coinbase is created as a SegWit transaction... in the (rare) case it's not, there will be no BIP141 fields anyways) differently from Mining Protocol, we should NOT allow two different approaches for BIP141 when JDS receives a if the BIP141 fields are stripped and JDS tries to construct a non-SegWit coinbase, the propagated block will be rejected by its peers with similar logs:
Here's an analysis of a scenario where this happened with ViaBTC: https://b10c.me/observations/10-viabtc-blocks-without-witness-data/ One could argue that JDS could simply do some heuristics while trying to cater for both BIP141 stripped and non-stripped coinbases. For BIP141 stripped, the most likely heuristics would infer the commonly used values for those fields:
while this heuristics could work fine today, BIP141 specifies that some soft fork could repurpose the and then JDS would not be able to guess those values and be unable to propagate blocks with SegWit coinbases |
Beta Was this translation helpful? Give feedback.
-
Template Distribution Protocolunder Template Distribution Protocol, this is relevant for assuming the original coinbase is a SegWit transaction, and one could make the same argument about heuristics, but the same rationale around future soft forks would apply |
Beta Was this translation helpful? Give feedback.
-
As we already discussed during our last meetings, I feel this is the best direction for everyone, and I completely ACK all your proposals aforementioned! 💯 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
on stratum-mining/stratum#1399 we realized that SRI and Braiins were following different standards with regards to BIP141 fields on the coinbase (marker, flag, witness count, witness length and witness reserved value)
this is meant for discussions about how BIP141 fields are handled on serialized coinbases and propose conventions on the spec for the purpose of interoperability
Beta Was this translation helpful? Give feedback.
All reactions