Commit graph

16 commits

Author SHA1 Message Date
Thebora Kompanioni
141fb0c2b3
docs: update dev setup readme (#306) 2022-06-06 11:21:39 +02:00
Thebora Kompanioni
fd954d1c8d
docs: describe 'common flow' in regtest readme (#291) 2022-06-02 13:17:59 +02:00
Thebora Kompanioni
44fbe0169c
dev: directory node setup for regtest (#259)
* dev: update regtest config for JM v0.9.6 in dev setup

* dev: use jam's 'default' cj_max fee settings in dev setup

* dev: update secondary dev container config

* dev: start directory node in dev setup

dev: start instance 1 with access local directory node

dev: connect primary and secondary instances to local directory node

dev: ability to specify jm branch in primary container

dev: remove symlink for tor in directory-node as #1271 is fixed upstream

dev: inject hs dir in directory-node instance

dev: add script to create onion addresses for regtest setup

dev: add prepare-setup.sh script to write .env.generated file

dev: cleanup directory-node setup and scripts

* cleanup: clarify hs directory handling

* cleanup: fix typos and remove unneeded commands in prepare setup script

* dev: revert changes to regtest fee settings

* dev: use example env file for all other commands than 'up'

* dev: fix directory node setup on restarts

* dev: adapt permissions of hs directory in regtest directory node

* dev: ability to follow logs of directory node via npm script

* fix: directory node scripts compatibility

* Update docker/regtest/dockerfile-deps/joinmarket/directory_node/README.md

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* Update docker/regtest/.gitignore

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* Update docker/regtest/dockerfile-deps/joinmarket/directory_node/README.md

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* review: fix newlines and typos

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-18 15:42:59 +02:00
Thebora Kompanioni
c63bd25248
dev: regtest config alignment (#268)
* dev: use same fee settings as jam release in regtest setup

* dev: use default value for 'taker_utxo_retries' in regtest setup

* dev: use default value for 'taker_utxo_age' in regtest setup

* fix: move comment to own line in regtest default.cfg
2022-05-16 17:20:41 +02:00
Daniel
0e1d0a8a69
feat: scheduled transactions prototype (#242)
* Use backend fork

* Add minimal schedule tab

* Add feature flag

* Update title

* Change branch in regtest setup

* Revert ts config

* Change weird formik behavior

* Fix warning

* Reset alerts

* Use loading flag when starting / stopping
2022-05-11 10:05:01 +02:00
Gigi
a83638284b
docs: add npm start 2022-04-27 10:14:40 +02:00
Thebora Kompanioni
f8aa3e786b
Update regtest env (#178)
* dev: interact with regtest env via npm scripts

* dev: use default jm_gaplimit in regtest env

* dev: remove tor config from primary regtest container
2022-03-16 13:49:39 +01:00
Thebora Kompanioni
41648c4728
chore: check for dependencies in dev setup scripts (#147)
* chore: check for dependencies in dev setup scripts

* chore: fix some shellcheck warnings in setup scripts

* chore: fix SC2155 shellcheck warnings
2022-03-03 14:16:21 +01:00
d11n
c022c205bb
feat: allow for deployment in subdirectory (#129)
* feat: allow for deployment in subdirectory

* Fix sprite path

* Basepath fix

* Update proxy and websocket paths

* Add nginx for testing deployment in subdirectory

* Update docker/regtest/docker-compose.yml

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>

* nginx: Move file and add websocket connection

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-03-02 12:37:29 +01:00
Thebora Kompanioni
03e58c9059
feat: readd websocket connection (#122)
* feat: readd websocket connection

* add WebsocketProvider

* feat: update taker/maker state based on websocket data

* update connection indicator based on websocket state

* reconnect with linear backoff on websocket errors

the backend is not happy with a second instance in another browser tab
that send invalid tokens (e.g. because the previously used wallet was
locked in another tab). This introduces a linear increase to a max
of 10 seconds. Seems to ease the problem in the active tab.

* send keepalive message periodically

some webservers will close connections on inactivity rather
soon by default (e.g. nginx is 60s). this commit contains
sending a keepalive message periodically every 30 seconds.

Co-authored-by: d11n <mail@dennisreimann.de>
2022-02-28 13:23:44 +01:00
Thebora Kompanioni
354cc97d6a
dev: use joinmarket-webui-dev-standalone in regtest setup (#99)
* feat: use joinmarket-webui standalone container in regtest setup

* dev: use build flag --docker-install in regtest env

* dev: build first jm instance from master; remove image based on btcpayserver

* dev: fix creating wallets in docker setup 'latest'

* update: use newest dev image from public registry

* review: remove checksum of dev-standalone image

* review: add '--pull' arg to docs for rebuilding regtest setup
2022-02-21 14:39:59 +01:00
d11n
2a105d22ce
docs: Docker README improvements (#40)
* Typos

* Use no-cache option on rebuild
2022-02-01 23:13:42 +01:00
Dennis Reimann
abc0816eb6
Formatting improvements 2022-01-23 14:45:34 +01:00
Thebora Kompanioni
5d886d7a3f
Enable coinjoin on regtest env (#6)
* fix: prevent 'config value not set' on cj in regtest env

'max_cj_fee' config values must be present when invoking a
coinjoin via the api. the default config for the regtest env
did not include these values before, hence they could not
be overridden in docker-compose setup file.

* dev: switch irc server from miniirc to ergochat

* dev: start second joinmarket container

In order to successfully perform a CoinJoin, there must be at least one
maker. This commit adds a second JoinMarket container with
jmwalletd accessible on port 29183.

* dev: add helper script to mine a block

* dev: add container switch to regtest-control script

* dev: invoke mine-block in regtest-control script

* dev: add flag '--unmatured' to regtest-control script

Sometimes it is desired that block rewards do not reach maturity
immediately. This is convenient if you want to supply several wallets
with coins, but do not want to generate many blocks all the time.

* dev: add helper script to start maker service

This script helps in providing both JoinMarket containers a wallet with
spendable coins and starting the Maker Service in the secondary
container. Its main goal is to make CoinJoin transactions possible in the
regtest environment.

* dev: move common functions to script common.sh

* fix: use correct irc host in docker setup

* dev: use ergochat image from ghcr.io

* dev: dont lock secondary wallet in setup script

normally the wallet should be locked, but it seems this leads to the
maker service responding very slowly which causes failing coinjoins.
as the secondary instance is never interacted with directly, we can
refrain from unlocking the wallet for now.

* docs: add debug log command to docker readme

* cleanup: rename script 'regtest-control' to 'fund-wallet'

* dev: upgrade joinmarket from v0.9.3 to use current master branch

* review: add more descriptive comments and cleanup files
2022-01-22 17:09:14 +01:00
Thebora Kompanioni
25e85168c2
dev: add helper script to fund jm wallet with regtest coins (#3)
* dev: add script to fund jm wallet with regtest coins

* dev: fix typos and remove dead code from regtest-control.sh script

* dev: require wallet names to end with '.jmdat'
2021-12-15 10:53:16 +01:00
Thebora Kompanioni
82c490e2a5
dev: setup basic regtest environment with docker-compose (#2) 2021-12-10 15:29:46 +01:00