subtract fee from reissuance token if token is fee asset during reissuance

This commit is contained in:
Gregory Sanders 2018-07-11 11:43:07 -04:00
parent dfcb26c7bf
commit 72a7dd0704

View file

@ -478,6 +478,10 @@ static void SendGenerationTransaction(const CScript& assetScriptPubKey, const CP
if (!reissuanceToken.IsNull()) {
recipient.asset = reissuanceToken;
recipient.nAmount = curBalance; // Or 1?
// If the issuance token *is* the fee asset, subtract fee from this output
if (reissuanceToken == policyAsset) {
recipient.fSubtractFeeFromAmount = true;
}
}
vecSend.push_back(recipient);
}