From 1f7e8a5ef64a5667a08487f68ac0fc210887cbb8 Mon Sep 17 00:00:00 2001 From: J-Dog Date: Mon, 29 Apr 2024 13:53:24 -0700 Subject: [PATCH] fix `CALLBACK_BLOCK` verification --- indexer/includes/actions/issue.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/indexer/includes/actions/issue.php b/indexer/includes/actions/issue.php index ca1d83d..377b6e6 100644 --- a/indexer/includes/actions/issue.php +++ b/indexer/includes/actions/issue.php @@ -243,12 +243,8 @@ function btnsIssue( $params=null, $data=null, $error=null){ if(!$error && $btInfo && $btnInfo->LOCK_CALLBACK && isset($data->CALLBACK_AMOUNT) && $data->CALLBACK_AMOUNT!=$btnInfo->CALLBACK_AMOUNT) $error = 'invalid: CALLBACK_AMOUNT (locked)'; - // Verify CALLBACK_BLOCK only increases in value - if(!$error && $btInfo && isset($data->CALLBACK_BLOCK) && $data->CALLBACK_BLOCK < $btnInfo->CALLBACK_BLOCK) - $error = 'invalid: CALLBACK_BLOCK (decreased)'; - // Verify CALLBACK_BLOCK is greater than current block index - if(!$error && $btInfo && isset($data->CALLBACK_BLOCK) && $data->CALLBACK_BLOCK > $data->BLOCK_INDEX) + if(!$error && $btInfo && isset($data->CALLBACK_BLOCK) && $data->CALLBACK_BLOCK < $data->BLOCK_INDEX) $error = 'invalid: CALLBACK_BLOCK (block index)'; // Verify CALLBACK_BLOCK can not be changed if supply is distributed