Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13711071
D5766.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
813 B
Subscribers
None
D5766.diff
View Options
diff --git a/src/seeder/bitcoin.h b/src/seeder/bitcoin.h
--- a/src/seeder/bitcoin.h
+++ b/src/seeder/bitcoin.h
@@ -20,6 +20,14 @@
// message.
static const unsigned int ADDR_SOFT_CAP = 1000;
+// TODO: Pull in AVG_ADDRESS_BROADCAST_INTERVAL form net_processing if possible
+// and when there are fewer dependencies
+/**
+ * This constant must be AVG_ADDRESS_BROADCAST_INTERVAL + <margin of error for
+ * network latency>.
+ */
+static const unsigned int CONNECTION_TIMEOUT = 30 + 15;
+
// The network magic to use.
extern CMessageHeader::MessageMagic netMagic;
@@ -43,7 +51,7 @@
int64_t doneAfter;
CAddress you;
- int GetTimeout() { return you.IsTor() ? 120 : 30; }
+ int GetTimeout() { return you.IsTor() ? 120 : CONNECTION_TIMEOUT; }
void BeginMessage(const char *pszCommand);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 10:24 (1 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5573244
Default Alt Text
D5766.diff (813 B)
Attached To
D5766: Increase seeder timeout for non-Tor connections
Event Timeline
Log In to Comment