diff options
author | Thomas Winget <tewinget@gmail.com> | 2014-09-05 22:04:11 -0400 |
---|---|---|
committer | fluffypony <ric@spagni.net> | 2014-09-06 21:56:18 +0200 |
commit | c05489938f2735efe1539cfab77d28e4ef2baa48 (patch) | |
tree | 85f3e4df90d22e08e8a69b8895936f4e7a669642 /src | |
parent | added double-check for 202612 block id (diff) | |
download | monero-c05489938f2735efe1539cfab77d28e4ef2baa48.tar.xz |
override for get_block_longhash for block 202612
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/cryptonote_format_utils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_format_utils.cpp b/src/cryptonote_core/cryptonote_format_utils.cpp index c6e619bf4..d023561c3 100644 --- a/src/cryptonote_core/cryptonote_format_utils.cpp +++ b/src/cryptonote_core/cryptonote_format_utils.cpp @@ -689,6 +689,13 @@ namespace cryptonote //--------------------------------------------------------------- bool get_block_longhash(const block& b, crypto::hash& res, uint64_t height) { + // block 202612 bug workaround + const std::string longhash_202612 = "84f64766475d51837ac9efbef1926486e58563c95a19fef4aec3254f03000000"; + if (height == 202612) + { + string_tools::hex_to_pod(longhash_202612, res); + return true; + } block b_local = b; //workaround to avoid const errors with do_serialize blobdata bd = get_block_hashing_blob(b); crypto::cn_slow_hash(bd.data(), bd.size(), res); |