Skip to content

Commit

Permalink
fixed botched tests, removed extra issue
Browse files Browse the repository at this point in the history
  • Loading branch information
setzeus committed Mar 15, 2024
1 parent f7d8dd7 commit f98c058
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stackslib/src/chainstate/stacks/boot/signers-voting.clar
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
(define-constant ERR_DUPLICATE_VOTE u15)
(define-constant ERR_FAILED_TO_RETRIEVE_SIGNERS u16)
(define-constant ERR_INVALID_ROUND u17)
(define-constant ERR_GET_SIGNER_WEIGHT u18)

(define-constant pox-info
(unwrap-panic (contract-call? .pox-4 get-pox-info)))
Expand Down Expand Up @@ -144,7 +143,7 @@
(define-public (vote-for-aggregate-public-key (signer-index uint) (key (buff 33)) (round uint) (reward-cycle uint))
(let ((tally-key {reward-cycle: reward-cycle, round: round, aggregate-public-key: key})
;; vote by signer weight
(signer-weight (unwrap! (get-signer-weight signer-index reward-cycle) (err ERR_GET_SIGNER_WEIGHT)))
(signer-weight (try! (get-signer-weight signer-index reward-cycle)))
(new-total (+ signer-weight (default-to u0 (map-get? tally tally-key))))
(cached-weight (try! (get-and-cache-total-weight reward-cycle)))
(threshold-weight (get-threshold-weight reward-cycle))
Expand Down

0 comments on commit f98c058

Please sign in to comment.