Potential ZCash shielding fix
@@ -282,7 +282,7 @@ namespace MiningCore.Blockchain.ZCash
poolExtraConfig.ZAddress, // dest: pool's z-addr
};
- var result = await daemon.ExecuteCmdSingleAsync<string>(ZCashCommands.ZShieldCoinbase, args);
+ var result = await daemon.ExecuteCmdSingleAsync<ZCashShieldingResponse>(ZCashCommands.ZShieldCoinbase, args);
if (result.Error != null)
{
@@ -290,9 +290,9 @@ namespace MiningCore.Blockchain.ZCash
return;
}
- var operationId = result.Response;
+ var operationId = result.Response.OperationId;
- logger.Info(() => $"[{LogCategory}] {ZCashCommands.ZShieldCoinbase} operation id: {operationId}");
+ logger.Info(() => $"[{LogCategory}] {ZCashCommands.ZShieldCoinbase} operation id: {operationId}, ShieldedUtxOs: {result.Response.ShieldedUtxOs}, ShieldedValue: {FormatAmount(result.Response.ShieldedValue)}");
var continueWaiting = true;
@@ -329,7 +329,7 @@ namespace MiningCore.Blockchain.ZCash
}
}
- logger.Info(() => $"[{LogCategory}] Waiting for operation completion: {operationId}");
+ logger.Info(() => $"[{LogCategory}] Waiting for shielding operation completion: {operationId}");
await Task.Delay(TimeSpan.FromSeconds(10));
}
}
@@ -427,7 +427,7 @@ namespace MiningCore.Blockchain.ZCash
}
}
- logger.Info(() => $"[{LogCategory}] Waiting for transfer completion: {operationId}");
+ logger.Info(() => $"[{LogCategory}] Waiting for shielding transfer completion: {operationId}");
await Task.Delay(TimeSpan.FromSeconds(10));
}
}
