Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - alexicon

Pages: [1]
1
Technical Support / Re: How is Matching works?
« on: March 26, 2018, 08:11:54 am »
Hi, abit! Thanks a lot for your reply! I'm now have better understanding of bitshares working process.
And now i have some more questions, maybe simple, but interesting:

 How bitshares will work in this situation: Bob put his order to buy 10 bitUSD for 1.7 BTS, then Alice and Dan, simultaneously put their orders to sell 10 bitUSD for 1.7.  Alice and Dan using two different nodes(witnesses) to put orders to the network. What will happen? Which order will be chosen to fill Bobs order and why?
How will Alice and Dan orders be processed through transactions chain? Who decide which order will fill if they created orders absolutely simultaneously :) ?

 

2
Technical Support / Re: How is Matching works?
« on: March 22, 2018, 10:39:31 am »
Have a look at BSIP 33 - 35. They describe order matching pretty well. https://github.com/bitshares/bsips

Thank you for answer! :)

It looks like i didn't describe my problem correctly.
I understand how the matching algorithm is working, but i do not understand how all this orders processes through blockchain? Where order book is stored and how ? Is it stored in ElasticSearch DB or directly in blokchain? What happens when two orders matched and how they stored in graphene? How users balances change when orders automatically matched (form blockchain perspective)?

3
Technical Support / How is Matching works?
« on: March 21, 2018, 02:46:22 pm »
Hi, All
Can anybody explain in more technical details how the DEX matching works?
I search through the code and found graphene::chain::database::apply_order(...) function which then call to fill_order() function and so on... But i do not understand how DEX is actually change user balances after orders matching (i mean, i do not understand how the blockchain is working here ).

Pages: [1]