Skip to content

Commit

Permalink
Simplify and clean up scrypt.c
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Jul 3, 2012
1 parent 3c7945c commit 14a7677
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 482 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ bool LoadBlockIndex(bool fAllowNew)
// creating a different genesis block:
uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256();
uint256 thash;
char scratchpad[scrypt_scratchpad_size];
char scratchpad[SCRYPT_SCRATCHPAD_SIZE];

loop
{
Expand Down Expand Up @@ -3665,7 +3665,7 @@ void static BitcoinMiner(CWallet *pwallet)
unsigned int nNonceFound;

uint256 thash;
char scratchpad[scrypt_scratchpad_size];
char scratchpad[SCRYPT_SCRATCHPAD_SIZE];
loop
{
scrypt_1024_1_1_256_sp(BEGIN(pblock->nVersion), BEGIN(thash), scratchpad);
Expand Down
Loading

0 comments on commit 14a7677

Please sign in to comment.