forked from tendermint/tendermint
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* close checktx mutex by flag * add log for ReapMaxBytesMaxGas Co-authored-by: evan.han <iloversevan@gmail.com>
- Loading branch information
1 parent
8f764a7
commit 11a1f72
Showing
4 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,35 @@ | ||
package types | ||
|
||
import "github.com/spf13/viper" | ||
var closeQueryMutex bool | ||
var closeCheckTxMutex bool | ||
var removeCheckTx bool | ||
|
||
const FlagCloseMutex = "close-mutex" | ||
const ( | ||
FlagCloseMutex = "close-mutex" | ||
FlagCloseCheckTxMutex = "close-checktx-mutex" | ||
FlagRemoveCheckTx = "remove-checktx" | ||
) | ||
|
||
func GetCloseMutex() bool { | ||
return viper.GetBool(FlagCloseMutex) | ||
return closeQueryMutex | ||
} | ||
|
||
func SetCloseMutex(isClose bool) { | ||
closeQueryMutex = isClose | ||
} | ||
|
||
func GetCloseCheckTxMutex() bool { | ||
return closeCheckTxMutex | ||
} | ||
|
||
func SetCloseCheckTxMutex(isClose bool) { | ||
closeCheckTxMutex = isClose | ||
} | ||
|
||
func GetRemoveCheckTx() bool { | ||
return removeCheckTx | ||
} | ||
|
||
func SetRemoveCheckTx(isRemove bool) { | ||
removeCheckTx = isRemove | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters