Skip to content
This repository has been archived by the owner on Jun 4, 2018. It is now read-only.

Commit

Permalink
Do not parse change output script if no change is needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Feb 16, 2016
1 parent 61633ce commit 3044017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Paymetheus.Rpc/WalletClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public async Task PublishTransactionAsync(byte[] signedTransaction)
var outputs = response.SelectedOutputs.Select(MarshalUnspentOutput).ToList();
var total = (Amount)response.TotalAmount;
var changeScript = (OutputScript)null;
if (response.ChangePkScript != null)
if (response.ChangePkScript?.Length != 0)
{
changeScript = OutputScript.ParseScript(response.ChangePkScript.ToByteArray());
}
Expand Down

0 comments on commit 3044017

Please sign in to comment.