This commit is contained in:
Arionum
2018-08-13 02:36:20 +03:00
parent 8c32d1c71b
commit 57d2257c43
4 changed files with 88 additions and 13 deletions

View File

@@ -252,10 +252,6 @@ elseif ($q == "currentBlock") {
} // return a specific block, used in syncing
elseif ($q == "getBlock") {
$height = intval($data['height']);
if($_config['masternode'] ==true){
$current = $block->current();
if($current['height']%3==2) api_err('masternode block');
}
$export = $block->export("", $height);
if (!$export) {
api_err("invalid-block");
@@ -265,10 +261,6 @@ if($current['height']%3==2) api_err('masternode block');
// returns X block starting at height, used in syncing
$height = intval($data['height']);
if($_config['masternode'] ==true){
$current = $block->current();
if($current['height']%3==2) api_err('masternode block');
}
$r = $db->run(
"SELECT id,height FROM blocks WHERE height>=:height ORDER by height ASC LIMIT 100",