Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc fixes and BTC Order minimum bump to 0.00001 #1070

Closed
wants to merge 9 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dividend 0 quantity holders fix
- update dividends to exclude 0 quantity holders

Fixes https://github.com/CounterpartyXCP/counterparty-lib/issues/1044
  • Loading branch information
jdogresorg committed Mar 3, 2020
commit 025cba1003a24eeb568910f25a62b47720f4d930
4 changes: 2 additions & 2 deletions counterpartylib/lib/messages/dividend.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def validate (db, source, quantity_per_unit, asset, dividend_asset, block_index)
return None, None, problems, 0
dividend_divisible = issuances[0]['divisible']

# Calculate dividend quantities.
holders = util.holders(db, asset)
# Calculate dividend quantities (exclude empty 0 quantity holders)
holders = util.holders(db, asset, True)
outputs = []
addresses = []
dividend_total = 0
Expand Down