bitcoin/bitcoin — pull request #2852 by petertodd (2013-07-24 06:12:46+00:00)
Title: Add 'chainwork' to getblock

Returns nChainWork from the block index, the total work done by all blocks since the genesis block.

Worth exposing for pedagogical reasons at the very least.

Anyone who tries to bikeshed either the name or the format the value is returned in will regret it - I'm warning you.