From e44cc97bdd3fcd3d3c6c31b19f069a17fe3eb82f Mon Sep 17 00:00:00 2001 From: evoskuil Date: Sat, 13 Dec 2014 02:36:42 -0800 Subject: [PATCH] Unreverse write_short_hash (see compensating change in -client). --- include/bitcoin/bitcoin/impl/utility/serializer.ipp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/bitcoin/bitcoin/impl/utility/serializer.ipp b/include/bitcoin/bitcoin/impl/utility/serializer.ipp index 55b0928598..a27bcd639f 100644 --- a/include/bitcoin/bitcoin/impl/utility/serializer.ipp +++ b/include/bitcoin/bitcoin/impl/utility/serializer.ipp @@ -115,12 +115,7 @@ void serializer::write_hash(const hash_digest& hash) template void serializer::write_short_hash(const short_hash& hash) { - // There is no reason for this to be reversed! - // The only reason it is still reversed is because the old - // obelisk protocol expects it that way. - // Fortunately, the old obelisk protocol is the only thing - // that currently uses this function. - write_data_reverse(hash); + write_data(hash); } template @@ -273,8 +268,7 @@ hash_digest deserializer::read_hash() template short_hash deserializer::read_short_hash() { - // See the note in serializer::write_short_hash: - return read_bytes_reverse(); + return read_bytes(); } template