Skip to content

Commit

Permalink
Merge pull request #224 from bitcoin-sv/fix/check-if-mined
Browse files Browse the repository at this point in the history
fix/check-if-mined
  • Loading branch information
boecklim authored Dec 20, 2023
2 parents 78ef2a3 + d617d43 commit 5f65147
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metamorph/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const (
unseenTransactionRebroadcastingInterval = 60

processCheckIfMinedIntervalDefault = 1 * time.Minute
checkIfMinedTimeRange = time.Minute * 60

mapExpiryTimeDefault = 24 * time.Hour
LogLevelDefault = slog.LevelInfo
Expand Down Expand Up @@ -173,8 +172,7 @@ func (p *Processor) processCheckIfMined() {
// filter for transactions which have been at least announced but not mined and which haven't started to be processed longer than a specified amount of time ago
filterFunc := func(processorResp *processor_response.ProcessorResponse) bool {
return processorResp.GetStatus() != metamorph_api.Status_MINED &&
processorResp.GetStatus() != metamorph_api.Status_CONFIRMED &&
p.now().Sub(processorResp.Start) < checkIfMinedTimeRange
processorResp.GetStatus() != metamorph_api.Status_CONFIRMED
}

// Check transactions that have been seen on the network, but haven't been marked as mined
Expand Down

0 comments on commit 5f65147

Please sign in to comment.