MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / isProviderUserMatch

Function isProviderUserMatch

blockproducer/metastate.go:757–768  ·  view source on GitHub ↗
(targetUsers []proto.AccountAddress, user proto.AccountAddress)

Source from the content-addressed store, hash-verified

755}
756
757func isProviderUserMatch(targetUsers []proto.AccountAddress, user proto.AccountAddress) (match bool) {
758 if len(targetUsers) > 0 {
759 for _, u := range targetUsers {
760 if u == user {
761 match = true
762 }
763 }
764 } else {
765 match = true
766 }
767 return
768}
769
770func isProviderReqMatch(po *types.ProviderProfile, req *types.CreateDatabase) (match bool, err error) {
771 if po.GasPrice > req.GasPrice {

Callers 1

filterAndAppendMinerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected