From https://bitcoin.stackexchange.com/questions/113622/what-does-waste-metric-mean-in-the-context-of-coin-selection See also https://github.com/bitcoin/bitcoin/pull/22009 which implements the waste metric in Bitcoin Core. and https://github.com/bitcoin/bitcoin/blob/ae024137bda9fe189f4e7ccf26dbaffd44cbbeb6/src/wallet/coinselection.cpp#L827-L853
The waste metric provides a heuristic per which a wallet's automated coin selection can achieve feerate sensitive coin selection.
waste metric formula: waste = weight×(feerate-longtermfeerate)+change+excess
Description
From https://bitcoin.stackexchange.com/questions/113622/what-does-waste-metric-mean-in-the-context-of-coin-selection See also https://github.com/bitcoin/bitcoin/pull/22009 which implements the waste metric in Bitcoin Core. and https://github.com/bitcoin/bitcoin/blob/ae024137bda9fe189f4e7ccf26dbaffd44cbbeb6/src/wallet/coinselection.cpp#L827-L853
The waste metric provides a heuristic per which a wallet's automated coin selection can achieve feerate sensitive coin selection.
waste metric formula: waste = weight×(feerate-longtermfeerate)+change+excess