Add reference to bitcoin RPC error codes

This commit is contained in:
chimp1984 2020-12-14 13:08:12 -05:00
parent 33cf657d1d
commit cb289845b6
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3

View file

@ -122,6 +122,7 @@ public class MemPoolSpaceTxBroadcaster {
if (cause instanceof HttpException) {
int responseCode = ((HttpException) cause).getResponseCode();
String message = cause.getMessage();
// See all error codes at: https://github.com/bitcoin/bitcoin/blob/master/src/rpc/protocol.h
if (responseCode == 400 && message.contains("code\":-27")) {
log.info("Broadcast of raw tx to {} failed as transaction {} is already confirmed",
serviceAddress, txIdToSend);