|
|
|
@ -21,7 +21,7 @@ const ( |
|
|
|
|
twoOne = 5 |
|
|
|
|
|
|
|
|
|
localnetMaxTxAmountLimit = 1e2 // unit is in One
|
|
|
|
|
localnetMaxTxsPerAccountInBlockLimit = 2 |
|
|
|
|
localnetMaxNumTxsPerAccountPastHourLimit = 2 |
|
|
|
|
localnetMaxTxsPerBlockLimit = 8000 |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -68,8 +68,8 @@ func (ls localnetSchedule) MaxTxAmountLimit() *big.Int { |
|
|
|
|
return amountBigInt |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (ls localnetSchedule) MaxTxsPerAccountInBlockLimit() uint64 { |
|
|
|
|
return localnetMaxTxsPerAccountInBlockLimit |
|
|
|
|
func (ls localnetSchedule) MaxNumTxsPerAccountPastHourLimit() uint64 { |
|
|
|
|
return localnetMaxNumTxsPerAccountPastHourLimit |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (ls localnetSchedule) MaxTxsPerBlockLimit() int { |
|
|
|
@ -79,7 +79,7 @@ func (ls localnetSchedule) MaxTxsPerBlockLimit() int { |
|
|
|
|
func (ls localnetSchedule) TxsThrottleConfig() *TxsThrottleConfig { |
|
|
|
|
return &TxsThrottleConfig{ |
|
|
|
|
MaxTxAmountLimit: ls.MaxTxAmountLimit(), |
|
|
|
|
MaxTxsPerAccountInBlockLimit: ls.MaxTxsPerAccountInBlockLimit(), |
|
|
|
|
MaxNumTxsPerAccountPastHourLimit: ls.MaxNumTxsPerAccountPastHourLimit(), |
|
|
|
|
MaxTxsPerBlockLimit: ls.MaxTxsPerBlockLimit(), |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|