message: CDataStream::ignore Throw exception instead of assert on negative nSize
  Backports bitcoin/bitcoin
diff: @@ -237,7 +237,9 @@ public:
  CDataStream& ignore(int nSize)
  {
  // Ignore from the beginning of the buffer
  - assert(nSize >= 0);
  + if (nSize < 0) {
  + throw std::ios_base::failure("CDataStream::ignore(): nSize negative");
  + }
  unsigned int nReadPosNext = nReadPos + nSize;
  if (nReadPosNext >= vch.size()) {
  if (nReadPosNext > vch.size())
  