mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
358 B
C++
18 lines
358 B
C++
5 years ago
|
#include <consensus/table.hpp>
|
||
|
#include <crypto/crypto.hpp>
|
||
|
|
||
|
namespace llarp
|
||
|
{
|
||
|
namespace consensus
|
||
|
{
|
||
|
ShortHash
|
||
|
Table::CalculateHash() const
|
||
|
{
|
||
|
ShortHash h;
|
||
|
const llarp_buffer_t buf(begin()->data(), size());
|
||
|
CryptoManager::instance()->shorthash(h, buf);
|
||
|
return h;
|
||
|
}
|
||
|
} // namespace consensus
|
||
|
} // namespace llarp
|