Skip to content

Commit

Permalink
remove SpentSiacoinElements/SpentSiafundElements because the explorer…
Browse files Browse the repository at this point in the history
… types already describe the value of SC/SF inputs
  • Loading branch information
chris124567 committed Dec 19, 2024
1 parent 11084c8 commit a02681f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions explorer/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ type (
// siafund elements.
EventV1Transaction struct {
Transaction Transaction `json:"transaction"`
// v1 siacoin inputs do not describe the value of the spent utxo
SpentSiacoinElements []SiacoinOutput `json:"spentSiacoinElements,omitempty"`
// v1 siafund inputs do not describe the value of the spent utxo
SpentSiafundElements []SiacoinOutput `json:"spentSiafundElements,omitempty"`
}

// An EventV1ContractResolution represents a file contract payout from a v1
Expand Down Expand Up @@ -122,7 +118,6 @@ func AppliedEvents(cs consensus.State, b types.Block, cu ChainUpdate) (events []
continue
}

// e.SpentSiacoinElements = append(e.SpentSiacoinElements, sce)
addresses[sce.SiacoinOutput.Address] = struct{}{}
}
for _, sco := range txn.SiacoinOutputs {
Expand All @@ -135,7 +130,6 @@ func AppliedEvents(cs consensus.State, b types.Block, cu ChainUpdate) (events []
continue
}

// e.SpentSiafundElements = append(e.SpentSiafundElements, sfe)
addresses[sfe.SiafundOutput.Address] = struct{}{}

sce, ok := sces[sfi.ParentID.ClaimOutputID()]
Expand Down

0 comments on commit a02681f

Please sign in to comment.