In reading through bitcoins, source, I see many references to discount feerate, although I don’t see it defined anywhere. For example:
// Calculate the cost of change
// Cost of change is the cost of creating the change output + cost of spending the change output in the future.
// For creating the change output now, we use the effective feerate.
// For spending the change output in the future, we use the discard feerate for now.
// So cost of change = (change output size * effective feerate) + (size of spending change output * discard feerate)
In particular, this exert talks about knowing how expensive it is to spend an output in the future given the discount feerate. Please help fill in the blank of what is the discount feerate and how is it calculated.
Thanks!











