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

"get rates" doesn't understand v1 rates #52

Open
WhoSoup opened this issue Oct 7, 2019 · 1 comment
Open

"get rates" doesn't understand v1 rates #52

WhoSoup opened this issue Oct 7, 2019 · 1 comment

Comments

@WhoSoup
Copy link
Contributor

WhoSoup commented Oct 7, 2019

The pegnetd node errors on V1 rates:

(v2 activation height)

$ pegnetd get rates 210330
{"PEG":"0","pADA":"0.04641384","pBNB":"20.30758377","pBRL":"0.24451683","pCAD":"0.75503038","pCHF":"1.00763281","pCNY":"0.14149677","pDASH":"89.35304181","pDCR":"21.87815282","pETH":"192.06360392","pEUR":"1.10054587","pFCT":"3.12754958","pGBP":"1.24254781","pHKD":"0.12790258","pINR":"0.01395666","pJPY":"0.00926388","pKRW":"0.00084379","pLTC":"70.85025702","pMXN":"0.05139827","pPHP":"0.01912669","pRVN":"0.03167611","pSGD":"0.72679542","pUSD":"1","pXAG":"17.92114695","pXAU":"1503.75939849","pXBC":"304.07238158","pXBT":"10210.52956099","pXLM":"0.05876461","pXMR":"73.05056356","pZEC":"48.03699448"}

one height earlier:

$ pegnetd get rates 210329
Failed to make RPC request
Details:
json.Unmarshal({"jsonrpc":"2.0","result":{"pADA":4630000,"pBNB":2029990000,"pBRL":24490000,"pCAD":75500000,"pCHF":100770000,"pCNY":14140000,"pDASH":8912040000,"pDCR":2194750000,"pETH":19193120000,"pEUR":110000000,"pFCT":313090000,"pGBP":124200000,"pHKD":12790000,"pINR":1390000,"pJPY":920000,"pKRW":80000,"pLTC":7064430000,"pMXN":5140000,"pPHP":1910000,"pPNT":0,"pRVN":3170000,"pSGD":72670000,"pUSD":100000000,"pXAG":1792850000,"pXAU":150375930000,"pXBC":30384980000,"pXBT":1021009450000,"pXLM":5870000,"pXMR":7299770000,"pXPD":160410650000,"pXPT":93374160000,"pZEC":4805240000},"id":662}): invalid token type
exit status 1
@Emyrk
Copy link
Member

Emyrk commented Oct 7, 2019

Ahh yea. We tossed XPD and the other. So they are invalid. Good catch, we'll have to put in an exception for them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants