Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable tls in config #156

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ configuration to enabled it (disabled by default).
This PR contains a series of PRs on multi-staking support and BTC staking integration.
* [#134](https://github.com/babylonlabs-io/btc-staker/pull/134) Removal of both the watch-staking endpoint and the post-approval flow, and reduction of state in the database.
* [#146](https://github.com/babylonlabs-io/btc-staker/pull/146) Sanity check that all transactions are standard
* [#156](https://github.com/babylonlabs-io/btc-staker/pull/156) disable tls in config

## v0.15.2

Expand Down
2 changes: 1 addition & 1 deletion staker/feeestimator.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewDynamicBtcFeeEstimator(
Pass: cfg.Bitcoind.RPCPass,
DisableConnectOnNew: true,
DisableAutoReconnect: false,
DisableTLS: true,
DisableTLS: cfg.Bitcoind.DisableTLS,
HTTPPostMode: true,
}

Expand Down
2 changes: 2 additions & 0 deletions stakercfg/bitcoind.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type Bitcoind struct {
BlockPollingInterval time.Duration `long:"blockpollinginterval" description:"The interval that will be used to poll bitcoind for new blocks. Only used if rpcpolling is true."`
TxPollingInterval time.Duration `long:"txpollinginterval" description:"The interval that will be used to poll bitcoind for new tx. Only used if rpcpolling is true."`
BlockCacheSize uint64 `long:"block-cache-size" description:"size of the Bitcoin blocks cache"`
DisableTLS bool `long:"noclienttls" description:"disables tls for the wallet rpc client"`
}

func DefaultBitcoindConfig() Bitcoind {
Expand All @@ -52,5 +53,6 @@ func DefaultBitcoindConfig() Bitcoind {
ZMQPubRawBlock: defaultZMQPubRawBlock,
ZMQPubRawTx: defaultZMQPubRawTx,
ZMQReadDeadline: defaultZMQReadDeadline,
DisableTLS: true,
}
}
Loading