confirmations
This commit is contained in:
@@ -200,6 +200,9 @@ class Transaction {
|
|||||||
public function get_transaction($id){
|
public function get_transaction($id){
|
||||||
global $db;
|
global $db;
|
||||||
$acc=new Account;
|
$acc=new Account;
|
||||||
|
$block=new Block;
|
||||||
|
$current=$block->current();
|
||||||
|
|
||||||
$x=$db->row("SELECT * FROM transactions WHERE id=:id",array(":id"=>$id));
|
$x=$db->row("SELECT * FROM transactions WHERE id=:id",array(":id"=>$id));
|
||||||
|
|
||||||
if(!$x) return false;
|
if(!$x) return false;
|
||||||
@@ -222,6 +225,8 @@ class Transaction {
|
|||||||
// return the transactions for a specific block id or height
|
// return the transactions for a specific block id or height
|
||||||
public function get_transactions($height="", $id=""){
|
public function get_transactions($height="", $id=""){
|
||||||
global $db;
|
global $db;
|
||||||
|
$block=new Block;
|
||||||
|
$current=$block->current();
|
||||||
$acc=new Account;
|
$acc=new Account;
|
||||||
$height=san($height);
|
$height=san($height);
|
||||||
$id=san($id);
|
$id=san($id);
|
||||||
|
|||||||
Reference in New Issue
Block a user