Commit f75e9b7f authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: breaking change

parent 03ac52b0
......@@ -174,6 +174,7 @@ module.exports = {
REVOCATION: exact(PUBKEY + ":" + SIGNATURE),
EXCLUDED: exact(PUBKEY),
INNER_HASH: find("InnerHash: (" + FINGERPRINT + ")"),
SPECIAL_HASH: 'E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855',
SPECIAL_BLOCK: '0-E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855'
},
TRANSACTION: {
......
......@@ -606,7 +606,9 @@ function checkCertificationIsValid (block, cert, findIdtyFunc, conf, dal) {
if (block.number == 0 && cert.block_number != 0) {
throw Error('Number must be 0 for root block\'s certifications');
} else {
let basedBlock;
let basedBlock = {
hash: constants.BLOCK.SPECIAL_HASH
};
if (block.number != 0) {
try {
basedBlock = yield dal.getBlock(cert.block_number);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment