From d7cae696c81a4758bbbf825bcddc2da323935da4 Mon Sep 17 00:00:00 2001 From: Satoshi Qazi Muhammed Date: Thu, 9 Jul 2026 10:05:42 -0700 Subject: [PATCH] diag: log full/enabled asset list per chain in FullSyncPaymentUpdater HEZ (native type, assetId 0) on Pezkuwi Asset Hub never gets a System.Account subscription sent to the RPC at all - no exception, no log, while the other 5 statemine-type assets on the same chain sync correctly. Ruled out via code reading: enabledAssets() default, AssetSourceRegistry dispatch, type mapping, Room composite PK. This logs the actual chain.assets contents at the exact point enabledAssets() is consumed, to see directly whether HEZ is present/ enabled in the runtime Chain object or silently absent before this point. --- .../updaters/balance/FullSyncPaymentUpdater.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/feature-wallet-impl/src/main/java/io/novafoundation/nova/feature_wallet_impl/data/network/blockchain/updaters/balance/FullSyncPaymentUpdater.kt b/feature-wallet-impl/src/main/java/io/novafoundation/nova/feature_wallet_impl/data/network/blockchain/updaters/balance/FullSyncPaymentUpdater.kt index 4b318e93..fae660a6 100644 --- a/feature-wallet-impl/src/main/java/io/novafoundation/nova/feature_wallet_impl/data/network/blockchain/updaters/balance/FullSyncPaymentUpdater.kt +++ b/feature-wallet-impl/src/main/java/io/novafoundation/nova/feature_wallet_impl/data/network/blockchain/updaters/balance/FullSyncPaymentUpdater.kt @@ -46,7 +46,14 @@ internal class FullSyncPaymentUpdater( ): Flow { val accountId = scopeValue.requireAccountIdIn(chain) - return chain.enabledAssets().map { chainAsset -> + val enabled = chain.enabledAssets() + Log.d( + "BalancesDiag", + "FullSyncPaymentUpdater(${chain.name}): allAssets=${chain.assets.map { "${it.symbol}(id=${it.id},enabled=${it.enabled},type=${it.type})" }} " + + "enabledAssets=${enabled.map { it.symbol }}" + ) + + return enabled.map { chainAsset -> syncAsset(chainAsset, scopeValue, accountId, storageSubscriptionBuilder) } .mergeIfMultiple()