File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/org/tron/core/services Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 9
9
import org .apache .commons .collections4 .MapUtils ;
10
10
import org .springframework .stereotype .Component ;
11
11
import org .tron .common .utils .ByteArray ;
12
+ import org .tron .common .utils .ForkController ;
12
13
import org .tron .core .Wallet ;
13
14
import org .tron .core .capsule .TransactionCapsule ;
15
+ import org .tron .core .config .Parameter .ForkBlockVersionEnum ;
14
16
import org .tron .core .config .args .Args ;
15
17
import org .tron .core .db .common .WrappedByteArray ;
16
18
import org .tron .core .exception .WhitelistException ;
17
19
import org .tron .protos .Protocol .Transaction .Contract ;
18
20
import org .tron .protos .Protocol .Transaction .Contract .ContractType ;
19
21
22
+ // TODO
20
23
@ Component
21
24
@ Slf4j
22
25
public class WhitelistService {
@@ -41,6 +44,10 @@ public void loadFromConfig() {
41
44
}
42
45
43
46
public static void check (TransactionCapsule transactionCapsule ) throws WhitelistException {
47
+ if (!ForkController .instance ().pass (ForkBlockVersionEnum .VERSION_3_5 )) {
48
+ return ;
49
+ }
50
+
44
51
if (MapUtils .isEmpty (whitelist )) {
45
52
return ;
46
53
}
You can’t perform that action at this time.
0 commit comments