@atomiqlabs/lp-lib 13.0.0-beta.2 → 13.0.0-beta.3
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.
|
@@ -81,6 +81,10 @@ class SpvVaultSwapHandler extends SwapHandler_1.SwapHandler {
|
|
|
81
81
|
}
|
|
82
82
|
async init() {
|
|
83
83
|
await this.storageManager.loadData(SpvVaultSwap_1.SpvVaultSwap);
|
|
84
|
+
for (let { obj: swap, hash, sequence } of await this.storageManager.query([])) {
|
|
85
|
+
if (swap.btcTxId != null)
|
|
86
|
+
this.btcTxIdIndex.set(swap.btcTxId, swap);
|
|
87
|
+
}
|
|
84
88
|
await this.Vaults.init();
|
|
85
89
|
this.subscribeToEvents();
|
|
86
90
|
await PluginManager_1.PluginManager.serviceInitialize(this);
|
package/package.json
CHANGED
|
@@ -146,6 +146,9 @@ export class SpvVaultSwapHandler extends SwapHandler<SpvVaultSwap, SpvVaultSwapS
|
|
|
146
146
|
|
|
147
147
|
async init(): Promise<void> {
|
|
148
148
|
await this.storageManager.loadData(SpvVaultSwap);
|
|
149
|
+
for(let {obj: swap, hash, sequence} of await this.storageManager.query([])) {
|
|
150
|
+
if(swap.btcTxId!=null) this.btcTxIdIndex.set(swap.btcTxId, swap);
|
|
151
|
+
}
|
|
149
152
|
await this.Vaults.init();
|
|
150
153
|
this.subscribeToEvents();
|
|
151
154
|
await PluginManager.serviceInitialize(this);
|