omnilaboratory / obd

OmniBOLT daemon, a golang implementation of OmniBOLT spec, the smart assets lightning network.
MIT License
213 stars 21 forks source link

Run multiple instances on same machine #20

Closed johng closed 3 years ago

johng commented 3 years ago

ODB can't currently run correctly on same machine as both instances will share globalDb. By passing in nodeId to the DB name we can remove this contention

neocarmack commented 3 years ago

Is this fixed? @obdCoder

neocarmack commented 3 years ago

OK, after chatting with team, here is how to run multiple instance on one machine:

copy obd working fold to multiple directories, and use different port number:

---
    |------path 1: /home/lightning/node1/obd.exe, /configure, port 1000001
    |------path 2: /home/lightning/node2/obd.exe, /configure, port 1000002
    |------path 3: /home/lightning/node3/obd.exe, /configure, port 1000003