File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
stackslib/src/chainstate/stacks/boot Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 664
664
(err ERR_STACKING_INVALID_POX_ADDRESS))
665
665
true )
666
666
667
- ;; address hashbytes must be valid for the version
668
- (asserts! (check-pox-addr-hashbytes (get version pox-addr) (get hashbytes pox-addr))
667
+ (match pox-addr
668
+ pox-tuple
669
+ (asserts! (check-pox-addr-hashbytes (get version pox-tuple) (get hashbytes pox-tuple))
669
670
(err ERR_STACKING_INVALID_POX_ADDRESS))
671
+ true )
670
672
671
673
;; tx-sender must not be delegating
672
674
(asserts! (is-none (get-check-delegation tx-sender ))
897
899
(let ((partial-amount-ustx (get stacked-amount partial-stacked))
898
900
;; reward-cycle must point to an existing record in reward-cycle-total-stacked
899
901
;; infallible; getting something from partial-stacked-by-cycle succeeded so this must succeed
900
- (existing-cycle-total (unwrap-panic (map-get? reward-cycle-total-stacked { reward-cycle : reward-cycle })))
902
+ (existing-cycle (unwrap-panic (map-get? reward-cycle-total-stacked { reward-cycle : reward-cycle })))
901
903
;; reward-cycle and reward-cycle-index must point to an existing record in reward-cycle-pox-address-list
902
- (existing-entry-total (unwrap! (map-get? reward-cycle-pox-address-list { reward-cycle : reward-cycle, index : reward-cycle-index })
904
+ (existing-entry (unwrap! (map-get? reward-cycle-pox-address-list { reward-cycle : reward-cycle, index : reward-cycle-index })
903
905
(err ERR_DELEGATION_NO_REWARD_SLOT)))
904
- (increased-entry-total (+ (get total-ustx existing-entry-total ) partial-amount-ustx))
905
- (increased-cycle-total (+ (get total-ustx existing-cycle-total ) partial-amount-ustx)))
906
+ (increased-entry-total (+ (get total-ustx existing-entry) partial-amount-ustx))
907
+ (increased-cycle-total (+ (get total-ustx existing-cycle) partial-amount-ustx)))
906
908
907
909
;; must be stackable
908
910
(try! (minimal-can-stack-stx pox-addr increased-entry-total reward-cycle u1 ))
You can’t perform that action at this time.
0 commit comments