Fixed bug: block_raw_str_hex out of scope
This commit is contained in:
parent
97d7c6ecde
commit
e98754eab8
@ -193,11 +193,11 @@ BlockService.prototype.getRawBlock = function(hash, callback) {
|
|||||||
if(typeof block_raw_str_hex == "undefined" || block_raw_str_hex == ''){
|
if(typeof block_raw_str_hex == "undefined" || block_raw_str_hex == ''){
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
log.info("Testing getRawBlock " + block_raw_str_hex);
|
||||||
|
callback(null, block_raw_str_hex);
|
||||||
} catch(e){
|
} catch(e){
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
log.info("Testing getRawBlock " + block_raw_str_hex);
|
|
||||||
callback(null, block.toRaw().toString('hex'));
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user