mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
Change IsDeleted method to check for nil Blob
This commit is contained in:
parent
ad88b68a46
commit
b9d025e4a9
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ func (n *Node) Size() int {
|
||||||
|
|
||||||
// IsDeleted returns the indicator if the node is marked as deleted.
|
// IsDeleted returns the indicator if the node is marked as deleted.
|
||||||
func (n *Node) IsDeleted() bool {
|
func (n *Node) IsDeleted() bool {
|
||||||
return len(n.Blob) == 0
|
return n.Blob == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// New constructs a node with provided node information.
|
// New constructs a node with provided node information.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue