Skip to content

multi: handle unmatched cancel orders#600

Merged
chappjc merged 2 commits into
decred:masterfrom
buck54321:missed-cancel
Aug 17, 2020
Merged

multi: handle unmatched cancel orders#600
chappjc merged 2 commits into
decred:masterfrom
buck54321:missed-cancel

Conversation

@buck54321
Copy link
Copy Markdown
Member

  • server/matcher: Add missed cancel orders to nomatches.
  • client/core: Delete missed cancel from (*trackedTrade).cancel. Update DB status for cancel order.
  • app: Re-show cancel button when a cancel misses. Other minor code improvements.

Copy link
Copy Markdown
Member

@JoeGruffins JoeGruffins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My first time noticing, so could be in master, but during the epoch of canceling, the cancel order shows up in the books, without indication of what it is. I don't think it should show up.
zeroorder

Copy link
Copy Markdown
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code reads well, although not tested yet.

Comment thread client/db/bolt/db.go
Copy link
Copy Markdown
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works pretty well for the most part.

image

Comment thread client/core/trade.go Outdated
Comment thread client/webserver/site/src/js/markets.js Outdated
Comment thread client/webserver/site/src/html/wallets.tmpl Outdated
Comment thread client/webserver/site/src/html/markets.tmpl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants