@bsv/overlay-discovery-services 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/overlay-discovery-services",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "description": "BSV Blockchain Overlay Services Engine",
6
6
  "main": "dist/cjs/mod.js",
@@ -121,13 +121,18 @@ export class WalletAdvertiser implements Advertiser {
121
121
  resolver = new LookupResolver({ networkPreset: network })
122
122
  }
123
123
  const advertisements: Advertisement[] = []
124
- const lookupAnswer = await resolver.query({
125
- service: protocol === 'SHIP' ? 'ls_ship' : 'ls_slap',
126
- query: {
127
- identityKey: this.identityKey
128
- }
129
- })
130
-
124
+ let lookupAnswer
125
+ try {
126
+ lookupAnswer = await resolver.query({
127
+ service: protocol === 'SHIP' ? 'ls_ship' : 'ls_slap',
128
+ query: {
129
+ identityKey: this.identityKey
130
+ }
131
+ })
132
+ } catch (e) {
133
+ console.warn(`Error finding ${protocol} advertisements`, e)
134
+ return advertisements
135
+ }
131
136
  // Lookup will currently always return type output-list
132
137
  if (lookupAnswer.type === 'output-list') {
133
138
  lookupAnswer.outputs.forEach(output => {