mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
A zere-length inner node is legal if the tree is empty.
This commit is contained in:
@@ -195,7 +195,7 @@ SHAMapTreeNode::SHAMapTreeNode(const SHAMapNode& id, const std::vector<unsigned
|
||||
|
||||
int type = s.removeLastByte();
|
||||
int len = s.getLength();
|
||||
if ((type < 0) || (type > 3) || (len < 32)) throw SHAMapException(InvalidNode);
|
||||
if ((type < 0) || (type > 3)) throw SHAMapException(InvalidNode);
|
||||
|
||||
if (type == 0)
|
||||
{ // transaction
|
||||
|
||||
Reference in New Issue
Block a user