Demonstration of routing a payment between two hydra heads using the htlc validator and the invoice representation.
Note
In our implementation, "Ida" in the picture above is called "Carol" in the code and TUI, and our demo videos.
This is an implementation of HTLC across two Hydra Heads and, for a setup with:
- Alice in Head 1
- Bob in Head 2
- Carol in Head 1 and Head 2
demonstrates:
- Transferring Ada between Alice and Bob via a HTLC,
- Transferring a CNT between Alice and Bob, via a HTLC.
Because of the nature of our tests we can't run multiple tests without re-spinning the devnet.
# In one terminal
nix run .#demo
# wait to see prepare-devnet and seed-devnet jobs as completed
# In another terminal
cabal test hydra-lightning-router-e2e --test-options='--match="hydra lightning router"'
# or
cabal test hydra-lightning-router-e2e --test-options='--match="can refund from HTLC after timelock"'
nix develop
cabal test all

