gpu-compute-chain/x/colinearcore/memdb/README.md

19 lines
343 B
Markdown
Raw Normal View History

2022-08-28 17:42:43 -07:00
# MemDB
## Bidding Flow
```mermaid
flowchart
s[Submit Bid] --> rdb{{Read MemBids}} --> h{Is Highest Bid?}
h -- Yes --> m{{Add to MemBids}}
h -- No --> re1[[Error]]
m -- Every Block --> ae{Auction expired?}
ae -- Yes --> fh{{Find Highest Bid}}
ae -- No --> ca{{Check again}} -- Next block --> ae
fh -- Settle --> scs[(Chain State)]
```