mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 21:55:53 +00:00
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:
+8
-1
@@ -46,7 +46,14 @@ internal class FullSyncPaymentUpdater(
|
|||||||
): Flow<Updater.SideEffect> {
|
): Flow<Updater.SideEffect> {
|
||||||
val accountId = scopeValue.requireAccountIdIn(chain)
|
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)
|
syncAsset(chainAsset, scopeValue, accountId, storageSubscriptionBuilder)
|
||||||
}
|
}
|
||||||
.mergeIfMultiple()
|
.mergeIfMultiple()
|
||||||
|
|||||||
Reference in New Issue
Block a user