@bsv/wallet-toolbox 1.6.8 → 1.6.10

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/wallet-toolbox",
3
- "version": "1.6.8",
3
+ "version": "1.6.10",
4
4
  "description": "BRC100 conforming wallet, wallet storage and wallet signer components",
5
5
  "main": "./out/src/index.js",
6
6
  "types": "./out/src/index.d.ts",
@@ -507,7 +507,7 @@ export class ChaintracksStorageIdb extends ChaintracksStorageBase implements Cha
507
507
  }
508
508
 
509
509
  if (!db.objectStoreNames.contains('bulk_headers')) {
510
- const bulkHeadersStore = db.createObjectStore('proven_tx_reqs', {
510
+ const bulkHeadersStore = db.createObjectStore('bulk_headers', {
511
511
  keyPath: 'fileId',
512
512
  autoIncrement: true
513
513
  })
@@ -28,6 +28,7 @@ export async function createIdbChaintracks(
28
28
  fetch: ChaintracksFetchApi
29
29
  storage: ChaintracksStorageIdb
30
30
  chaintracks: Chaintracks
31
+ available: Promise<void>
31
32
  }> {
32
33
  try {
33
34
  fetch ||= new ChaintracksFetch()
@@ -95,14 +96,15 @@ export async function createIdbChaintracks(
95
96
  co.liveIngestors.push(new LiveIngestorWhatsOnChainPoll(liveOptions))
96
97
 
97
98
  const chaintracks = new Chaintracks(co)
98
- await chaintracks.makeAvailable()
99
+ const available = chaintracks.makeAvailable()
99
100
 
100
101
  return {
101
102
  chain,
102
103
  fetch,
103
104
  maxPerFile,
104
105
  storage,
105
- chaintracks
106
+ chaintracks,
107
+ available
106
108
  }
107
109
  } catch (error) {
108
110
  console.error('Error setting up Chaintracks with Idb Storage:', error)