Post
Topic
Board Development & Technical Discussion
Re: SegWit, NOMP (2nd try)
by
gmaxwell
on 23/11/2019, 01:21:36 UTC
Mining with this setup, will my block be considered invalid and I lose my reward?
Current Bitcoind doesn't support handing out block templates without segwit txn. If you tell getblocktemplate that you don't support segwit, it just throws an error.

You could patch it to not do this and instead just give you empty blocks, and it would work fine (which, incidentally, I answered in the original thread) and your blocks would be accepted.  But you could also patch NoMP to support segwit-- there are guides online to doing so-- and it would probably take similar amounts of effort (and would be less work to maintain because presumably nomp either doesn't change or will accept the patch).

Also, right now 1.5% of mining income is fees-- soon to become 3% plus. During high congestion periods it can be much more, we've seen as much as 50% income from fees. You'll lose this income if you're not mining transactions.

Jackg's advice to test with testnet is good advice too. You can also hand a block back to bitcoind and ask if-- ignoring the POW-- it would accept it as valid. See the "proposal" option to getblocktemplate.