debug: dump all meta accounts' tronAddress/tronPublicKey presence at startup

hasAccountIn=false was observed live for the currently active account despite
every derivation/mapping code path (creation, backfill, DB->domain mapping)
tracing correctly - need to see the actual DB state per account to know
whether this is a write-time or read-time gap.
This commit is contained in:
2026-07-11 02:10:00 -07:00
parent 7f071f4821
commit c713ebf6b2
@@ -87,6 +87,15 @@ class AccountDataSourceImpl(
}
Log.d("AccountDataSourceImpl", "migrations block done")
metaAccountDao.getMetaAccounts().forEach {
Log.d(
"TronDiag",
"metaId=${it.id} name=${it.name} type=${it.type} isSelected=${it.isSelected} " +
"tronAddress=${it.tronAddress?.joinToString("") { b -> "%02x".format(b) } ?: "NULL"} " +
"tronPublicKey=${if (it.tronPublicKey != null) "present(${it.tronPublicKey!!.size}B)" else "NULL"}"
)
}
}
}