coinselection: use policyasset instead of call to params for pegged_asset

this fixes up the coinselection fuzzing tests where Params() is not available
This commit is contained in:
Byron Hambly 2025-08-19 14:40:56 +02:00
parent 1cb55cbd9d
commit c445fe8a8b
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697

View file

@ -84,7 +84,7 @@ public:
/** ELEMENTS: the value of the output */
CAmount value;
/** ELEMENTS: the asset of the output */
CAsset asset{Params().GetConsensus().pegged_asset};
CAsset asset{::policyAsset};
/** ELEMENTS: the blinding factor for the value */
uint256 bf_value;
/** ELEMENTS: the blinding factor for the asset */