factor verified providers into bidding tx flow

This commit is contained in:
2022-09-13 22:58:07 +00:00
parent 84bb357bc8
commit 11829e1017
13 changed files with 161 additions and 53 deletions

View File

@@ -12,6 +12,10 @@ const (
MinLeasePeriod = 3_600 // 1 hour
MaxLeasePeriod = 8_035_200 // 3 months
// Maximum number of verified providers; this is to prevent buffer overflow
// attacks since provider list is not committed to chain state and costs 0 gas
MaxVerifiedProviders = 1000
// Minimum required staked CLR to be a provider (i.e. to bid)
// 500 CLR
ProviderMinLockedUClr = 500_000_000