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

addcurrency requires xud restart #1498

Closed
kilrau opened this issue Apr 22, 2020 · 1 comment
Closed

addcurrency requires xud restart #1498

kilrau opened this issue Apr 22, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Help wanted from the community P3 low priority

Comments

@kilrau
Copy link
Contributor

kilrau commented Apr 22, 2020

Needs xud to be restarted to update the currencies in getbalance.

simnet > listcurrencies

Currencies:
┌────────┬────────┬────────────────────────────────────────────┬─────────────┐
│ Ticker │ Digits │ Token Address                              │ Swap Client │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ BTC    │ 8      │                                            │ Lnd         │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ LTC    │ 8      │                                            │ Lnd         │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ WETH   │ 18     │ 0x892F91dc428Fc3Dc0a57eC46C8245F2511b8a542 │ Raiden      │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ DAI    │ 18     │ 0x4115652c9025d99512e9026B8F11C3E265bfecD7 │ Raiden      │
└────────┴────────┴────────────────────────────────────────────┴─────────────┘
simnet > addcurrency ETH Connext 18 --token_address="0x0000000000000000000000000000000000000000"
success
simnet > listcurrencies

Currencies:
┌────────┬────────┬────────────────────────────────────────────┬─────────────┐
│ Ticker │ Digits │ Token Address                              │ Swap Client │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ BTC    │ 8      │                                            │ Lnd         │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ LTC    │ 8      │                                            │ Lnd         │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ WETH   │ 18     │ 0x892F91dc428Fc3Dc0a57eC46C8245F2511b8a542 │ Raiden      │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ DAI    │ 18     │ 0x4115652c9025d99512e9026B8F11C3E265bfecD7 │ Raiden      │
├────────┼────────┼────────────────────────────────────────────┼─────────────┤
│ ETH    │ 18     │ 0x0000000000000000000000000000000000000000 │ Connext     │
└────────┴────────┴────────────────────────────────────────────┴─────────────┘
simnet > getbalance

Balance:
┌──────────┬─────────────────┬────────────────────────────────────────────────────┬───────────────────────────────────────┐
│ Currency │ Total Balance   │ Channel Balance (Tradable)                         │ Wallet Balance (Not Tradable)         │
├──────────┼─────────────────┼────────────────────────────────────────────────────┼───────────────────────────────────────┤
│ BTC      │ 146478.99646479 │ 1.999538 (13.99756601 inactive | 0.999819 pending) │ 146369.00007637 (92.99946541 pending) │
├──────────┼─────────────────┼────────────────────────────────────────────────────┼───────────────────────────────────────┤
│ LTC      │ 365588.98647002 │ 4.00855202 (29.979502 inactive | 0.999638 pending) │ 365553.998778                         │
└──────────┴─────────────────┴────────────────────────────────────────────────────┴───────────────────────────────────────┘
@kilrau kilrau added bug Something isn't working P3 low priority labels Apr 22, 2020
@sangaman
Copy link
Collaborator

This is related to #1111.

@kilrau kilrau added enhancement New feature or request and removed bug Something isn't working labels May 27, 2020
@kilrau kilrau changed the title getbalance doesn't update currency list after addcurrency addcurrency requires xud restart May 27, 2020
@ghost ghost added the help wanted Help wanted from the community label Jun 8, 2020
@kilrau kilrau closed this as completed Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Help wanted from the community P3 low priority
Projects
None yet
Development

No branches or pull requests

2 participants