2020117-agent 0.4.0 → 0.4.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/dist/agent.js +2 -1
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -357,7 +357,8 @@ function subscribeNipXX(label) {
|
|
|
357
357
|
function subscribeDvmRequests(label) {
|
|
358
358
|
if (!state.sovereignKeys || !state.relayPool)
|
|
359
359
|
return;
|
|
360
|
-
|
|
360
|
+
// Subscribe to all DVM requests of our kind (broadcast + directed)
|
|
361
|
+
state.relayPool.subscribe({ kinds: [KIND] }, (event) => {
|
|
361
362
|
handleDvmRequest(label, event).catch(e => {
|
|
362
363
|
console.error(`[${label}] DVM request error: ${e.message}`);
|
|
363
364
|
});
|