root credit

This commit is contained in:
shocknet-justin 2025-12-23 10:18:55 -05:00
parent dff50783bb
commit e65bf8c451

View file

@ -213,7 +213,10 @@ export default class {
// Check if this address belongs to a user (lazy lookup - only for addresses in transactions) // Check if this address belongs to a user (lazy lookup - only for addresses in transactions)
const userAddress = await this.storage.paymentStorage.GetAddressOwner(output.address) const userAddress = await this.storage.paymentStorage.GetAddressOwner(output.address)
if (!userAddress) { if (!userAddress) {
// Not a user address, skip // Root address - track for metrics (matches addressPaidCb behavior)
const amount = Number(output.amount)
const outputIndex = Number(output.outputIndex)
await this.storage.metricsStorage.AddRootOperation("chain", `${output.address}:${tx.txHash}:${outputIndex}`, amount)
continue continue
} }