Skip to content

Commit

Permalink
Change activation condition for 'payments fix'. (#1470)
Browse files Browse the repository at this point in the history
* Change activation condition for 'payments fix'.

This change relates to #1468.

* Change activation height for stagenet.
  • Loading branch information
nickeskov authored Aug 19, 2024
1 parent 6c25ea2 commit 5447d80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/ride/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,9 @@ func (e *EvaluationEnvironment) internalPaymentsValidationHeight() proto.Height
}

func (e *EvaluationEnvironment) paymentsFixActivated() bool {
return int(e.h) > int(e.paymentsFixAfter)
// according to the logic of the scala node
// see commit https://github.com/wavesplatform/Waves/commit/2f9e61c0fe04beeeb5b94b508b124a7ec1a746ff
return int(e.h) >= int(e.paymentsFixAfter)
}

func (e *EvaluationEnvironment) paymentsFixAfterHeight() proto.Height {
Expand Down
2 changes: 1 addition & 1 deletion pkg/settings/embedded/stagenet.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"unissued_asset_until_time": 0,
"invalid_reissue_in_same_block_until_time": 0,
"minimal_generating_balance_check_after_time": 0,
"payments_fix_after_height": 2195800,
"payments_fix_after_height": 2195900,
"internal_invoke_payments_validation_after_height": 966180,
"internal_invoke_correct_fail_reject_behaviour_after_height": 390000,
"invoke_no_zero_payments_after_height": 1317000,
Expand Down

0 comments on commit 5447d80

Please sign in to comment.