Skip to content

Commit

Permalink
include more proof blocks for 'insert', in addition to 'delete'
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Feb 26, 2025
1 parent 32047bf commit f69bb83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atproto/repo/mst/node_insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func (n *Node) insert(key []byte, val cid.Cid, height int) (*Node, *cid.Cid, err
Dirty: true,
}

// include "covering" proof for this operation
proveMutation(n, key)

if !split {
// TODO: is this really necessary? or can we just slices.Insert beyond the end of a slice?
if idx >= len(n.Entries) {
Expand Down

0 comments on commit f69bb83

Please sign in to comment.