tools/PTE/pte-snapshot.js
/**
 * query block info
 *
 * @param {object} channel The channel object
 * @returns the block height
 */
query block info
@param {object} channel The channel object
@returns the block height
query block info @param { object } channel The channel object @returns the block height
async function queryBlockInfo(channel) {
    const blockchainInfo = await channel.queryInfo();
    logger.info('[queryBlockInfo] block height= %d', blockchainInfo.height);
    return blockchainInfo.height;
}
async function queryBlockInfo ( channel ) { const blockchainInfo = await channel . queryInfo ( ) ; logger . info ( '[queryBlockInfo] block height= %d' , blockchainInfo . height ) ; return blockchainInfo . height ; }
query block info
 @param {object} channel The channel object
 @returns the block height
query block info @param { object } channel The channel object @returns the block height