@bsv/sdk 1.4.4 → 1.4.5

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/sdk",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "type": "module",
5
5
  "description": "BSV Blockchain Software Development Kit",
6
6
  "main": "dist/cjs/mod.js",
@@ -161,7 +161,9 @@ export default class TopicBroadcaster implements Broadcaster {
161
161
  'Transactions sent via SHIP to Overlay Services must be serializable to BEEF format.'
162
162
  )
163
163
  }
164
- const interestedHosts = this.networkPreset === 'local' ? ['http://localhost:8080'] : await this.findInterestedHosts()
164
+ const interestedHosts = this.networkPreset === 'local'
165
+ ? [{ 'http://localhost:8080': new Set<string>(this.topics) }]
166
+ : await this.findInterestedHosts()
165
167
  if (Object.keys(interestedHosts).length === 0) {
166
168
  return {
167
169
  status: 'error',