Draft: Redirect operation fee to dividend #653

Closed
hirunda wants to merge 3 commits from feature/274/redirect_transaction_fees_to_dividends into develop
hirunda commented 2022-02-21 20:23:54 +00:00 (Migrated from gitlab.com)
No description provided.
hirunda commented 2022-02-21 20:23:54 +00:00 (Migrated from gitlab.com)

requested review from @serkixenos

requested review from @serkixenos
hirunda commented 2022-02-21 20:23:54 +00:00 (Migrated from gitlab.com)

assigned to @hirunda

assigned to @hirunda
serkixenos commented 2022-02-21 20:35:34 +00:00 (Migrated from gitlab.com)

>= instead of >

`>=` instead of `>`
serkixenos commented 2022-02-21 20:37:53 +00:00 (Migrated from gitlab.com)

dividend_distribution_account is not optional. Why using fc::optional? If using fc::optional, you also need to check it for validity before using it, as it might be uninitialized. Checkout fc::optional::valid()

         /// The account which collects pending payouts
         account_id_type dividend_distribution_account;
dividend_distribution_account is not optional. Why using fc::optional? If using fc::optional, you also need to check it for validity before using it, as it might be uninitialized. Checkout fc::optional::valid() ``` /// The account which collects pending payouts account_id_type dividend_distribution_account; ```
hirunda commented 2022-02-22 12:54:16 +00:00 (Migrated from gitlab.com)

I will provide the fix with next commit

I will provide the fix with next commit
hirunda commented 2022-02-22 12:56:54 +00:00 (Migrated from gitlab.com)

OK. You are right ... There should be check.
Would be much simpler to stay only with account_id_type dividend_distribution_account;, without introducing fc::optional ?

OK. You are right ... There should be check. Would be much simpler to stay only with `account_id_type dividend_distribution_account;`, without introducing fc::optional ?
hirunda commented 2022-03-01 11:35:42 +00:00 (Migrated from gitlab.com)

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/PBSA/peerplays/-/merge_requests/73/diffs?diff_id=341684797&start_sha=c729b247eda16f050c94629b91fa0cc2f4ef68ac#083cdba5f9f8df3588de47b22d2d380d6efc205f_135_131)
hirunda commented 2022-03-01 11:35:42 +00:00 (Migrated from gitlab.com)

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/PBSA/peerplays/-/merge_requests/73/diffs?diff_id=341684797&start_sha=c729b247eda16f050c94629b91fa0cc2f4ef68ac#083cdba5f9f8df3588de47b22d2d380d6efc205f_138_131)
hirunda commented 2022-03-01 11:35:42 +00:00 (Migrated from gitlab.com)

added 9 commits

  • c729b247...7d255894 - 7 commits from branch develop
  • b703b12c - Merge branch 'develop' into feature/274/redirect_transaction_fees_to_dividends
  • e8d8cf91 - redirect some fee to dividend account

Compare with previous version

added 9 commits <ul><li>c729b247...7d255894 - 7 commits from branch <code>develop</code></li><li>b703b12c - Merge branch &#39;develop&#39; into feature/274/redirect_transaction_fees_to_dividends</li><li>e8d8cf91 - redirect some fee to dividend account</li></ul> [Compare with previous version](/PBSA/peerplays/-/merge_requests/73/diffs?diff_id=341684797&start_sha=c729b247eda16f050c94629b91fa0cc2f4ef68ac)
hirunda commented 2022-03-01 13:11:55 +00:00 (Migrated from gitlab.com)

mentioned in issue #274

mentioned in issue #274
serkixenos commented 2022-03-04 19:15:42 +00:00 (Migrated from gitlab.com)

marked this merge request as draft

marked this merge request as **draft**
serkixenos commented 2022-09-14 17:02:18 +00:00 (Migrated from gitlab.com)

Closing MR as obsolete, but keep the branch as wee might need these changes sooner or later.

Closing MR as obsolete, but keep the branch as wee might need these changes sooner or later.
serkixenos (Migrated from gitlab.com) closed this pull request 2022-09-14 17:02:20 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#653
No description provided.