renamed method
This commit is contained in:
parent
cbfcff3ba1
commit
1f58a1e152
@ -21,5 +21,5 @@ limitations under the License.
|
|||||||
// Include all settings and classes
|
// Include all settings and classes
|
||||||
require_once('shared.inc.php');
|
require_once('shared.inc.php');
|
||||||
|
|
||||||
// UPDATE ledger AS l INNER JOIN blocks as b ON l.assocBlock = b.height SET l.confirmed = 1 WHERE b.confirmations > 120 AND l.confirmed = 0;
|
// Confirm any outstanding credits
|
||||||
$ledger->confirmTransactions();
|
$ledger->confirmCredits();
|
||||||
|
|||||||
@ -24,8 +24,7 @@ class Ledger {
|
|||||||
return $this->sError;
|
return $this->sError;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function confirmTransactions() {
|
public function confirmCredits() {
|
||||||
// Confirm all outstanding transactions
|
|
||||||
$stmt = $this->mysqli->prepare("UPDATE
|
$stmt = $this->mysqli->prepare("UPDATE
|
||||||
ledger AS l
|
ledger AS l
|
||||||
INNER JOIN blocks as b ON l.assocBlock = b.height
|
INNER JOIN blocks as b ON l.assocBlock = b.height
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user