mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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
@@ -257,7 +257,7 @@ public:
|
||||
|
||||
auto newNode = SHAMapAbstractNode::make(
|
||||
Blob (node.nodedata().begin(), node.nodedata().end()),
|
||||
0, snfWIRE, uZero, false, app_.journal ("SHAMapNodeID"));
|
||||
0, snfWIRE, SHAMapHash{uZero}, false, app_.journal ("SHAMapNodeID"));
|
||||
|
||||
if (!newNode)
|
||||
return;
|
||||
@@ -268,7 +268,7 @@ public:
|
||||
auto blob = std::make_shared<Blob> (s.begin(), s.end());
|
||||
|
||||
app_.getLedgerMaster().addFetchPack(
|
||||
newNode->getNodeHash(), blob);
|
||||
newNode->getNodeHash().as_uint256(), blob);
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
|
||||
Reference in New Issue
Block a user