lbryio / lbcd

An alternative full node implementation of LBRY's blockchain written in Go (golang)
https://lbry.com/
ISC License
39 stars 26 forks source link

getblocktemplate: (block rewards are missing) #96

Closed roylee17 closed 2 years ago

roylee17 commented 2 years ago

DxPool reported that blocks mined using lbcd are missing block rewards

https://explorer.lbry.com/tx/60c09509a9382d2a2314f7fe1f697e07d2aa9af657a291dd351782a0933ca272

The pool software might be using coinbasevalue to construct the coinbase transaction, but the lbcd does not return .coinbasevaklue when the "capabilities": ["coinbasetxn"], is specified.

# lbrycrd
lbcctl --notls -s 18.221.146.233 getblocktemplate '{"rules": ["segwit"]}' | jq .coinbasevalue
23026191340

# lbrycrd
lbcctl --notls -s 18.221.146.233 getblocktemplate '{"capabilities": ["coinbasetxn"],"rules": ["segwit"]}' | jq .coinbasevalue
23025543745

# lbcd
lbcctl getblocktemplate '{"rules": ["segwit"]}' | jq .coinbasevalue
23018485170

# lbcd
lbcctl  getblocktemplate '{"capabilities": ["coinbasetxn"],"rules": ["segwit"]}' | jq .coinbasevalue
null