Add script to setup two gl nodes with one local CLN node#574
Add script to setup two gl nodes with one local CLN node#574ShahanaFarooqui wants to merge 1 commit intoBlockstream:mainfrom
Conversation
76d5fae to
0b7d5f5
Compare
|
Very good 👍 I have a bit more scaffolding in mind to make controlling the mock LN network a bit more comfortable from outside the docker image. I have the following graph in mind: flowchart LR
classDef planned fill:#fcc
classDef mock fill:#AAA
subgraph Host
direction LR
cli
IDE
client-app
browser
end
subgraph Docker
S["grpc-interface"]
subgraph gl-testserver
direction LR
S --> cln-nodes:::planned
mock-scheduler:::mock
bitcoind
grpc-web-proxy:::mock
S --> mock-scheduler
end
client-app & cli & IDE --> S
client-app & cli & IDE--> mock-scheduler
cli --> bitcoind
browser --> grpc-web-proxy --> cln1 & cln2 & cln3
browser --> grpc-web-proxy --> mock-scheduler
subgraph "Virtual Network"
direction LR
cln-nodes -- JSON-RPC --> cln1
cln-nodes -- JSON-RPC --> cln2
cln-nodes -- JSON-RPC --> cln3
cln-nodes -- JSON-RPC --> lsp1:::planned
end
subgraph gl-nodes
direction LR
gl1
gl2
gl3
end
mock-scheduler --> gl1 & gl2 & gl3
end
The two grey boxes being the mock services that emulate GL, and the red highlights are the parts that I hope we can build out. It essentially exposes the CLN JSON-RPC over a web address, and multiplexes multiple CLN nodes into one server. This way you'll be able to say things like |
0b7d5f5 to
0f7361f
Compare
How to Test:
make gltestserverin first terminalcd examples/javascript && npm installcd ../.. && . setup-nodes.shafter installation is finished.