From 94e3376635ef37e0ecf57e9bac1935d63e22d31b Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 22 Apr 2021 15:51:26 +0200 Subject: [PATCH] AddressMessage: According to https://en.bitcoin.it/wiki/Protocol_documentation#addr, it can contain only 1000 entries. --- core/src/main/java/org/bitcoinj/core/AddressMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/bitcoinj/core/AddressMessage.java b/core/src/main/java/org/bitcoinj/core/AddressMessage.java index 04b3921bcc0..660d9a3fd41 100644 --- a/core/src/main/java/org/bitcoinj/core/AddressMessage.java +++ b/core/src/main/java/org/bitcoinj/core/AddressMessage.java @@ -32,7 +32,7 @@ */ public class AddressMessage extends Message { - private static final long MAX_ADDRESSES = 1024; + private static final long MAX_ADDRESSES = 1000; private List addresses; /**