message: src/primitives/block.cpp: endian compatibility in GetHash
  adapted from bitcoin@81aeb28436d847ed4e6bcda8c746a3e5631c7feb
diff: uint256 CBlockHeader::GetHash() const
  {
  +#if defined(WORDS_BIGENDIAN)
  + if (nVersion < 4) {
  + uint8_t data[80];
  + WriteLE32(&data[0], nVersion);
  + memcpy(&data[4], hashPrevBlock.begin(), hashPrevBlock.size());
  + memcpy(&data[36], hashMerkleRoot.begin(), hashMerkleRoot.size());
  + WriteLE32(&data[68], nTime);
  + WriteLE32(&data[72], nBits);
  + WriteLE32(&data[76], nNonce);
  + return HashQuark(data, data + 80);
  + } else if (nVersion < 7) {
  + uint8_t data[112];
  + WriteLE32(&data[0], nVersion);
  + memcpy(&data[4], hashPrevBlock.begin(), hashPrevBlock.size());
  + memcpy(&data[36], hashMerkleRoot.begin(), hashMerkleRoot.size());
  + WriteLE32(&data[68], nTime);
  + WriteLE32(&data[72], nBits);
  + WriteLE32(&data[76], nNonce);
  + memcpy(&data[80], hashMerkleRoot.begin(), hashMerkleRoot.size());
  + return Hash(data, data + 80);
  + } else {
  + uint8_t data[80];
  + WriteLE32(&data[0], nVersion);
  + memcpy(&data[4], hashPrevBlock.begin(), hashPrevBlock.size());
  + memcpy(&data[36], hashMerkleRoot.begin(), hashMerkleRoot.size());
  + WriteLE32(&data[68], nTime);
  + WriteLE32(&data[72], nBits);
  + WriteLE32(&data[76], nNonce);
  + return Hash(data, data + 80);
  + }
  +
  +#else // Can take shortcut for little endian
  if (nVersion < 4)
  return HashQuark(BEGIN(nVersion), END(nNonce));
  @@ -22,6 +54,7 @@ uint256 CBlockHeader::GetHash() const
  return Hash(BEGIN(nVersion), END(nAccumulatorCheckpoint));
  return Hash(BEGIN(nVersion), END(nNonce));
  +#endif
  }
  std::string CBlock::ToString() const
  