update pending payouts query to include revoked, fix scheduler logging
This commit is contained in:
parent
8657dc9343
commit
cafb39279b
|
@ -321,11 +321,9 @@ SELECT
|
||||||
i.issue_id AS issue_id,
|
i.issue_id AS issue_id,
|
||||||
u.address AS payout_address,
|
u.address AS payout_address,
|
||||||
i.execute_hash AS execute_hash
|
i.execute_hash AS execute_hash
|
||||||
FROM issues i, pull_requests p, users u
|
FROM issues i, repositories r, users u
|
||||||
WHERE
|
WHERE i.repo_id = r.repo_id
|
||||||
p.issue_id = i.issue_id
|
AND u.id = r.user_id
|
||||||
AND p.repo_id = i.repo_id
|
|
||||||
AND u.id = p.user_id
|
|
||||||
AND i.confirm_hash IS NULL
|
AND i.confirm_hash IS NULL
|
||||||
AND i.execute_hash IS NOT NULL;
|
AND i.execute_hash IS NOT NULL;
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@
|
||||||
(when-let [receipt (eth/get-transaction-receipt execute-hash)]
|
(when-let [receipt (eth/get-transaction-receipt execute-hash)]
|
||||||
(log/infof "issue %s: execution receipt for issue " issue-id receipt)
|
(log/infof "issue %s: execution receipt for issue " issue-id receipt)
|
||||||
(when-let [confirm-hash (multisig/find-confirmation-tx-id receipt)]
|
(when-let [confirm-hash (multisig/find-confirmation-tx-id receipt)]
|
||||||
(log/infof "issue %s: confirm hash:" issue-id confirm-hash)
|
(log/infof "issue %s: confirm hash:%s" issue-id confirm-hash)
|
||||||
(tracker/untrack-tx! {:issue-id issue-id
|
(tracker/untrack-tx! {:issue-id issue-id
|
||||||
:tx-hash execute-hash
|
:tx-hash execute-hash
|
||||||
:result confirm-hash
|
:result confirm-hash
|
||||||
|
|
Loading…
Reference in New Issue