@electrum-cash/network 3.3.0-development.6103536979 → 3.3.1-development.6372294997

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/index.cjs CHANGED
@@ -533,11 +533,17 @@ $5c1f0c31f90fde04$export$2e2bcd8739ae039 = $5c1f0c31f90fde04$var$ElectrumSocket;
533
533
  this.emit("version", {
534
534
  error: currentStatement.error
535
535
  });
536
- else // Emit a successful version negotiation response signal.
537
- this.emit("version", {
538
- software: currentStatement.result[0],
539
- protocol: currentStatement.result[1]
540
- });
536
+ else {
537
+ // Extract the software and protocol version reported.
538
+ const [software, protocol] = currentStatement.result;
539
+ // Store the reported software description.
540
+ this.software = software;
541
+ // Emit a successful version negotiation response signal.
542
+ this.emit("version", {
543
+ software: software,
544
+ protocol: protocol
545
+ });
546
+ }
541
547
  continue;
542
548
  }
543
549
  // If the current statement is a keep-alive response..