mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 03:04:25 -08:00
fix bugs with memdb + vprovider setting
- wasn't setting list of verified providers - was looping through multilevel keys, not auctionid
This commit is contained in:
@@ -170,8 +170,9 @@ func (b *auctionDB) ForEachAuctionBidList(viewFunc func(string) error) error {
|
||||
item := iter.Item()
|
||||
key := string(item.Key())
|
||||
// require that this be an auction bids key
|
||||
if len(key) > 5 && key[len(key)-5:len(key)-1] == "_bids" {
|
||||
err := viewFunc(key)
|
||||
if len(key) > 5 && key[len(key)-5:] == "_bids" {
|
||||
auctionId := key[:len(key)-5]
|
||||
err := viewFunc(auctionId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user