This commit is contained in:
sebastianpaulp 2018-04-05 13:09:30 +00:00 committed by GitHub
commit 1d72cc56fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ var getBlockByHash = async function(peer, channelName, hash, username, org_name)
throw new Error(message);
}
let response_payload = await channel.queryBlockByHash(Buffer.from(hash), peer);
let response_payload = await channel.queryBlockByHash(Buffer.from(hash,'hex'), peer);
if (response_payload) {
logger.debug(response_payload);
return response_payload;