capitalisk-dex 18.0.3 → 18.0.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/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -39,6 +39,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
39
39
|
this.options = {...defaultConfig, ...config};
|
|
40
40
|
this.appConfig = appConfig;
|
|
41
41
|
this.alias = alias || DEFAULT_MODULE_ALIAS;
|
|
42
|
+
this.networkAlias = this.options.networkAlias || this.alias;
|
|
42
43
|
this.updater = updater;
|
|
43
44
|
if (!updates) {
|
|
44
45
|
updates = [];
|
|
@@ -1296,7 +1297,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
1296
1297
|
|
|
1297
1298
|
let hasMultisigWalletsInfo = false;
|
|
1298
1299
|
|
|
1299
|
-
this.channel.subscribe(`network:event:${this.
|
|
1300
|
+
this.channel.subscribe(`network:event:${this.networkAlias}:signatures`, async ({data}) => {
|
|
1300
1301
|
if (!hasMultisigWalletsInfo) {
|
|
1301
1302
|
return;
|
|
1302
1303
|
}
|
|
@@ -2709,7 +2710,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
2709
2710
|
|
|
2710
2711
|
// Broadcast the signature to all DEX nodes with a matching baseAddress and quoteAddress
|
|
2711
2712
|
async _broadcastSignaturesToSubnet(signatureDataList) {
|
|
2712
|
-
let actionRouteString = `${this.
|
|
2713
|
+
let actionRouteString = `${this.networkAlias}?baseAddress=${this.baseAddress}"eAddress=${this.quoteAddress}`;
|
|
2713
2714
|
try {
|
|
2714
2715
|
await this.channel.invoke('network:emit', {
|
|
2715
2716
|
event: `${actionRouteString}:signatures`,
|