mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
fix a bug in function [getBlockByNumber] (#599)
This bug can lead to users can't change target peer to send query operations. Signed-off-by: liuchao <lcjia_you@126.com>
This commit is contained in:
parent
00a900d4d5
commit
1334022a1b
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ var getBlockByNumber = async function(peer, channelName, blockNumber, username,
|
|||
throw new Error(message);
|
||||
}
|
||||
|
||||
let response_payload = await channel.queryBlock(parseInt(blockNumber, peer));
|
||||
let response_payload = await channel.queryBlock(parseInt(blockNumber), peer);
|
||||
if (response_payload) {
|
||||
logger.debug(response_payload);
|
||||
return response_payload;
|
||||
|
|
|
|||
Loading…
Reference in a new issue