missing payout_hash means maintainer confirmation is missing

This commit is contained in:
Martin Klepsch 2018-04-18 10:38:59 +02:00 committed by Tetiana Churikova
parent 9b431fd862
commit c18076d14f
1 changed files with 6 additions and 1 deletions

View File

@ -130,7 +130,12 @@
(cond (cond
(:payout_hash bounty) :paid (:payout_hash bounty) :paid
(nil? (:payout_address bounty)) :pending-contributor-address (nil? (:payout_address bounty)) :pending-contributor-address
(nil? (:confirm_hash bounty)) :pending-maintainer-confirmation ;; `confirm_hash` is set by us as soon as a PR is merged and the
;; contributor address is known. Usually end users should not need
;; to be aware of this step.
(nil? (:confirm_hash bounty)) :pending-sob-confirmation
;; `payout_hash` is set when the bounty issuer signs the payout
(nil? (:payout_hash bounty)) :pending-maintainer-confirmation
:else :merged) :else :merged)
(cond ; not yet merged (cond ; not yet merged
(< 1 (count (:claims bounty))) :multiple-claims (< 1 (count (:claims bounty))) :multiple-claims