mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Make the SHAMap hash a distinct type from a uint256.
* Implement a type safe distinction between a node hash and a node id. * This is just the first phase, limited to SHAMap's internals.
This commit is contained in:
committed by
Nik Bougalis
parent
49c4a063c1
commit
21a7b62c2b
@@ -254,7 +254,7 @@ SHAMapStoreImp::copyNode (std::uint64_t& nodeCount,
|
||||
SHAMapAbstractNode const& node)
|
||||
{
|
||||
// Copy a single record from node to database_
|
||||
database_->fetchNode (node.getNodeHash());
|
||||
database_->fetchNode (node.getNodeHash().as_uint256());
|
||||
if (! (++nodeCount % checkHealthInterval_))
|
||||
{
|
||||
if (health())
|
||||
|
||||
Reference in New Issue
Block a user