Skip to content

Commit

Permalink
chore: modify check to be bitcoind
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Aug 8, 2024
1 parent 2a51cf9 commit 7d3dd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btcclient/client_block_subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NewWithBlockSubscriber(cfg *config.BTCConfig, retrySleepTime, maxRetrySleep
if err != nil {
return nil, fmt.Errorf("failed to get BTC backend: %v", err)
}
if !strings.EqualFold(backend.String(), rpcclient.BitcoindPost25.String()) {
if !strings.Contains(backend.String(), "bitcoind") {
return nil, fmt.Errorf("zmq is only supported by bitcoind, but got %v", backend)
}

Expand Down

0 comments on commit 7d3dd11

Please sign in to comment.