forex.pm forex forum binary options trade

 Š”ryptocurrency exchanges => Binance - Š”ryptocurrency exchanges => Topic started by: Bitcoin on Feb 12, 2022, 12:51 pm

Title: MerkleRoot requires transaction hash to build a merkle tree.... Is that the "hash" key/value within the getblocktemplate response or the "data"?
Post by: Bitcoin on Feb 12, 2022, 12:51 pm
MerkleRoot requires transaction hash to build a merkle tree.... Is that the "hash" key/value within the getblocktemplate response or the "data"?

I've created a function for parsing Json Objects and values and just when I think nothing can stop me, just when I feel like I'm the king of the blockchain and I can finally join in on the mining race ..... I get a painful reminder/reality check...


The transactions within the getblocktemplate each have these as keys and thier values.




Question


Which Key value from the list of contents within each transaction array is my merkleroot function supposed to use to build a merklerot Hash.... Is it data or hash ? Or is it the txid?


Merkleroot needs transaction hash....so is it hash Json Key or is it the data Json Key ?




Thanks in advance


Source: MerkleRoot requires transaction hash to build a merkle tree.... Is that the "hash" key/value within the getblocktemplate response or the "data"? (https://bitcoin.stackexchange.com/questions/111223/merkleroot-requires-transaction-hash-to-build-a-merkle-tree-is-that-the-has)