Skip to content
This repository has been archived by the owner on Dec 29, 2018. It is now read-only.

Payout distribution is broken #26

Closed
pmconrad opened this issue Nov 23, 2017 · 0 comments
Closed

Payout distribution is broken #26

pmconrad opened this issue Nov 23, 2017 · 0 comments
Assignees
Milestone

Comments

@pmconrad
Copy link
Collaborator

  1. pay_to_* assumes that payouts are always in the same asset type
  2. Splitting payouts among multiple users can result in some satoshis being left over, which are simply lost by the current implementation. As a result, the total_supply global variable gets out of sync.
  3. Payout logic after changes in the payee lists is broken.

https://github.com/themuseblockchain/Muse-Source/blob/HF_1/libraries/chain/database.cpp#L1648
https://github.com/themuseblockchain/Muse-Source/blob/HF_1/libraries/chain/database.cpp#L1678
https://github.com/themuseblockchain/Muse-Source/blob/HF_1/libraries/chain/muse_evaluator.cpp#L365-L427

@pmconrad pmconrad added this to the 0.2.0 milestone Nov 23, 2017
pmconrad added a commit to pmconrad/Muse-Source that referenced this issue Dec 17, 2017
@pmconrad pmconrad self-assigned this Jan 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant