Skip to content

Commit

Permalink
wallet: clear event proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Aug 9, 2024
1 parent 02c8b1f commit 05864d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wallet/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ func appliedEvents(cau chain.ApplyUpdate, walletAddress types.Address) (events [
return
}

fce.MerkleProof = nil // clear the proof to save space

if valid {
for i, so := range fce.FileContract.ValidProofOutputs {
if so.Address != walletAddress {
Expand Down Expand Up @@ -221,6 +223,8 @@ func appliedEvents(cau chain.ApplyUpdate, walletAddress types.Address) (events [
missed = true
}

fce.MerkleProof = nil // clear the proof to save space

if fce.V2FileContract.HostOutput.Address == walletAddress {
outputID := types.FileContractID(fce.ID).V2HostOutputID()
sce, ok := siacoinElements[outputID]
Expand Down

0 comments on commit 05864d0

Please sign in to comment.