Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (19 loc) · 1.25 KB

REGTEST.md

File metadata and controls

29 lines (19 loc) · 1.25 KB

Regtest Setup

A regtest setup will save you a lot of time as it allows you to test Zap in a simulated network.

Create a network

The easiest way to create and manage simulated regtest networks is by using Polar.

  1. Download Polar
  2. Setup a network in Polar with at least one LND node.

Remote control your simulated regtest LND nodes with Zap

To connect Zap with a simulated LND node:

  1. Click on a LND node in Polar and navigate to the connect tab.
  2. Select "LND Connect" in the sub tab.
  3. Copy the connect string using the copy icon.
  4. Open Zap Android
  5. Make sure the Tor setting is turned off in the apps settings.
  6. Paste the copied connect string in Zap on the connect remote node screen or on the general scan screen.
  7. In Zap, tap on the currently active node name at the top of the home screen. Then choose "Manage...". Choose the freshly added node. Then tap on "Change data".
  8. If you are using an Android Studio Emulator, replace the IP address with 10.0.2.2. If you are using an android phone, replace the IP address with the IP address of the computer running polar.
  9. Have fun testing!

Please note that connecting to regtest nodes will only work when building with debug build variant.