tendermint
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -63,6 +63,7 @@ 'use strict'; | ||
// hardcoded into the client, or previously verified/stored, | ||
// but it doesn't hurt to do a sanity check. not required | ||
// for first block, since we might be deriving it from genesis | ||
// but it doesn't hurt to do a sanity check. commit verifification | ||
// not required for first block, since we might be deriving it from | ||
// genesis | ||
verifyValidatorSet(state.validators, state.header.validators_hash); | ||
if (state.header.height > 1 || state.commit != null) { | ||
verifyValidatorSet(state.validators, state.header.validators_hash); | ||
verifyCommit(state.header, state.commit, state.validators); | ||
@@ -69,0 +70,0 @@ } |
@@ -200,3 +200,3 @@ 'use strict'; | ||
// count this validator's voting power | ||
committedVotingPower += _validator.voting_power; | ||
committedVotingPower += safeParseInt(_validator.voting_power); | ||
} | ||
@@ -276,3 +276,3 @@ | ||
var validatorSetHash = getValidatorSetHash(validators); | ||
if (validatorSetHash !== expectedHash) { | ||
if (expectedHash != null && validatorSetHash !== expectedHash) { | ||
throw Error('Validator set does not match what we expected'); | ||
@@ -279,0 +279,0 @@ } |
{ | ||
"name": "tendermint", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "A light client which talks to your Tendermint node over RPC", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "depcheck && standard index.js src/*.js test/*.js && nyc ava", | ||
"pretest": "depcheck --ignores=airtap && standard src test example index.js", | ||
"test": "npm run pretest && nyc ava test/lightNodeIntegration.js test/rpc.js test/attacks.js && npm run test-light", | ||
"test-light": "nyc tape test/common.js test/types.js test/verify.js", | ||
"test-browser": "npm run pretest && ./test/browser.sh", | ||
"build": "rm -rf lib && babel src -d lib", | ||
@@ -28,2 +31,3 @@ "source": "rm -rf lib && ln -s src lib", | ||
"devDependencies": { | ||
"airtap": "^0.1.0", | ||
"ava": "^0.25.0", | ||
@@ -36,2 +40,3 @@ "babel-cli": "^6.18.0", | ||
"standard": "^11.0.1", | ||
"tape": "^4.9.1", | ||
"tempy": "^0.2.1", | ||
@@ -38,0 +43,0 @@ "tendermint-node": "^3.4.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43097
977
12