Permalink
Browse files

Fixed bug with encoder

  • Loading branch information...
1 parent a7657db commit 4e060ddd4c8ab2658ce76c944c3ba9cad3c54569 @dave-andersen committed Feb 4, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/momentum.cpp
View
@@ -119,8 +119,8 @@ namespace bts
void generate_hashes(pow_seed_type head, uint64_t *hashStore, uint32_t *hashCounts)
{
- fc::sha512::encoder enc;
for ( uint32_t n = 0; n < MAX_MOMENTUM_NONCE; n += (BIRTHDAYS_PER_HASH)) {
+ fc::sha512::encoder enc;
enc.write( (char*)&n, sizeof(n));
enc.write( (char *)&head, sizeof(head));
auto result = enc.result();

0 comments on commit 4e060dd

Please sign in to comment.