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.
This commit is contained in:
2026-07-09 10:05:42 -07:00
parent 2bb8a4e3d0
commit d7cae696c8
@@ -46,7 +46,14 @@ internal class FullSyncPaymentUpdater(
): Flow<Updater.SideEffect> {
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()