address/base58check: fix missing exceptions/tests

All the `invalid2` tests have been removed as they were not invalid
base58check.  They were actually valid in some cases.
They will be re-integrated in more specific bitcoin core tests in
relation to Address/ECKey respectively.
This commit is contained in:
Daniel Cousens 2014-05-28 13:34:10 +10:00
parent 47ae862ae9
commit 2fc69b0834
5 changed files with 28 additions and 88 deletions

View file

@ -28,7 +28,7 @@ function decode(string) {
var checksum = buffer.slice(-4)
var newChecksum = crypto.hash256(message).slice(0, 4)
assert.deepEqual(newChecksum, checksum)
assert.deepEqual(newChecksum, checksum, 'Invalid checksum')
var version = message.readUInt8(0)
var payload = message.slice(1)