From a02681fcefcb431e3bde874e31cb61286ea97f00 Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Thu, 19 Dec 2024 09:10:09 -0500 Subject: [PATCH] remove SpentSiacoinElements/SpentSiafundElements because the explorer types already describe the value of SC/SF inputs --- explorer/events.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/explorer/events.go b/explorer/events.go index 30df1f2..bf145bc 100644 --- a/explorer/events.go +++ b/explorer/events.go @@ -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 @@ -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 { @@ -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()]