Canada-eCoin / Canada-eCoin-qt

Canada eCoin desktop client for linux/mac/pc
https://canadaecoin.ca
MIT License
3 stars 3 forks source link

missing bits in getauxblock #6

Open djayr opened 6 years ago

djayr commented 6 years ago

Getauxblock output for Canadaecoin is like

{ "target": "000000000000000000000000000000000000000025f517000000000000000000", "hash": "947430409f2735a557b918f219b19567d339a4fcd4c93ef9e463b787fc52ba31", "chainid": Getauxblock output for Unobtanium is like

{ "target": "000000000000000000000000000000000000000025f517000000000000000000", "hash": "947430409f2735a557b918f219b19567d339a4fcd4c93ef9e463b787fc52ba31", "chainid": 1 }

Look how it's for namecoin

{ "hash": "574f20c7b2b1f810e9d7adf5b72af031112fc51bd770608b6bafd694b3efa0c7", "chainid": 1, "previousblockhash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206", "coinbasevalue": 5000000000, "bits": "207fffff", "height": 1, "_target": "0000000000000000000000000000000000000000000000000000000000ffff7f" }

[nBits field in bitcoin block header] (https://bitcoin.org/en/developer-reference#target-nbits)

Can you please add "bits" in getauxblock output ? }

Look how it's for namecoin

{ "hash": "574f20c7b2b1f810e9d7adf5b72af031112fc51bd770608b6bafd694b3efa0c7", "chainid": 1, "previousblockhash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206", "coinbasevalue": 5000000000, "bits": "207fffff", "height": 1, "_target": "0000000000000000000000000000000000000000000000000000000000ffff7f" }

[nBits field in bitcoin block header] (https://bitcoin.org/en/developer-reference#target-nbits)

1)Can you please add "bits" in getauxblock output ? 2)Can you please change chainid to some other number different than 1,2. (You can't merge mine if id's are the same)