Skip to content

Commit f811563

Browse files
committed
channels: reduce logging for fetched aliases and feeRates
1 parent 8be4b74 commit f811563

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/store/stores/channelStore.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ export default class ChannelStore {
133133
// set the alias on each channel in the store
134134
values(this.channels).forEach(c => {
135135
const alias = aliases[c.remotePubkey];
136-
if (alias) {
136+
if (alias && alias !== c.alias) {
137137
c.alias = alias;
138-
this._store.log.info(`updated channel ${c.chanId} with alias ${alias}`);
139138
}
140139
});
140+
this._store.log.info('updated channels with aliases', aliases);
141141
});
142142
}
143143

@@ -173,11 +173,11 @@ export default class ChannelStore {
173173
// set the fee on each channel in the store
174174
values(this.channels).forEach(c => {
175175
const rate = feeRates[c.chanId];
176-
if (rate) {
176+
if (rate && c.remoteFeeRate !== rate) {
177177
c.remoteFeeRate = rate;
178-
this._store.log.info(`updated channel ${c.chanId} with remoteFeeRate ${rate}`);
179178
}
180179
});
180+
this._store.log.info('updated channels with feeRates', feeRates);
181181
});
182182
}
183183

0 commit comments

Comments
 (0)