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