mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
remove cryptopp dependency, add simple unittest for SHA256Transform()
This commit is contained in:
parent
f4769e44a3
commit
6ccff2cbde
28 changed files with 87 additions and 6057 deletions
|
|
@ -4,7 +4,6 @@
|
|||
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "headers.h"
|
||||
#include "cryptopp/sha.h"
|
||||
#include "db.h"
|
||||
#include "net.h"
|
||||
#include "init.h"
|
||||
|
|
@ -1628,7 +1627,7 @@ Value getwork(const Array& params, bool fHelp)
|
|||
|
||||
// Byte reverse
|
||||
for (int i = 0; i < 128/4; i++)
|
||||
((unsigned int*)pdata)[i] = CryptoPP::ByteReverse(((unsigned int*)pdata)[i]);
|
||||
((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]);
|
||||
|
||||
// Get saved block
|
||||
if (!mapNewBlock.count(pdata->hashMerkleRoot))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue