Skip to content

Commit

Permalink
Do not email "new valid order" logs nor ask OrderWatcher to watch alr…
Browse files Browse the repository at this point in the history
…eady stored, fillable orders
  • Loading branch information
fabioberger committed Jul 30, 2019
1 parent b9a1d7e commit 3a579ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/message_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ func (app *App) HandleMessages(messages []*p2p.Message) error {

// Store any valid orders and update the peer scores.
for _, acceptedOrderInfo := range validationResults.Accepted {
if !acceptedOrderInfo.IsNew {
continue
}
msg := orderHashToMessage[acceptedOrderInfo.OrderHash]
// If we've reached this point, the message is valid and we were able to
// decode it into an order. Append it to the list of orders to validate and
Expand Down

0 comments on commit 3a579ec

Please sign in to comment.