diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 2deb3a910..844ca9aeb 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -28,6 +28,7 @@ program](https://hackerone.com/tendermint). - [libs/pubsub] [\#4070](https://github.com/tendermint/tendermint/pull/4070) Strip out non-numeric characters when attempting to match numeric values. - [p2p] [\#3991](https://github.com/tendermint/tendermint/issues/3991) Log "has been established or dialed" as debug log instead of Error for connected peers (@whunmr) - [rpc] [\#4077](https://github.com/tendermint/tendermint/pull/4077) Added support for `EXISTS` clause to the Websocket query interface. +- [privval] Add `SignerDialerEndpointRetryWaitInterval` option (@cosmostuba) ### BUG FIXES: diff --git a/privval/signer_dialer_endpoint.go b/privval/signer_dialer_endpoint.go index 95094c6d0..359fcf15b 100644 --- a/privval/signer_dialer_endpoint.go +++ b/privval/signer_dialer_endpoint.go @@ -26,6 +26,11 @@ func SignerDialerEndpointConnRetries(retries int) SignerServiceEndpointOption { return func(ss *SignerDialerEndpoint) { ss.maxConnRetries = retries } } +// SignerDialerEndpointRetryWaitInterval sets the retry wait interval to a custom value +func SignerDialerEndpointRetryWaitInterval(interval time.Duration) SignerServiceEndpointOption { + return func(ss *SignerDialerEndpoint) { ss.retryWait = interval } +} + // SignerDialerEndpoint dials using its dialer and responds to any // signature requests using its privVal. type SignerDialerEndpoint struct {