Browse Source

Merge commit 'b5ae1a9' into bfgminer

Luke Dashjr 12 years ago
parent
commit
2234f148a0
1 changed files with 1 additions and 5 deletions
  1. 1 5
      scrypt.c

+ 1 - 5
scrypt.c

@@ -465,9 +465,6 @@ bool scanhash_scrypt(struct thr_info *thr, const unsigned char __maybe_unused *p
 		applog(LOG_ERR, "Failed to malloc scratchbuf in scanhash_scrypt");
 		applog(LOG_ERR, "Failed to malloc scratchbuf in scanhash_scrypt");
 		return ret;
 		return ret;
 	}
 	}
-
-	// we always hash in big endian
-	n = htobe32(n);
 	
 	
 	while(1) {
 	while(1) {
 		uint32_t ostate[8];
 		uint32_t ostate[8];
@@ -490,8 +487,7 @@ bool scanhash_scrypt(struct thr_info *thr, const unsigned char __maybe_unused *p
 		++n;
 		++n;
 	}
 	}
 
 
-	// last_nonce is expected to be host-endian
-	*last_nonce = be32toh(n);
+	*last_nonce = n;
 	
 	
 	free(scratchbuf);
 	free(scratchbuf);
 	return ret;
 	return ret;