|
|
@ -65,21 +65,21 @@ type TxThrottleFlag int |
|
|
|
|
|
|
|
|
|
|
|
// Enum for different TxThrottleFlag
|
|
|
|
// Enum for different TxThrottleFlag
|
|
|
|
const ( |
|
|
|
const ( |
|
|
|
Select TxThrottleFlag = iota |
|
|
|
TxSelect TxThrottleFlag = iota |
|
|
|
Unselect |
|
|
|
TxUnselect |
|
|
|
Invalid |
|
|
|
TxInvalid |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func (result TxThrottleFlag) String() string { |
|
|
|
func (result TxThrottleFlag) String() string { |
|
|
|
switch result { |
|
|
|
switch result { |
|
|
|
case Select: |
|
|
|
case TxSelect: |
|
|
|
return "Select" |
|
|
|
return "TxSelect" |
|
|
|
case Unselect: |
|
|
|
case TxUnselect: |
|
|
|
return "Unselect" |
|
|
|
return "TxUnselect" |
|
|
|
case Invalid: |
|
|
|
case TxInvalid: |
|
|
|
return "Invalid" |
|
|
|
return "TxInvalid" |
|
|
|
} |
|
|
|
} |
|
|
|
return "Unknown" |
|
|
|
return "TxThrottleUnknown" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TxsThrottleConfig contains configuration for throttling pending transactions per node block
|
|
|
|
// TxsThrottleConfig contains configuration for throttling pending transactions per node block
|
|
|
|