alias transactions
This commit is contained in:
@@ -212,13 +212,14 @@ class Account
|
|||||||
$block = new Block();
|
$block = new Block();
|
||||||
$current = $block->current();
|
$current = $block->current();
|
||||||
$public_key = $this->public_key($id);
|
$public_key = $this->public_key($id);
|
||||||
|
$alias = $this->account2alias($id);
|
||||||
$limit = intval($limit);
|
$limit = intval($limit);
|
||||||
if ($limit > 100 || $limit < 1) {
|
if ($limit > 100 || $limit < 1) {
|
||||||
$limit = 100;
|
$limit = 100;
|
||||||
}
|
}
|
||||||
$res = $db->run(
|
$res = $db->run(
|
||||||
"SELECT * FROM transactions WHERE dst=:dst or public_key=:src ORDER by height DESC LIMIT :limit",
|
"SELECT * FROM transactions WHERE dst=:dst or public_key=:src or dst=:alias ORDER by height DESC LIMIT :limit",
|
||||||
[":src" => $public_key, ":dst" => $id, ":limit" => $limit]
|
[":src" => $public_key, ":dst" => $id, ":limit" => $limit, ":alias"=>$alias]
|
||||||
);
|
);
|
||||||
|
|
||||||
$transactions = [];
|
$transactions = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user