fix: fix bugs

fix bugs in ContractManager.executeContractInternal
This commit is contained in:
Frank.R.Wu 2021-11-15 17:52:16 +08:00
parent bb811da070
commit 70c8313226

View File

@ -1480,8 +1480,7 @@ public class ContractManager {
if (null != client.contractMeta.seekFunction(cr.getAction()) &&
client.contractMeta.exportedFunctions.get(cr.getAction()).isView) {
executeLocallyAsync(cr, rcb, hcb);
}
if (multiMeta != null && multiMeta.isMaster()) {
} else if (multiMeta != null && multiMeta.isMaster()) {
masterStub.executeByMaster(client, rcb, cr);
} else {
executeContractOnOtherNodes(cr, rcb);