bitcoin/bitcoin — pull request #3516 by sipa (2014-01-11 22:41:50+00:00)
Title: Store orphan blocks in serialized form

Apparently (on 64-bit systems), an average CBlock takes up about 8 times as much space as its serialized form. This results in high memory usage for all orphan blocks that are kept. Change this to retain them in serialized form instead.

Tested by doing a (partial) sync under valgrind, which involved processing orphans.