@drift-labs/sdk 2.37.1-beta.11 → 2.37.1-beta.12
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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.37.1-beta.
|
|
1
|
+
2.37.1-beta.12
|
|
@@ -168,7 +168,18 @@ class BulkAccountLoader {
|
|
|
168
168
|
}
|
|
169
169
|
handleAccountCallbacks(accountToLoad, buffer, slot) {
|
|
170
170
|
for (const [_, callback] of accountToLoad.callbacks) {
|
|
171
|
-
|
|
171
|
+
try {
|
|
172
|
+
callback(buffer, slot);
|
|
173
|
+
}
|
|
174
|
+
catch (e) {
|
|
175
|
+
console.log('Bulk account load: error in account callback');
|
|
176
|
+
console.log('accounto to load', accountToLoad.publicKey.toString());
|
|
177
|
+
console.log('buffer', buffer.toString('base64'));
|
|
178
|
+
for (const callback of accountToLoad.callbacks.values()) {
|
|
179
|
+
console.log('account to load cb', callback);
|
|
180
|
+
}
|
|
181
|
+
throw e;
|
|
182
|
+
}
|
|
172
183
|
}
|
|
173
184
|
}
|
|
174
185
|
getBufferAndSlot(publicKey) {
|
package/package.json
CHANGED
|
@@ -229,7 +229,17 @@ export class BulkAccountLoader {
|
|
|
229
229
|
slot: number
|
|
230
230
|
): void {
|
|
231
231
|
for (const [_, callback] of accountToLoad.callbacks) {
|
|
232
|
-
|
|
232
|
+
try {
|
|
233
|
+
callback(buffer, slot);
|
|
234
|
+
} catch (e) {
|
|
235
|
+
console.log('Bulk account load: error in account callback');
|
|
236
|
+
console.log('accounto to load', accountToLoad.publicKey.toString());
|
|
237
|
+
console.log('buffer', buffer.toString('base64'));
|
|
238
|
+
for (const callback of accountToLoad.callbacks.values()) {
|
|
239
|
+
console.log('account to load cb', callback);
|
|
240
|
+
}
|
|
241
|
+
throw e;
|
|
242
|
+
}
|
|
233
243
|
}
|
|
234
244
|
}
|
|
235
245
|
|