[Bitcoin-development] Applying clang-format to Bitcoin Core

2014-09-20 Thread Jeff Garzik
We are slowly applying a consistent style to the C++ source, via clang-format (LLVM) and $repo/src/.clang-format. If you have a patch that is difficult to apply to the tree due to reformatting, simply apply clang-format and then rediff. -- Jeff Garzik Bitcoin core developer and open source

[Bitcoin-development] From block 0 to block 72499 the Merkle root is the same as the coinbase transaction id. Why is that?

2014-09-20 Thread Peter Grigor
-- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk___ Bitcoin-development mailing list

Re: [Bitcoin-development] From block 0 to block 72499 the Merkle root is the same as the coinbase transaction id. Why is that?

2014-09-20 Thread Christophe Biocca
1. Not all of them (just the ones that have a coinbase transaction and nothing else). 2. The merkle root of a tree with just one item is the hash of that item. On Sat, Sep 20, 2014 at 11:38 AM, Peter Grigor pe...@grigor.ws wrote:

Re: [Bitcoin-development] From block 0 to block 72499 the Merkle root is the same as the coinbase transaction id. Why is that?

2014-09-20 Thread Peter Todd
On Sat, Sep 20, 2014 at 08:38:15AM -0700, Peter Grigor wrote: From block 0 to block 72499 the Merkle root is the same as the coinbase transaction id. Why is that? It's because of how the merkle tree algorithm works: uint256 CBlock::BuildMerkleTree() const { vMerkleTree.clear();