New Horizon!
I could not find the forum.nhzcrypto.org anymore,
and posting code into facebook is *meh*, so I am trying here.
It's a rather technical question,
please point me to someone who can
help me to understand this better.
Where can I find the HZ code documentation?
This is the code that I have written last night, and
debugged with nxt-people and nxtreporting.com:
# for NXT the following code returns correct results,
# i.e. identical to nxtreporting.com
url = "http://locahost:7876/nxt?"
# should work almost idential on HZ:
url = "http://localhost:7776/nhz?"
# get all asset ids, and descriptions
url += "requestType=getAllAssets"
allAssets = urlopenJson(url)
# analyze each asset:
for asset in allAssets["assets"]:
decimals = int(asset["decimals"])
QNTfactor = 1.0 pow (10, decimals)
QUANTITY = asset["quantityQNT"] * QNTfactor
My HZ results are
only identical with
https://explorer.horizonplatform.io/?page=assets for those assets with decimals=0 (e.g. NHZSPHERE, HZmint, etc.).
But for HZ assets with decimals!=0 the 'QUANTITY' is differing!!!On NXT, my above code works flawlessly, and for any decimals. See this discussion of last night:
https://nxtforum.org/general-discussion/a-question-from-the-nxt-facebook-group/msg168842/#msg168842Are the 'decimals' treated differently on HZ than on NXT ? How?
If the 'decimals' are treated identical on NH and on NXT ...
then the table at https://explorer.horizonplatform.io/?page=assets is wrong in its QUANTITY column!
Hmmm ... could really be a bug.
Here is a screenshot of the current webpagetable:

If I am right,
I claim a bug bounty
for finding this.
If I am wrong, I would like to understand this better, please teach me.
Anyways: Please everyone donate a little bit to this address:
NHZ-N7PX-MTZZ-VQGE-HHYZ4so that I can pay for my health insurance today,
I am totally broke. Thanks a lot!
;-)
---
EDIT: 17/3/2015: I am now placing my work under a newly created giveback-license-v01 =
http://altsheets.ddns.net/give/ Thanks.
EDIT: The bug
got fixed!