-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ask is removed from orderbook when balance increases #1254
Comments
I have written couple of scripts to dig into this bug and found out that this bug is not directly related with mm2. The problem comes from the Electrum, When you send "confirmed": "x",
"unconfirmed": y (which you sent) This will stay as it is for a while. There is no problem with that. After a while, it will become into something like "confirmed": "x + y",
"unconfirmed": 0 And there is no problem with that either. BUT(sorry for caps, need to get attention here), sometimes, electrum will response you with something like this "confirmed": "x + y",
"unconfirmed": y (which must be 0 since it's confirmed and summed with confirmed balance) This happens rarely and takes approximately 3-4 seconds to be fixed. screenshots from my script which calls and prints the result of
|
Oh, thats a great research This one KomodoPlatform/komodo-wallet#591 might be caused by it |
@ozkanonur Thanks for the comprehensive research! I even doubt that we should try finding a workaround on the API side - it's worth digging into Electrum code and applying the fix there instead. Let's discuss it in our call today 🙂 |
As we are currently considering alternatives to Electrum, it doesn't worth the effort to find a workaround in the API code. |
I posted couple asks (and bids) for COIN in different orderbook (COIN/KMD, COIN/LTC...) then sent more COIN to the address. Result: all COIN asks are gone from orderbook, bids are still there. Nothing on console/logs.
The text was updated successfully, but these errors were encountered: