Skip to content

Commit

Permalink
bitwindow/enforcer: connnect to bitcoind at 0.0.0.0 not localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Nov 14, 2024
1 parent c330bca commit 37a34f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clients/bitwindow/lib/servers/enforcer_rpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ class EnforcerLive extends EnforcerRPC {

@override
Future<List<String>> binaryArgs(NodeConnectionSettings mainchainConf) async {
var host = mainchainConf.host;
if (host == 'localhost') {
host = '0.0.0.0';
}

return [
'--node-rpc-pass=${mainchainConf.password}',
'--node-rpc-user=${mainchainConf.username}',
'--node-rpc-addr=${mainchainConf.host}:${mainchainConf.port}',
'--node-rpc-addr=$host:${mainchainConf.port}',
'--node-zmq-addr-sequence=tcp://0.0.0.0:29000',
'--enable-wallet',
];
Expand Down

0 comments on commit 37a34f8

Please sign in to comment.