Implement GetBlocks and GetHeaders
Test and fix GetBlocks