Skip to content

Commit

Permalink
wallet: improve revert docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Apr 22, 2024
1 parent a3dce82 commit b100d0f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions wallet/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ type (
// removed.
ApplyIndex(index types.ChainIndex, created, spent []types.SiacoinElement, events []Event) error
// RevertIndex is called with the chain index that is being reverted.
// Any transactions and siacoin elements that were created by the index
// should be removed.
// Any transactions that were added by the index should be removed
//
// removed contains the siacoin elements that were created by the index
// and should be deleted.
//
// unspent contains the siacoin elements that were spent and should be
// recreated. They are not necessarily created by the index and should
// not be associated with it.
RevertIndex(index types.ChainIndex, removed, unspent []types.SiacoinElement) error
}
)
Expand Down

0 comments on commit b100d0f

Please sign in to comment.