@@ -5,6 +5,11 @@ import (
5
5
"sync"
6
6
)
7
7
8
+ // Disable followings after milestoneMercuryHeight
9
+ // 1. TransferToContractBlock
10
+ // 2. ChangeEvmDenomByProposal
11
+ // 3. BankTransferBlock
12
+
8
13
var (
9
14
MILESTONE_MERCURY_HEIGHT string
10
15
milestoneMercuryHeight int64
@@ -33,26 +38,25 @@ func init() {
33
38
}
34
39
35
40
//disable transfer tokens to contract address by cli
36
- func higherThanMercury (height int64 ) bool {
41
+ func HigherThanMercury (height int64 ) bool {
37
42
if milestoneMercuryHeight == 0 {
38
43
// milestoneMercuryHeight not enabled
39
44
return false
40
45
}
41
46
return height > milestoneMercuryHeight
42
47
}
43
48
44
-
45
- //disable transfer tokens to contract address by cli
46
- func IsDisableTransferToContractBlock (height int64 ) bool {
47
- return higherThanMercury (height )
48
- }
49
-
50
- //disable change the param EvmDenom by proposal
51
- func IsDisableChangeEvmDenomByProposal (height int64 ) bool {
52
- return higherThanMercury (height )
53
- }
54
-
55
- //disable transfer tokens by module of cosmos-sdk/bank
56
- func IsDisableBankTransferBlock (height int64 ) bool {
57
- return higherThanMercury (height )
58
- }
49
+ ////disable transfer tokens to contract address by cli
50
+ //func IsDisableTransferToContractBlock(height int64) bool {
51
+ // return higherThanMercury(height)
52
+ //}
53
+ //
54
+ ////disable change the param EvmDenom by proposal
55
+ //func IsDisableChangeEvmDenomByProposal(height int64) bool {
56
+ // return higherThanMercury(height)
57
+ //}
58
+ //
59
+ ////disable transfer tokens by module of cosmos-sdk/bank
60
+ //func IsDisableBankTransferBlock(height int64) bool {
61
+ // return higherThanMercury(height)
62
+ //}
0 commit comments