Compare commits

...

4 Commits
master ... temp

Author SHA1 Message Date
Vivek Teega
b6a64351b3
Uncommenting 'getRawBlock' logging 2023-01-06 18:45:03 +05:30
Sai Raj
d831d36835
Commenting out 'getRawBlock' logging 2023-01-04 13:28:23 +05:30
Sai Raj
10db01654e
hotfix for crash 2023-01-03 21:00:21 +05:30
b4df8314a2
Update index.js
Added getRawBlack test data in logs to troubleshoot
2023-01-03 20:21:29 +05:30

View File

@ -181,9 +181,12 @@ BlockService.prototype.getRawBlock = function(hash, callback) {
if(err) { if(err) {
return callback(err); return callback(err);
} }
if (!block) { let block_raw = block.toRaw();
let block_raw_str_hex = block_raw.toString('hex');
if (!block || typeof block_raw == "undefined" || 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.toRaw().toString('hex')); callback(null, block.toRaw().toString('hex'));
}); });
}; };