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

CHAINS-4196 - fix bad upstream merge #7

Merged
merged 1 commit into from
Jun 27, 2024
Merged
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
12 changes: 6 additions & 6 deletions rpcclient/infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -1589,9 +1589,9 @@ func (c *Client) BackendVersion() (BackendVersion, error) {
// Parse the btcd version and cache it.
case nil:
log.Debugf("Detected btcd version: %v", info.Version)
version := Btcd
c.backendVersion = &version
return *c.backendVersion, nil
version := parseBtcdVersion(info.Version)
c.backendVersion = version
return c.backendVersion, nil
default:
log.Debugf("Could not detect bitcoind version from GetInfo. error: %v", err)
}
Expand All @@ -1604,12 +1604,12 @@ func (c *Client) BackendVersion() (BackendVersion, error) {
log.Debugf("Could not detect bitcoind version from GetNetworkInfo. error: %v", err)
}

// assume the network is beyond v0.19
// assume the network is beyond v0.25
if networkInfo == nil {
log.Debug("Could not detect bitcoind version. Assuming post v0.19")
version := BitcoindPost19
version := BitcoindPost25
c.backendVersion = &version
return BitcoindPost19, nil
return BitcoindPost25, nil
}

// Parse the bitcoind version and cache it.
Expand Down