mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix off-by-one error in SHAMapNodeID:
Limit is 64 inner nodes at depth 0-63, and one leaf at depth 64
This commit is contained in:
@@ -102,7 +102,7 @@ inline
|
||||
bool
|
||||
SHAMapNodeID::isValid () const
|
||||
{
|
||||
return (mDepth >= 0) && (mDepth < 64);
|
||||
return (mDepth >= 0) && (mDepth <= 64);
|
||||
}
|
||||
|
||||
inline
|
||||
|
||||
Reference in New Issue
Block a user