Commit 1990c78b authored by shajiaiming's avatar shajiaiming

查询平行链高度和共识高度

parent eb00cc7c
......@@ -110,7 +110,10 @@ class CrossChainController extends Controller
// 'port' => 8801
// ];
$service = new Chain33Service($node_params);
$result = $service->getHeight();
$payload = [
"data" => 'user.p.game',
];
$result = $service->chainQuery('paracross', 'GetHeight', $payload);
$consensHeight = $result['result']['consensHeight'];
$current_time = time();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment