From c445fe8a8b811d3a67166cebb51067bb0def5a6c Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Tue, 19 Aug 2025 14:40:56 +0200 Subject: [PATCH] coinselection: use policyasset instead of call to params for pegged_asset this fixes up the coinselection fuzzing tests where Params() is not available --- src/wallet/coinselection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index a0ab14ebff..d4d87d9a86 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -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 */