Skip to content
Permalink
Browse files

Fix RLP long array/string encoding

  • Loading branch information...
bmhjyu authored and YihaoPeng committed May 27, 2019
1 parent 3d5447b commit 8f9409d0a9a37bba30aac4c576a91055a57b50ff
Showing with 1 addition and 2 deletions.
  1. +1 −2 3rdparty/rlpvalue/lib/rlpvalue_write.cpp
@@ -51,10 +51,9 @@ static std::string encodeLength(size_t n, unsigned char offset)
// assert(n too big);

std::string binlen = encodeBinary(n);
rs.append(binlen);

unsigned char ch = binlen.size() + offset + 55;
rs.assign((const char *) &ch, 1);
rs.append(binlen);
}

return rs;

0 comments on commit 8f9409d

Please sign in to comment.
You can’t perform that action at this time.