@leofcoin/peernet 0.15.1 → 0.15.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/peernet.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "",
5
5
  "source": "src/peernet.js",
6
6
  "main": "dist/commonjs/peernet.js",
package/src/peernet.js CHANGED
@@ -40,8 +40,8 @@ export default class Peernet {
40
40
  this.network = options.network || 'leofcoin'
41
41
  this.stars = options.stars
42
42
  const parts = this.network.split(':')
43
- this.networkVersion = parts.length > 1 ? parts[1] : 'mainnet'
44
-
43
+ this.networkVersion = options.networkVersion ? options.networkVersion : parts.length > 1 ? parts[1] : 'mainnet'
44
+
45
45
  if (!options.storePrefix) options.storePrefix = 'lfc'
46
46
  if (!options.port) options.port = 2000
47
47
  if (!options.root) {