coinbase transaction – bitcoin-cli generatetoaddress has 2 outputs

on

|

views

and

comments


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.

Share this
Tags

Must-read

Tesla Govt Says Repair For Vampire Drain In Sentry Mode Coming In Q2: ‘Energy Intake Wishes Development’ – Tesla (NASDAQ:TSLA)

Tesla Inc TSLA govt, Drew Baglino, on Thursday printed that the corporate is operating on liberating a device replace for decreasing energy intake...

Dividend Kings In Focal point: Phone & Information Techniques

Printed on February twenty second, 2024 through Bob Ciura The Dividend Kings consist of businesses that experience raised their dividends for a minimum of...

Tyler Perry Calls On Leisure Trade, Executive To Corral AI Prior to Everybody Is Out Of Trade

Tyler Perry has observed demonstrations of what AI can do. Whilst he's astonished, he’s additionally sounding an alarm. Perry is already balloting together...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here