Skip to content

Commit

Permalink
Moved catch
Browse files Browse the repository at this point in the history
  • Loading branch information
n9lsjr committed Mar 21, 2024
1 parent daaac84 commit e08d0ca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/Daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,7 @@ export class Daemon extends EventEmitter {
data = await this.makePostRequest(endpoint, {
knownTxsIds: knownTxs,
});
} catch (err) {
return false
}


logger.log(
`Making pool changes request, got data ${JSON.stringify(data)}`,
LogLevel.DEBUG,
Expand All @@ -431,6 +428,11 @@ export class Daemon extends EventEmitter {
const parsed = JSON.parse(json)
if (parsed.addedTxs.length === 0) return false
return parsed

} catch (err) {
return false
}

}
/**
* @param blockHashCheckpoints Hashes of the last known blocks. Later
Expand Down

0 comments on commit e08d0ca

Please sign in to comment.