mirror of
https://github.com/joinmarket-webui/jam.git
synced 2026-08-17 13:07:34 +02:00
refactor: rename blockHeightInreased to blockHeightChanged
This commit is contained in:
parent
f1783e811f
commit
00a7dcf055
1 changed files with 4 additions and 4 deletions
|
|
@ -491,16 +491,16 @@ const WalletInfoAutoReload = () => {
|
|||
function refetchWalletInfoAfterBlockHeightIncrease() {
|
||||
if (currentBlockHeight === undefined) return
|
||||
|
||||
const blockHeightIncreased =
|
||||
const blockHeightChanged =
|
||||
previousBlockHeightRef.current !== undefined && previousBlockHeightRef.current !== currentBlockHeight
|
||||
previousBlockHeightRef.current = currentBlockHeight
|
||||
|
||||
if (!blockHeightIncreased) {
|
||||
console.debug('Abort refetching: Block height did not increase.')
|
||||
if (!blockHeightChanged) {
|
||||
console.debug('Abort refetching: Block height did not change.')
|
||||
return
|
||||
}
|
||||
|
||||
const delayBefore: Milliseconds = RELOAD_WALLET_INFO_DELAY.AFTER_BLOCK_HEIGHT_CHANGE
|
||||
const delayBefore = RELOAD_WALLET_INFO_DELAY.AFTER_BLOCK_HEIGHT_CHANGE
|
||||
console.debug('Trigger refetch looking for funds AFTER_BLOCK_HEIGHT_CHANGE with delay %d...', delayBefore)
|
||||
|
||||
const abortCtrl = new AbortController()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue