mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Changes for unstable consensus. (#272)
* Return empty hash when set or vector is empty in crypto. * Changing <operator in sequence_hash struct. * Fixing vm script and allowing only single sync target per vpath. * Making vm cluster log level to debug. * Increasing hpws max message size and fixing lcl mode in vm cluster scripts. * lcl block fix.
This commit is contained in:
committed by
GitHub
parent
b7e9301797
commit
7cec6d01c1
@@ -161,6 +161,11 @@ namespace crypto
|
||||
std::string hash;
|
||||
hash.resize(BLAKE3_OUT_LEN);
|
||||
|
||||
if (sw_vect.empty())
|
||||
{
|
||||
return hash;
|
||||
}
|
||||
|
||||
// Init stream hashing.
|
||||
blake3_hasher hasher;
|
||||
blake3_hasher_init(&hasher);
|
||||
@@ -183,6 +188,11 @@ namespace crypto
|
||||
std::string hash;
|
||||
hash.resize(BLAKE3_OUT_LEN);
|
||||
|
||||
if (sw_set.empty())
|
||||
{
|
||||
return hash;
|
||||
}
|
||||
|
||||
// Init stream hashing.
|
||||
blake3_hasher hasher;
|
||||
blake3_hasher_init(&hasher);
|
||||
|
||||
Reference in New Issue
Block a user