0xB10C / bademeister-go

Implementation of Bademeister, a mempool watcher and recorder, in Golang.
0 stars 3 forks source link

Error parsing coinbase #33

Closed OttoAllmendinger closed 4 years ago

OttoAllmendinger commented 5 years ago

Getting this error when parsing blocks on mainnet:

2019/11/26 10:16:21 Error during operation, shutting down: error parsing coinbase: opcode OP_DATA_66 requires 67 bytes, but script only has 18 remaining
0xB10C commented 5 years ago

Have had similar problems with parsing coinbase transactions with https://github.com/0xB10C/rawtx. Apparently they can have weird scripts.

I've used a more manual approach for getting the block height from coinbase tx in mempool.observer: https://github.com/0xB10C/memo/blob/master/memod/processor/zmq_handler.go#L54-L76. That might be an alternative.

OttoAllmendinger commented 4 years ago

thanks, seems to work now