gpu-compute-chain/x/colinearcore/memdb
michael c08c827b4e fix bugs with memdb + vprovider setting
- wasn't setting list of verified providers
- was looping through multilevel keys, not auctionid
2022-09-14 00:01:06 +00:00
..
README.md add docs 2022-09-06 23:11:43 +00:00
biddb.go fix bugs with memdb + vprovider setting 2022-09-14 00:01:06 +00:00
biddb_test.go verified providers in memdb + tests 2022-09-13 21:56:38 +00:00

README.md

MemDB

Bidding Flow

flowchart 

s[Submit Bid] --> rstake{{Read Staked Amount}}

rstake --> st{Has min amount staked?}

st -- No --> re0[[Error]]
st -- Yes --> rdb{{Read MemBids}} 

rdb --> 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)]