Commit 7454cd4e authored by shajiaming's avatar shajiaming

fix

parent 83e5bf78
......@@ -90,7 +90,7 @@ class OrderController extends Controller
//正式环境查询共识高度
//3步交易情况下需要做高度判断,2步交易无须判断
$node_params = [
$node = [
'scheme' => 'https',
'host' => 'jiedian1.bityuan.com',
'port' => 8801
......@@ -161,8 +161,11 @@ class OrderController extends Controller
//3步交易情况下需要做高度判断,2步交易注释IF判断
if (CoinCTocTransfer::CONSENSUE_YES == $val['consensus'] && true == $switch && isset($height)) {
$service = new Chain33Service($node_params);
$service = new Chain33Service($node);
$result = $service->getHeight();
if (!isset($result['result'])) {
continue;
}
$consensHeight = $result['result']['consensHeight'];
if ($consensHeight < $height) {
continue;
......
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