Author

Topic: bitcoind v23.0.0 supporting GBT/append ? (Read 104 times)

hero member
Activity: 630
Merit: 731
Bitcoin g33k
November 06, 2022, 11:29:22 AM
#3
Man! yeah, of course. That's it!  Cheesy thanks a bunch
staff
Activity: 3374
Merit: 6530
Just writing some code
November 06, 2022, 11:27:56 AM
#2
params is not a valid component of the template request. It looks like you are conflating the way that JSON-RPC sends parameters with the actual parameters themselves. Your command should actually be:

Code:
bitcoin-cli getblocktemplate '{"rules":["segwit"], "capabilities": ["coinbasetxn", "workid", "coinbase/append"]}'
hero member
Activity: 630
Merit: 731
Bitcoin g33k
November 06, 2022, 03:25:46 AM
#1
Hello all,

does the latest version of bitcoind support GBT/append?

(A) I can get the blocktemplate easily with

Code:
bitcoin-cli getblocktemplate '{"rules": ["segwit"]}'

For getting the template with coinbase/append support according this information it needs
Quote
{"id": 0, "method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}]}

(B)
I am trying to get this template with
Code:
bitcoin-cli getblocktemplate '{"params": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}]}'

Quote
error code: -8
error message:
getblocktemplate must be called with the segwit rule set (call with {"rules": ["segwit"]})

(C) However, when trying to combine those two
Code:
bitcoin-cli getblocktemplate '{"rules": ["segwit"], "params": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}]}'

I get the same output as I got in (A). How?
Jump to: