mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-18 21:01:38 +00:00
trie/bintrie: fix copy-paste panic messages in allocStem/allocHashed
This commit is contained in:
parent
efc164b850
commit
ad64f4ec04
1 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ func (s *NodeStore) allocStem() uint32 {
|
||||||
}
|
}
|
||||||
s.stemCount++
|
s.stemCount++
|
||||||
if s.stemCount > indexMask {
|
if s.stemCount > indexMask {
|
||||||
panic("internal node pool overflow")
|
panic("stem node pool overflow")
|
||||||
}
|
}
|
||||||
return idx
|
return idx
|
||||||
}
|
}
|
||||||
|
|
@ -162,7 +162,7 @@ func (s *NodeStore) allocHashed() uint32 {
|
||||||
}
|
}
|
||||||
s.hashedCount++
|
s.hashedCount++
|
||||||
if s.hashedCount > indexMask {
|
if s.hashedCount > indexMask {
|
||||||
panic("internal node pool overflow")
|
panic("hashed node pool overflow")
|
||||||
}
|
}
|
||||||
return idx
|
return idx
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue