joinmarket icon indicating copy to clipboard operation
joinmarket copied to clipboard

takers: ignore makers with more than max_offers_allowed offers

Open AlexCato opened this issue 8 years ago • 4 comments

The option is configurable and defaults to 15.

Implemented as discusses in #711 and waxwing/belcher on IRC.

I'll build the overlapping offer checks on top of this soon.

AlexCato avatar Feb 17 '17 22:02 AlexCato

Coverage Status

Coverage increased (+0.02%) to 77.409% when pulling 00ae19b4357a6ba88c7576c455e3bacb140f4f63 on AlexCato:maker_offer_checks into 3756cc498b2cd6a050003da62590c31d3d13f3df on JoinMarket-Org:develop.

coveralls avatar Feb 17 '17 23:02 coveralls

Looks good to me, utACK - ~~assuming the sql works OK~~ (well, obviously it's OK we have virtually the same call there already).

Also, I think 15 is reasonable. I wouldn't object to 5-10 either. But I think I'm more influenced by our low-bandwidth message channel (public IRC), it isn't necessary. Anyway ignore that, bikeshedding :)

We could consider a self.msgchan.send_error message to signal to the maker that they were banned?

AdamISZ avatar Feb 18 '17 16:02 AdamISZ

Will the orderbook also ignore these makers with these changes, or do we need more code for that?

BlinkyStitt avatar Mar 26 '17 21:03 BlinkyStitt

@WyseNynja do you mean ob-watcher? Yes, the on_order_seen callback is in the OrderbookWatch class, and the filter is applied there. Whether that's good or bad, don't know, but then ob-watcher isn't too huge of a deal really.

AdamISZ avatar Apr 02 '17 11:04 AdamISZ