private void TrackAdded(ShaMapNode child) { child.WalkAnyLeaves(leaf => Added.Add(leaf.Index)); }
private void SetBranch(int slot, ShaMapNode node) { SlotBits = SlotBits | (1 << slot); Branches[slot] = node; Invalidate(); }
private void TrackRemoved(ShaMapNode child) { child.WalkAnyLeaves(leaf => Deleted.Add(leaf.Index)); }
protected internal void SetBranch(Hash256 index, ShaMapNode node) { SetBranch(SelectBranch(index), node); }