Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

xud-simnet-channels always different #17

Closed
kilrau opened this issue Dec 7, 2018 · 5 comments
Closed

xud-simnet-channels always different #17

kilrau opened this issue Dec 7, 2018 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@kilrau
Copy link

kilrau commented Dec 7, 2018

xud-simnet-1 on vm-1

vagrant@xud-simnet-1:~$ xucli listpeers
{
  "peersList": [
    {
      "address": "xud3.test.exchangeunion.com:8885",
      "nodePubKey": "03fd337659e99e628d0487e4f87acf93e353db06f754dccc402f2de1b857a319d0",
      "lndBtcPubKey": "030c2ffd29a92e2dd2fb6fb046b0d9157e0eda8b11caa0e439d0dd6a46a444381c",
      "lndLtcPubKey": "02f5e0324909bdb635d4d6a50aa07c517db59f5d18219fd058f9faa3ef3a1fd83a",
      "inbound": false,
      "pairsList": [
        "LTC/BTC"
      ],
      "xudVersion": "1.0.0-alpha.5",
      "secondsConnected": 48
    },
    {
      "address": "xud1.test.exchangeunion.com:8885",
      "nodePubKey": "02b66438730d1fcdf4a4ae5d3d73e847a272f160fee2938e132b52cab0a0d9cfc6",
      "lndBtcPubKey": "02d693d951ce4fc116b2b5e22e8e4966dd3cf9ad7600b8de24190d6af429f260c0",
      "lndLtcPubKey": "03114cda7206e92def08a35fc4039aba59394604fef9171ef19dbd5f938ce9387b",
      "inbound": false,
      "pairsList": [
        "LTC/BTC"
      ],
      "xudVersion": "1.0.0-alpha.5",
      "secondsConnected": 48
    }
  ]
}

xud-simnet-2 on vm-2

vagrant@xud-simnet-2:~/xud-simnet/xud$ xucli listpeers
{
  "peersList": [
    {
      "address": "xud1.test.exchangeunion.com:8885",
      "nodePubKey": "02b66438730d1fcdf4a4ae5d3d73e847a272f160fee2938e132b52cab0a0d9cfc6",
      "lndBtcPubKey": "02d693d951ce4fc116b2b5e22e8e4966dd3cf9ad7600b8de24190d6af429f260c0",
      "lndLtcPubKey": "03114cda7206e92def08a35fc4039aba59394604fef9171ef19dbd5f938ce9387b",
      "inbound": false,
      "pairsList": [
        "LTC/BTC"
      ],
      "xudVersion": "1.0.0-alpha.5",
      "secondsConnected": 140
    },
    {
      "address": "xud3.test.exchangeunion.com:8885",
      "nodePubKey": "03fd337659e99e628d0487e4f87acf93e353db06f754dccc402f2de1b857a319d0",
      "lndBtcPubKey": "030c2ffd29a92e2dd2fb6fb046b0d9157e0eda8b11caa0e439d0dd6a46a444381c",
      "lndLtcPubKey": "02f5e0324909bdb635d4d6a50aa07c517db59f5d18219fd058f9faa3ef3a1fd83a",
      "inbound": false,
      "pairsList": [
        "LTC/BTC"
      ],
      "xudVersion": "1.0.0-alpha.5",
      "secondsConnected": 140
    }
  ]
}

xud-simnet-1

± % python engine.py                                                                                            !6789

> connect
Connected to xud 1.0.0-alpha.5 pub_key: 037c514ee25ebbfc10726442325bdf3210b6ee80a9b3618aa96788a06b01696535

Currency Pairs: LTC/BTC

BTC Lightning Channels: 3
LTC Lightning Channels: 3

xud-simnet-2

± % python engine.py                                                                                            !6789

> connect localhost 9886 ./tls2.cert
Connected to xud 1.0.0-alpha.5 pub_key: 03d1b2fa7af9ff300e00fd9c3eb54ac8481914b19603e58b4c06430449ad87ad89

Currency Pairs: LTC/BTC

BTC Lightning Channels: 1
LTC Lightning Channels: 2

vm-1 and vm-2 are on the same host machine.

@kilrau kilrau added the bug Something isn't working label Dec 7, 2018
@kilrau
Copy link
Author

kilrau commented Dec 7, 2018

How it is: xud-simnet-install and also xud-simnet-channels create different channels to different peers every time. Never to all (see above)

How it should be: xud-simnet-install and also xud-simnet-channels always create channels to all connected peers (4 in the case above: xud1,2,3 & 2nd local instance)

@offerm
Copy link
Collaborator

offerm commented Dec 7, 2018 via email

@kilrau
Copy link
Author

kilrau commented Dec 11, 2018

There is not need to create channels to all peers (really not scalable). The peers are selected randomly to create load balancing between the test nodes. You have several channels since xud-simnet-connect executed multiple times. No need to do that.

Not scalable in the long-term, but that's what we'd expect and want exchanges to do in the beginning to eliminate all sorts of routing errors. Just like the one we have right now. Please set up SIMNET to create channels to xud1,2 & 3 for now.

@offerm
Copy link
Collaborator

offerm commented Dec 11, 2018

Still see no reason for it.

See ExchangeUnion/xud#745

@kilrau
Copy link
Author

kilrau commented Dec 11, 2018

agree to hold off on this, but let's keep it open.

@kilrau kilrau closed this as completed Apr 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants