Skip to content

Commit

Permalink
Merge pull request #251 from multiversx/ignore-scrs-no-original-tx-hash
Browse files Browse the repository at this point in the history
ignore scrs with no original tx hash
  • Loading branch information
mariusmihaic authored Oct 5, 2023
2 parents d7fa746 + 4cb6f3e commit 225bc17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions process/elasticproc/logsevents/informativeLogsProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ func processEventNoTx(args *argsProcessEvent) argOutputProcessEvent {
processed: true,
}
}
if scr.OriginalTxHash == "" {
return argOutputProcessEvent{
processed: true,
}
}

record := &outport.StatusInfo{}
switch string(args.event.GetIdentifier()) {
Expand Down
2 changes: 1 addition & 1 deletion process/elasticproc/transactions/scrsDataToTransactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (st *scrsDataToTransactions) processTransactionsAfterSCRsWereAttached(trans
func (st *scrsDataToTransactions) processSCRsWithoutTx(scrs []*data.ScResult) map[string]*data.FeeData {
txHashRefund := make(map[string]*data.FeeData)
for _, scr := range scrs {
if scr.InitialTxGasUsed == 0 {
if scr.InitialTxGasUsed == 0 || scr.OriginalTxHash == "" {
continue
}

Expand Down

0 comments on commit 225bc17

Please sign in to comment.