I’ve the next drawback:
these days i’m checking out in my native regtest
I generated the next cb-tx for block at peak 119: 01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff03027700ffffffff0158bf122a010000001976a914a08da9e35ab58e957204703da9d48967ddd1703b88ac00000000
there are some tx within the mempool
for the opposite tx i take the txid from the getblocktemplate request
I opposite the byte order for all of the ones and for the txid of the cbtx aswell.
nonetheless, i am getting the next error: bad-txnmrklroot
when i generate a block the use of generatetoaddress in regtest, then use getblock and run my merkle serve as over the txids, the merkle root is proper because of this this is a factor with the coinbase txid
i noticed that the coinbase tx from the generatetoaddress rpc name has a 2nd output with 0 satoshis.
is it imaginable to take away this 2nd output so i will check additional?
perhaps somebody had the similar factor.
thank you upfront.