Skip to content

Commit 4044f07

Browse files
committed
Add blocksonly mode
1 parent dbd2c13 commit 4044f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ void CNode::PushVersion()
460460
else
461461
LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id);
462462
PushMessage("version", PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe,
463-
nLocalHostNonce, strSubVersion, nBestHeight, true);
463+
nLocalHostNonce, strSubVersion, nBestHeight, !GetBoolArg("-blocksonly", false));
464464
}
465465

466466

0 commit comments

Comments
 (0)