Commit Graph

431 Commits

Author SHA1 Message Date
HenrikJannsen
8c65da9c85
Add thread index format
Add name param to newCachedThreadPool

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-13 20:35:49 -05:00
HenrikJannsen
071a352443
Remove rejectedExecutionHandler at newCachedThreadPool.
It is more convenient to handle the RejectedExecutionException in the calling code to get more context for error logging.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-13 17:33:31 -05:00
HenrikJannsen
84584d38ac
The connection:keep-alive header is restricted in java and would require a jvm option to allow it.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-13 17:33:30 -05:00
HenrikJannsen
f28e3960da
Rename *ValueItem to *ValueReportingItem
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:26:50 -05:00
HenrikJannsen
53c031dfaf
Refactor: Move SeedNodeReportingService to reporting package
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:10:33 -05:00
HenrikJannsen
1b10cc22db
Refactor: Move monitor package from core to seedNode and rename to reporting
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:10:02 -05:00
HenrikJannsen
6addd27a33
Add params to newCachedThreadPool method.
Use executor at httpClient builder.
Use httpClient.sendAsync.
Add keep-alive header.
Add RejectedExecutionHandler.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:06:01 -05:00
HenrikJannsen
3920e81f1c
Add try catch at send (to cover case when thread pool is exhausted)
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-10 19:26:45 -05:00
HenrikJannsen
491c6a0861
Add onDaoStateBlockCreated method
Use onDaoStateBlockCreated instead of onDaoStateHashesChanged to avoid multiple calls when we receive hashes from other nodes.
Add daoStateMonitoringService listener after blockchain parsing is completed

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-10 19:19:29 -05:00
HenrikJannsen
f98cd04fd8
Use LongValueItem instead of IntegerValueItem
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-09 08:54:28 -05:00
HenrikJannsen
3308e35e8c
Add newCachedThreadPool to Utilities
Use newCachedThreadPool instead of getThreadPoolExecutor

Utilities.getThreadPoolExecutor use a BlockingQueue which prevents the intended
behaviour to increase the pool size to the max value.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-08 09:56:11 -05:00
HenrikJannsen
f4775f89b0
Add SeedNodeReportingService
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-07 13:23:28 -05:00
Bisq GitHub Admin
60522218a7
Merge pull request #6412 from bisq-network/release/v1.9.6
Merge release branch
2022-11-15 21:03:40 +01:00
HenrikJannsen
72d97b8d97
Remove if (DevEnv.isDaoActivated()) checks as isDaoActivated is always true
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-11-03 10:51:01 -05:00
Christoph Atteneder
3580b648c8
Bump version number for v1.9.6 2022-10-13 09:54:32 +02:00
Christoph Atteneder
aefb342691
Not use git lfs anymore 2022-09-15 09:21:37 +02:00
Christoph Atteneder
15aaa77b91
Bump version number for v1.9.5 2022-08-21 21:32:26 +02:00
Christoph Atteneder
efe306aae6
Bump version number for v1.9.4 2022-07-04 09:52:27 +02:00
Christoph Atteneder
791ad62a51
Bump version number for v1.9.3 2022-06-23 09:39:04 +02:00
Christoph Atteneder
56d8842092
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.9.2
Conflicts:
	build.gradle
	desktop/package/linux/Dockerfile
	desktop/package/macosx/finalize.sh
	desktop/package/macosx/insert_snapshot_version.sh
	relay/src/main/resources/version.txt
2022-06-23 09:03:33 +02:00
Stephan Oeste
90914bba5b
delete unintentional line break
Signed-off-by: Stephan Oeste <emzy@emzy.de>
2022-06-23 00:49:22 +02:00
Stephan Oeste
7033f08b41
fix for file create 2022-06-23 00:49:19 +02:00
Stephan Oeste
275f9c9da0
Install tor from tor repository and add external tor as default 2022-06-23 00:49:16 +02:00
Christoph Atteneder
043f1e4c70
Bump version number for v1.9.2 2022-06-21 20:39:23 +02:00
Stephan Oeste
34766592da
Update Java version.
This is the version we use now.
2022-06-06 11:40:10 +02:00
Christoph Atteneder
6baf89eb04
Merge pull request #6231 from chimp1984/reset_tor_files_at_seed_node_startup
Clean up tor files at seed node startup
2022-05-31 20:51:37 +02:00
alkum
247fb5bd30
Add ExitOnOutOfMemoryError JVM flag tp seednode
Flag ensures the seednode exists with error code 3 when an OutOfMemory exception happens.
2022-05-31 20:22:53 +02:00
chimp1984
7202f02dce
startApplication after cleanupTorFiles is completed 2022-05-31 13:16:04 +02:00
chimp1984
9741b79d20
Clean up tor files at seed node startup 2022-05-31 12:43:21 +02:00
Christoph Atteneder
0e4d25f007
Bump version number for v1.9.1 2022-05-02 09:50:46 +02:00
Christoph Atteneder
dd6c8d1c30
Bump version number for v1.9.0 2022-04-22 11:36:43 +02:00
Christoph Atteneder
8136f0a6ca
Bump version number for v1.8.4 2022-03-07 16:42:10 +01:00
Christoph Atteneder
602101c117
Bump version number for v1.8.3 2022-02-17 10:49:55 +01:00
Christoph Atteneder
c4fa58db78
Bump version number for v1.8.2 2022-01-24 09:40:46 +01:00
wiz
d61a560679
Add 5 second delay when stopping seednode service 2022-01-17 11:24:52 +01:00
Christoph Atteneder
9d39f16d35
Bump version number for v1.8.1 2022-01-12 10:41:29 +01:00
chimp1984
f93cd7de48
Enforce inclusion of TradeLimits for headless apps
PaymentMethod use an instance of TradeLimits and expect that it
has been injected, which is the case for desktop but not for
headless apps, so we enforce injection in the app base classes
used for headless apps.

The validation of trade statistics use a method in PaymentMethod
where that dependency is required.

Tha hack how the PaymentMethod use TradeLimits is not nice, but
would require more effort for refactoring.
2021-11-24 09:48:00 +01:00
Christoph Atteneder
aacc1105e3
Bump version number for v1.8.0 2021-11-19 18:35:56 +01:00
Christoph Atteneder
3e6bb3bc7f
Merge pull request #5819 from chimp1984/fix-reorg-handling
Fix reorg handling
2021-11-12 10:50:06 +01:00
chimp1984
6f51793d1b
Add deterministic delay for seed node shutdown at reorg
We shut down with a deterministic delay per seed to avoid that all seeds shut down at the
same time in case of a reorg. We use 30 sec. as distance delay between the seeds to be on the
safe side. We have 12 seeds so that's 6 minutes.
2021-11-10 18:31:53 +01:00
Christoph Atteneder
40ad5737cb
Remove unnecessary todo 2021-11-10 13:21:56 +01:00
chimp1984
880df30ffc
Remove unneeded UserThread.execute wrappers
In desktop we are on the UI thread.
In Seednode we have an outer UserThread.execute call already
2021-11-10 12:27:50 +01:00
Christoph Atteneder
8fbccb7547
Bump version number for v1.7.5 2021-10-19 11:32:09 +02:00
Christoph Atteneder
64274cf82e
Bump version number for v1.7.4 2021-09-21 09:24:26 +02:00
Christoph Atteneder
ad95e5b3be
Bump version number for v1.7.3 2021-08-23 11:20:09 +02:00
Christoph Atteneder
12b0a5bf80
Bump version number for v1.7.2 2021-07-16 20:37:10 +02:00
Christoph Atteneder
dfb97ca05f
Bump version number for v1.7.1 2021-07-12 14:52:38 +02:00
Christoph Atteneder
9f42035108
Bump version number for v1.7.0 2021-06-23 14:27:22 +02:00
Christoph Atteneder
59de78c332
Bump version number for v1.6.5 2021-05-21 20:00:49 +02:00
Christoph Atteneder
4104fcd67f
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.6.4
# Conflicts:
#	build.gradle
#	desktop/package/linux/Dockerfile
#	desktop/package/macosx/insert_snapshot_version.sh
#	relay/src/main/resources/version.txt
2021-05-07 10:47:05 +02:00
Christoph Atteneder
89729c41c9
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.6.3
# Conflicts:
#	scripts/install_java.sh
2021-05-07 10:33:45 +02:00
Christoph Atteneder
dba59138df
Bump version number for v1.6.4 2021-05-05 10:27:42 +02:00
Maxim Belkin
ffa39f51fa
Update Java installation scripts 2021-04-26 16:40:37 -05:00
Christoph Atteneder
2c5e785a1e
Bump version number for v1.6.3 2021-04-22 10:36:37 +02:00
Christoph Atteneder
8623b7b546
Bump version number for v1.6.2 2021-04-01 09:41:07 +02:00
Christoph Atteneder
b7524270dd
Bump version number for v1.6.1 2021-03-28 20:11:26 +02:00
Steven Barclay
f21379160b
Merge branch 'release/v1.6.0' into implement-segwit-for-bsq 2021-03-20 23:18:49 +00:00
Christoph Atteneder
378fd026bf
Bump version number for v1.6.0 2021-03-18 19:19:26 +01:00
Christoph Atteneder
c1d6ea93bb
Bump version number for v1.5.9 2021-03-02 18:53:37 +01:00
Christoph Atteneder
5288d0840b
Bump version number for v1.5.8 2021-03-01 11:24:04 +01:00
Christoph Atteneder
2dc34dce48
Bump version number for v1.5.7 2021-02-18 21:50:32 +01:00
Christoph Atteneder
1507b58e26
Bump version number for v1.5.6 2021-02-16 09:04:10 +01:00
Christoph Atteneder
b9e889050a
Bump version number for v1.5.5 2021-01-21 16:01:45 +01:00
Steven Barclay
8104301b52
Use new Bitcoind(Client|Daemon) & remove btcd-cli4j
Migrate RpcService over to the new block notification daemon and RPC
client based on jsonrpc4j. Drop in own DTO classes in place of the ones
defined by btcd-cli4j and rename requestBtcBlock & addNewBtcBlockHandler
to requestDtoBlock & addNewDtoBlockHandler respectively.

Also remove now redundant filtering from the logback config and update
grade-witness.
2021-01-21 10:10:28 +00:00
chimp1984
8ecfa8bcba
We set a flag to clear tor cache files at re-start.
We cannot clear it now as Tor is used and
that can cause problems.
2021-01-09 20:40:58 -05:00
sqrrm
5ae2a0f5a9
Merge pull request #5039 from chimp1984/add-option-for-seeds-doShutdownSeedOnInterval
Add option to prevent periodic shutdown for seed nodes
2021-01-04 10:38:34 +01:00
chimp1984
d5ef7e66d1
Add option to prevent periodic shutdown for seed nodes 2021-01-01 17:17:29 -05:00
Christoph Atteneder
0f7756267d
Merge branch 'master' of github.com:bisq-network/bisq into hotfix/v1.5.4
# Conflicts:
#	build.gradle
#	desktop/package/linux/Dockerfile
#	desktop/package/linux/package.sh
#	desktop/package/linux/release.sh
#	desktop/package/macosx/create_app.sh
#	desktop/package/macosx/finalize.sh
#	desktop/package/macosx/insert_snapshot_version.sh
#	desktop/package/windows/package.bat
#	desktop/package/windows/release.bat
#	relay/src/main/resources/version.txt
2020-12-31 14:00:12 +01:00
Christoph Atteneder
3914e5c198
Bump version number for v1.5.4 2020-12-31 06:55:20 +01:00
Christoph Atteneder
0c83a9b0cd
Merge branch 'master' of github.com:bisq-network/bisq into hotfix/v1.5.3
# Conflicts:
#	build.gradle
#	desktop/package/linux/Dockerfile
#	desktop/package/linux/package.sh
#	desktop/package/linux/release.sh
#	desktop/package/macosx/create_app.sh
#	desktop/package/macosx/finalize.sh
#	desktop/package/macosx/insert_snapshot_version.sh
#	desktop/package/windows/package.bat
#	desktop/package/windows/release.bat
#	relay/src/main/resources/version.txt
2020-12-30 15:15:06 +01:00
Christoph Atteneder
e92be14a57
Bump version number for v1.5.3 2020-12-30 13:34:08 +01:00
Christoph Atteneder
850e031158
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.5.2
# Conflicts:
#	core/src/main/java/bisq/core/account/witness/AccountAgeWitnessService.java
#	core/src/main/java/bisq/core/trade/closed/CleanupMailboxMessages.java
2020-12-28 14:57:08 +01:00
chimp1984
af9f2a9643
In case a reset of the dao state was triggered we delete
now all dao store files and request a shut down of the app.

After a restart the resource files are used. This avoids cases where a resync from
genesis got triggered (observed on seed nodes, not on desktop apps).

Seed nodes and headless apps get shut down automatically.
In case of the desktop app we show a warn popup with shutdown
button and no close button, so we enforce a shutdown to avoid
complications in case the user would continue.
2020-12-18 20:29:47 -05:00
Christoph Atteneder
a6bee1116a
Bump version number for v1.5.2 2020-12-16 14:19:41 +01:00
Christoph Atteneder
29c2e0002d
Merge branch 'master' of github.com:bisq-network/bisq into hotfix/v1.5.1
# Conflicts:
#	build.gradle
#	core/src/main/java/bisq/core/btc/setup/WalletConfig.java
#	desktop/package/linux/Dockerfile
#	desktop/package/linux/package.sh
#	desktop/package/linux/release.sh
#	desktop/package/macosx/create_app.sh
#	desktop/package/macosx/finalize.sh
#	desktop/package/macosx/insert_snapshot_version.sh
#	desktop/package/windows/package.bat
#	desktop/package/windows/release.bat
#	relay/src/main/resources/version.txt
#	seednode/src/main/java/bisq/seednode/SeedNodeMain.java
2020-12-08 22:19:11 +01:00
chimp1984
51ab5685de
For dev testing (usually on BTC_REGTEST) we don't want to get the seed shut
down as it is normal that the seed is the only actively running node.
2020-12-04 12:44:19 -05:00
Christoph Atteneder
4ab75b656d
Bump version number for v1.5.1 2020-12-03 12:57:43 +01:00
sqrrm
3cc9e63593
Merge pull request #4846 from bisq-network/release/v1.5.0
Release/v1.5.0
2020-11-26 12:42:14 +01:00
wiz
c0a03c7187
In seednode installer, don't run random shell script to install git lfs 2020-11-25 23:34:26 +09:00
Christoph Atteneder
11b0a466ce
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.5.0
# Conflicts:
#	core/src/main/java/bisq/core/provider/fee/FeeService.java
#	core/src/main/resources/i18n/displayStrings.properties
#	seednode/src/main/java/bisq/seednode/SeedNodeMain.java
2020-11-25 14:05:37 +01:00
chimp1984
8bc78c852b
Cleanup tor dir if all connections lost 2020-11-12 15:58:58 -05:00
chimp1984
2486bd512f
Shut down if more then 1 all connections lost events 2020-11-12 15:58:58 -05:00
chimp1984
012c54cf02
Fix log at startup 2020-11-12 15:58:56 -05:00
wiz
ae476745bd
Reduce seednode default maxconnections to 20 2020-11-05 21:30:14 +01:00
wiz
786a80879c
Reduce seednode default maxconnections to 20 2020-11-05 20:06:05 +09:00
Christoph Atteneder
66fcde11bf
Bump version number for v1.5.0 2020-11-05 11:34:40 +01:00
chimp1984
f1fdf3c0a5
Improve deviation model 2020-10-23 01:17:34 -05:00
chimp1984
ca7fe94c06
Add signature to request to limit the feature to requests from trusted nodes (monitor) 2020-10-23 01:17:32 -05:00
chimp1984
9dab186086
Move inventory package to core as we want to include other domain data as well like DAO state
Add more data to inventory map and change type of value to String.
2020-10-23 01:17:32 -05:00
Christoph Atteneder
062b58b65d
Bump version number for v1.4.2 2020-10-21 09:23:51 +02:00
Christoph Atteneder
7ae6e84e02
Bump version number for v1.4.1 2020-10-18 19:22:53 +02:00
Christoph Atteneder
5294820eb6
Bump version number for v1.4.0 2020-10-08 09:39:01 +02:00
chimp1984
c245026eff
Remove Storage and FileManager from logback 2020-10-03 12:48:15 -05:00
chimp1984
9232a5765b
Improve handling of UncaughtExceptionHandler 2020-09-30 22:06:51 -05:00
chimp1984
7ea3676c55
Refactor: Rename setup to setupUncaughtExceptionHandler
rename setupErrorHandler to checkCryptoPolicySetup
move UncaughtExceptionHandler code to setupUncaughtExceptionHandler
2020-09-30 21:55:50 -05:00
Christoph Atteneder
06ac7a7605
Bump version number for v1.3.9 2020-09-16 15:58:58 +02:00
Christoph Atteneder
ca88bc9b4f
Bump version number for v1.3.8 2020-09-03 17:34:34 +02:00
Christoph Atteneder
51e66d5763
Merge pull request #4447 from wiz/tweak-bitcoin-conf-timeout
Tweak seednode bitcoin.conf, remove timeout, separate testnet block
2020-08-30 14:25:29 +02:00
wiz
243bc19ae2
Tweak seednode bitcoin.conf, remove timeout, separate testnet block 2020-08-29 08:54:05 +09:00
chimp1984
c218b28755
Satistfy codacy 2020-08-28 07:39:23 -05:00
chimp1984
fa5a58d41a
Use the index of a seed node address in the list of nodes at the
repository to determine the hour to restart.
2020-08-28 02:30:45 -05:00
wiz
fcd8225e37
Reduce seednode maxconnections setting from 50 to 40 in bisq.env 2020-08-23 15:44:08 +09:00
Christoph Atteneder
fa000ddc45
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.3.7
# Conflicts:
#	core/src/main/java/bisq/core/provider/ProvidersRepository.java
2020-08-19 13:04:26 +02:00
wiz
0868ce89a8
Don't use kill -9 to restart seednodes now that SIGTERM is handled
Now that we can gracefully restart from #4047
2020-08-02 02:42:42 +09:00
Christoph Atteneder
7475f17207
Bump version number for v1.3.7 2020-07-30 10:19:34 +02:00
Christoph Atteneder
7613912c75
Bump version number for v1.3.6 2020-07-04 21:02:29 +02:00
Christoph Atteneder
ab92350369
Merge pull request #4319 from devinbileck/update-install-scripts
Update seednode/pricenode install scripts
2020-06-25 13:56:31 +02:00
Devin Bileck
68d8125d76
Combine separate gradlew clean and build commands into a single command 2020-06-17 22:35:02 -07:00
Devin Bileck
1d2c60f2f1
Update seednode README with Ubuntu 20.04 as an OS known to work well 2020-06-17 22:35:02 -07:00
Devin Bileck
0bab863ee9
Fix command shown in README used to install collectd service
The install_collectd_debian.sh script reads user input to obtain the
onion address. However, when you pipe the output of curl into the shell
you're making the script text be standard input of the shell, which
takes it in as commands to run. After that, there's nothing left to
read. Even if it were to try, it wouldn't get anything from the terminal
input, because it's not connected to it. The pipe has replaced standard
input for the shell process.

Instead, create a pipe for bash to read the output of curl from and
provide it as the script file argument. In this case, the standard input
of the script is still connected to the terminal, and read will work.
2020-06-17 22:35:02 -07:00
Devin Bileck
83e194686d
Update install scripts for Git LFS 2020-06-17 22:35:01 -07:00
Christoph Atteneder
92ee247fa7
Bump version number for v1.3.5 release 2020-06-06 08:44:41 +02:00
wiz
cd2d867c11
Increase BSQ explorer TMPFS allocation to 2GB for growing datastore 2020-05-09 12:30:15 +09:00
Christoph Atteneder
64f55cb777
Bump version number for v1.3.4 2020-04-30 10:19:27 +02:00
Christoph Atteneder
df56aaddab
Bump version number for v1.3.3 2020-04-29 16:08:54 +02:00
Christoph Atteneder
782921ec55
Bump version number for v1.3.2 2020-04-10 20:02:39 +02:00
Christoph Atteneder
51ffd9d95c
Bump version number for v1.3.1 2020-04-08 20:04:13 +02:00
Christoph Atteneder
bb75f59b86
Bump version number for v1.3.0 2020-04-07 19:38:16 +02:00
Christoph Atteneder
066614f966
Bump version number for v1.2.9 2020-03-13 17:16:09 +01:00
Christoph Atteneder
dfba2103ab
Bump version number to v1.2.8 2020-03-10 09:17:21 +01:00
Florian Reimair
794302678d
Monitoring install scripts (#3985)
* Install script for collectd

* Install script for network size metric

* Apply suggestions from code review

Co-Authored-By: wiz <j@wiz.biz>

* Update monitor/install_collectd_debian.sh

Co-Authored-By: wiz <j@wiz.biz>

* Apply suggestions from code review

Co-Authored-By: wiz <j@wiz.biz>

Co-authored-by: wiz <j@wiz.biz>
2020-02-20 16:48:56 +01:00
sqrrm
665fed3b40
Merge pull request #3971 from bisq-network/release/v1.2.7
Release/v1.2.7
2020-02-17 13:05:03 +01:00
sqrrm
23c2052fe6
Merge pull request #3970 from bisq-network/release/v1.2.6
Release/v1.2.6
2020-02-17 13:04:32 +01:00
Christoph Atteneder
0083343178
Merge pull request #3951 from wiz/dont-fail-if-seednode-homedir-exists
Use `mkdir -p` in seednode installer when creating bitcoin/bisq homedirs
2020-02-17 10:17:59 +01:00
Christoph Atteneder
1cb7b0521d
Bump version number 2020-02-13 20:19:52 +01:00
wiz
9589f8c7af
Use mkdir -p in seednode installer when creating bitcoin/bisq homedirs 2020-02-09 04:01:57 +09:00
wiz
01ccca7648
Explicitly set syslog identifier to "bisq" in systemd service config 2020-02-08 11:59:00 +09:00
wiz
d3f30b8b51
Additional tweaks to seednode installation script for new use cases (#3944)
* Add seednode service option to enable dumping Bisq Markets data

* Add seednode service setting for DAO fullnode true/false

* Add seednode installer feature to use existing btcnode P2P/RPC config

* Rename to generic "bisq" service, set entrypoint as conf variable
2020-02-07 14:41:35 +01:00
Christoph Atteneder
5f51af4866
Bump version number for v1.2.6 2020-02-06 11:55:08 +01:00
wiz
02e7448bda
Various improvements to seednode service / install scripts (#3882)
* Split seednode systemd service ExecStart command into multiple lines

* Add setting in seednode configuration to specify btcnode host/port

* Tweak seednode torrc configuration options to improve P2P connectivity

* Require bitcoin.service from bisq-seednode.service via systemd binding

* Make seednode installer run from master and build bisq from release tag

* Seednode must be shutdown using `kill -9` until #3884 is fixed

* Fix seednode uninstall script to use correct service names

* Disable CircuitBuildTimeout in seednode Tor configuration

* Disable seednode torrc advanced configuration options for now
2020-01-29 11:28:12 +01:00
Chris Beams
e67746b0a4
Remove TestConfig in favor of reworked Config ctors 2020-01-20 16:46:57 +01:00
Chris Beams
3f605f873f
Remove now unused BisqExecutable option handling
Option handling is now the responsibility of the Config class. JOpt's
OptionParser is no longer passed down to BisqExecutable subclasses'
doExecute method, as they can now rely on the Config abstraction.
2020-01-20 16:46:56 +01:00
Chris Beams
f5a1854762
Remove now unused BisqEnvironment class
In previous commits, BisqEnvironment functionality has been fully ported
to the new, simpler and more type-safe Config class. This change removes
BisqEnvironment and all dependencies on the Spring Framework Environment
interface that it implements.

The one exception is the pricenode module, which is separate and apart
from the rest of the codebase in that it is a standalone, Spring-based
HTTP service.
2020-01-20 16:41:19 +01:00
Chris Beams
849bd7c286
Move 'maxMemory' option handling to Config
Note that the default value of 600 advertised in BisqExecutable's option
handling was incorrect. The actual value had since become 1200 MB. This
correct default is now reflected in Config's option handling.
2020-01-20 16:39:30 +01:00
Chris Beams
b34d59c0a9
Introduce Config as replacement for BisqEnvironment
Prior to this commit, BisqExecutable has been responsible for parsing
command line and config file options and BisqEnvironment has been
responsible for assigning default values to those options and providing
access to option values to callers throughout the codebase.

This approach has worked, but at considerable costs in complexity,
verbosity, and lack of any type-safety in option values. BisqEnvironment
is based on the Spring Framework's Environment abstraction, which
provides a great deal of flexibility in handling command line options,
environment variables, and more, but also operates on the assumption
that such inputs have String-based values.

After having this infrastructure in place for years now, it has become
evident that using Spring's Environment abstraction was both overkill
for what we needed and limited us from getting the kind of concision and
type saftey that we want. The Environment abstraction is by default
actually too flexible. For example, Bisq does not want or need to have
environment variables potentially overriding configuration file values,
as this increases our attack surface and makes our threat model more
complex. This is why we explicitly removed support for handling
environment variables quite some time ago.

The BisqEnvironment class has also organically evolved toward becoming a
kind of "God object", responsible for more than just option handling. It
is also, for example, responsible for tracking the status of the user's
local Bitcoin node, if any. It is also responsible for writing values to
the bisq.properties config file when certain ban filters arrive via the
p2p network. In the commits that follow, these unrelated functions will
be factored out appropriately in order to separate concerns.

As a solution to these problems, this commit begins the process of
eliminating BisqEnvironment in favor of a new, bespoke Config class
custom-tailored to Bisq's needs. Config removes the responsibility for
option parsing from BisqExecutable, and in the end provides "one-stop
shopping" for all option parsing and access needs.

The changes included in this commit represent a proof of concept for the
Config class, where handling of a number of options has been moved from
BisqEnvironment and BisqExecutable over to Config. Because the migration
is only partial, both Config and BisqEnvironment are injected
side-by-side into calling code that needs access to options. As the
migration is completed, BisqEnvironment will be removed entirely, and
only the Config object will remain.

An additional benefit of the elimination of BisqEnvironment is that it
will allow us to remove our dependency on the Spring Framework (with the
exception of the standalone pricenode application, which is Spring-based
by design).

Note that while this change and those that follow it are principally a
refactoring effort, certain functional changes have been introduced. For
example, Bisq now supports a `--configFile` argument at the command line
that functions very similarly to Bitcoin Core's `-conf` option.
2020-01-20 16:37:54 +01:00
wiz
2d90e4a17c
Add some missing changes in seednode systemd service for release/v1.2.5 2020-01-10 03:01:42 +09:00
wiz
7525620f13
Merge commit for bisq-seednode.env 2020-01-07 14:44:27 +01:00
wiz
0d557fe6ed
Fix typo in bisq-seednode.env using wrong variable name 2020-01-07 14:36:00 +01:00
wiz
a194f7ae7a
Modify seednode install script to use GitHub API for latest release tags 2020-01-07 14:35:09 +01:00
Christoph Atteneder
bbfd4baf7e
Bump version number for v1.2.5 2020-01-04 16:09:49 +01:00
wiz
4ad020878f
Prevent seednode install script from opening dialog boxes 2019-12-21 22:01:40 +09:00
wiz
9d1b1d19f6
Add notes to server motd in seednode install script 2019-12-21 03:46:07 +09:00
wiz
af7c628f32
Add warning at bottom of seednode install script to enable firewall 2019-12-21 03:36:16 +09:00
wiz
4c79f08cc1
Fix seednode README command to get bitcoin onion hostname 2019-12-21 03:29:32 +09:00
wiz
1ddb4df70a
Add missing libssl-dev in seednode installation script 2019-12-21 02:38:59 +09:00
wiz
7be4caf6c1
Fix seednode README getting onion hostname 2019-12-21 00:19:28 +09:00
wiz
4151cadabe
Fix seednode README bitcoin-cli usage instructions 2019-12-20 23:50:12 +09:00
wiz
839f791caa
Fix bisq-seednode.env file replacement 2019-12-20 23:49:37 +09:00
wiz
7eaf849f1a
Fix seednode install script path replacement delimiter 2019-12-20 23:20:26 +09:00
wiz
442281ce0c
Fix seednode install script causing gradle to hang 2019-12-20 23:12:42 +09:00