-
Currently, we get order nonce by count the number of order in orders table
https://github.com/tomochain/tomox-sdk/blob/b31b7926a4a888d2abc73275cf44871786c60687/endpoints/order.go#L87
It is not corre…
-
```
2019/08/23 08:25:00 data: [0 0 0 0 0 0 0 0 0 0 0 0 112 60 75 43 215 12 22 159 87 23 16 28 174 229 67 41 159 201 70 199 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 5 75 64 177 248 82 189 160 0 …
-
PriceTree is red-black tree that we use to store prices which are represented as OrderLists. The comparator function is used to compare keys in format of big.Int that basically doesn't work with the p…
-
-
-
Color of each row in market trade history base on side (buy/sell) of taker.
Current: Base on increment or decrement of price.
-
https://github.com/tomochain/tomochain/blob/tomoX/tomox/orderlist.go#L68
**Current**
Key (in RBT & DB) = big.Int(OT.slot + price) -> to BigToHash.Bytes()
Slot:
```go
if orderTree.orderBook !=…
-
We make a small improvement that putting tomox sdk nodes out of the ME execution. The reasons for that are:
1) tomox sdk nodes aren't masternodes. They don't have to waste resources to do the ME.
…
-
![image](https://user-images.githubusercontent.com/54311954/63484098-bde64980-c4c8-11e9-9b71-0814a88bdece.png)
-
![image](https://user-images.githubusercontent.com/54311954/63483821-cc803100-c4c7-11e9-85a0-74e9c1c5f2b8.png)