mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Loading and saving ledger and lcl consensus. (#51)
* Ledger saving, loading, consensus with ledger sequence number. * std terminate exception handler.
This commit is contained in:
committed by
Ravin Perera
parent
b8ffb83869
commit
b598025346
@@ -142,7 +142,7 @@ std::string get_hash(std::string_view data)
|
||||
{
|
||||
unsigned char hashchars[crypto_generichash_BYTES];
|
||||
crypto_generichash(hashchars, sizeof hashchars, (unsigned char *)data.data(), data.length(), NULL, 0);
|
||||
return std::string(reinterpret_cast<char *>(hashchars), crypto_hash_sha512_BYTES);
|
||||
return std::string(reinterpret_cast<char *>(hashchars), crypto_generichash_BYTES);
|
||||
}
|
||||
|
||||
} // namespace crypto
|
||||
Reference in New Issue
Block a user