Skip to content

Commit b9c1937

Browse files
committed
add the isAllowShieldedTransaction
1 parent 5d83873 commit b9c1937

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/org/tron/core/actuator/ShieldedTransferActuator.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public boolean validate() throws ContractValidateException {
193193
throw new ContractValidateException("duplicate sapling nullifiers in this transaction");
194194
}
195195
nfSet.add(spendDescription.getNullifier());
196-
if (!dbManager.getMerkleContainer()
196+
if (Args.getInstance().isAllowShieldedTransaction() && !dbManager.getMerkleContainer()
197197
.merkleRootExist(spendDescription.getAnchor().toByteArray())) {
198198
throw new ContractValidateException("Rt is invalid.");
199199
}

0 commit comments

Comments
 (0)