@dashevo/dash-spv
Advanced tools
Comparing version 1.1.6 to 1.1.7-0
@@ -38,2 +38,12 @@ const DashUtil = require('@dashevo/dash-util'); | ||
}, | ||
getRegtestGenesis() { | ||
return utils.normalizeHeader({ | ||
version: 1, | ||
previousblockhash: '0000000000000000000000000000000000000000000000000000000000000000', | ||
merkleroot: 'e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7', | ||
time: 1390666206, | ||
bits: '1e0ffff0', | ||
nonce: 3861367235, | ||
}); | ||
}, | ||
getLivenetGenesis() { | ||
@@ -40,0 +50,0 @@ throw Error('Livenet genesis not yet implemented'); |
@@ -35,2 +35,10 @@ const BlockStore = require('./blockstore'); | ||
break; | ||
case 'regtest': | ||
this.network = 'regtest'; | ||
if (startBlock) { | ||
this.root = startBlock; | ||
break; | ||
} | ||
this.root = config.getRegtestGenesis(); | ||
break; | ||
case 'livenet': | ||
@@ -37,0 +45,0 @@ this.network = 'mainnet'; |
{ | ||
"name": "@dashevo/dash-spv", | ||
"version": "1.1.6", | ||
"description": "Temporary repo until spv functions moved into dashcore-lib", | ||
"version": "1.1.7-0", | ||
"description": "Repository containing SPV functions used by @dashevo", | ||
"main": "index.js", | ||
@@ -15,14 +15,14 @@ "scripts": { | ||
"@dashevo/dark-gravity-wave": "^1.1.1", | ||
"@dashevo/dashcore-lib": "^0.17.4", | ||
"@dashevo/dash-util": "^2.0.3", | ||
"levelup": "^4.0.1", | ||
"memdown": "^3.0.0" | ||
"@dashevo/dashcore-lib": "~0.19.39", | ||
"levelup": "^4.4.0", | ||
"memdown": "^5.1.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^5.16.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.17.3", | ||
"mocha": "^5.2.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint-plugin-import": "^2.24.2", | ||
"mocha": "^9.1.2", | ||
"should": "^13.2.3" | ||
} | ||
} | ||
} |
# dash-spv | ||
> Temporary repo until spv functions moved into dashcore-lib | ||
Set of SPV function used by js-dapi-client package | ||
No new features should be added to this repo. | ||
## License | ||
[MIT](LICENSE) © Dash Core Group, Inc. |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
961130
16
6729
2
8
1
+ Added@dashevo/dashcore-lib@0.19.44(transitive)
+ Added@types/node@12.20.55(transitive)
+ Addedbls-signatures@0.2.5(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedelliptic@6.6.1(transitive)
+ Addedhash-base@3.1.0(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedmemdown@5.1.0(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addedripemd160@2.0.2(transitive)
- Removed@dashevo/dashcore-lib@0.17.12(transitive)
- Removedabstract-leveldown@5.0.0(transitive)
- Removedmemdown@3.0.0(transitive)
- Removedsafe-buffer@5.1.2(transitive)
Updatedlevelup@^4.4.0
Updatedmemdown@^5.1.0