Skip to content

Commit

Permalink
bitcoind: Migrate warning string to list of warnings
Browse files Browse the repository at this point in the history
The `warning` string was replaced by a `warnings` JSON array in Bitcoin
Core 25.0.
  • Loading branch information
alvasw committed Sep 3, 2024
1 parent bf52e1f commit 5d06e4d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@
import bisq.wallets.json_rpc.JsonRpcResponse;
import lombok.Getter;

import java.util.Collections;
import java.util.List;

public class BitcoindWarningResponse extends JsonRpcResponse<BitcoindWarningResponse.Result> {
@Getter
public static class Result {
protected String warning;
protected List<String> warnings = Collections.emptyList();

public boolean hasWarning() {
return !warning.isEmpty();
return !warnings.isEmpty();
}
}
}

0 comments on commit 5d06e4d

Please sign in to comment.