File tree 1 file changed +2
-1
lines changed
packages/wallet/src/Wallets
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ import { RetryBackoffConfig } from 'backoff-rxjs';
112
112
import { Shutdown , contextLogger , deepEquals } from '@cardano-sdk/util' ;
113
113
import { WalletStores , createInMemoryWalletStores } from '../persistence' ;
114
114
import { getScriptAddress } from './internals' ;
115
+ import { onlyDistinctBlockRefetch } from '../services/DrepInfoTracker' ;
115
116
import isEqual from 'lodash/isEqual.js' ;
116
117
import uniq from 'lodash/uniq.js' ;
117
118
@@ -521,7 +522,7 @@ export class BaseWallet implements ObservableWallet {
521
522
knownAddresses$ : this . addresses$ ,
522
523
logger : contextLogger ( this . #logger, 'delegation' ) ,
523
524
protocolParameters$ : this . protocolParameters$ ,
524
- refetchRewardAccountInfo$ : this . #refetchRewardAccountInfo$,
525
+ refetchRewardAccountInfo$ : onlyDistinctBlockRefetch ( this . #refetchRewardAccountInfo$, this . tip$ ) ,
525
526
retryBackoffConfig,
526
527
rewardAccountAddresses$ : this . addresses$ . pipe (
527
528
map ( ( addresses ) => uniq ( addresses . map ( ( groupedAddress ) => groupedAddress . rewardAccount ) ) )
You can’t perform that action at this time.
0 commit comments