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:
Savinda Senevirathne
2021-03-17 12:17:50 +05:30
committed by GitHub
parent b7e9301797
commit 7cec6d01c1
5 changed files with 33 additions and 5 deletions

View File

@@ -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);