Allocate receive buffers in on the fly
Merge pull request #4381

806fd19 Allocate receive buffers in on the fly (Pieter Wuille)
Refactor proof of work related functions out of main
move pow constants to chainparams