twister-core/src
Gregory Maxwell 5d1b8f1725 Avoid advertising the node's address when it is not listening or IsInitialBlockDownload().
This also avoids flushing setAddrKnown until 24 hours has passed,
and avoids contacting the external IP services when not listening.

Advertising non-listening nodes is just addr message spam.
It doesn't help the network, in fact it hurts the network,
and it also hurts user's privacy.

Advertising far out of sync nodes doesn't help the network—
they can't even forward (most) transactions and wastes nodes
outbound slots.
2012-02-01 18:08:03 -05:00
..
json Back out spacing changes to json spirit code 2012-01-19 14:32:45 -05:00
obj Boost unit-testing framework. 2011-06-27 14:12:48 -04:00
obj-test Rename src/obj/test to src/obj-test to workaround bug in older GNU Make 2012-01-23 14:27:08 -05:00
qt Remove loose amp; from Portugese translation (issue #701) 2012-02-01 20:14:13 +01:00
test Simplify counting of P2SH sigops to match BIP 16 (thanks to Matt Corallo for prompting this). 2012-01-20 17:07:40 -05:00
base58.h Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). 2012-01-13 10:22:23 -05:00
bignum.h Revert "Use standard C99 (and Qt) types for 64-bit integers" 2011-12-21 22:33:19 +01:00
bitcoinrpc.cpp Bitcoin-Qt signmessage GUI (pull request #582) 2012-01-27 08:41:55 +01:00
bitcoinrpc.h Merge branch 'master' of https://github.com/bitcoin/bitcoin 2011-08-16 10:28:24 +02:00
checkpoints.cpp Compile with extra warnings turned on. And more makefile/code tidying up. 2012-01-12 20:02:47 -05:00
checkpoints.h Orphan block fill-up-memory attack prevention 2011-12-01 13:53:38 -05:00
compat.h Network stack refactor 2012-01-06 18:55:37 +01:00
crypter.cpp Implement an mlock()'d string class for storing passphrases 2011-11-26 06:02:04 +00:00
crypter.h include util.h to get SecureString definition. 2011-12-20 12:21:47 -05:00
db.cpp Full checking of all loaded keys 2012-01-26 19:26:43 +01:00
db.h Revert "Use standard C99 (and Qt) types for 64-bit integers" 2011-12-21 22:33:19 +01:00
headers.h Compile with extra warnings turned on. And more makefile/code tidying up. 2012-01-12 20:02:47 -05:00
init.cpp Allow -upnp to override setting in wallet (and simplify logic a bit) 2012-02-01 13:24:15 -05:00
init.h Implement "Start on window system startup" on Win32 + Linux. 2011-12-20 13:51:06 -05:00
irc.cpp Network stack refactor 2012-01-06 18:55:37 +01:00
irc.h Unify copyright notices. 2011-08-09 13:32:52 +02:00
key.cpp Add GetSecret() and GetKeys() to CKeyStore 2011-12-17 21:49:47 +01:00
key.h Full checking of all loaded keys 2012-01-26 19:26:43 +01:00
keystore.cpp Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). 2012-01-13 10:22:23 -05:00
keystore.h Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). 2012-01-13 10:22:23 -05:00
main.cpp Avoid advertising the node's address when it is not listening or IsInitialBlockDownload(). 2012-02-01 18:08:03 -05:00
main.h Bitcoin-Qt signmessage GUI (pull request #582) 2012-01-27 08:41:55 +01:00
makefile.linux-mingw Compile with extra warnings turned on. And more makefile/code tidying up. 2012-01-12 20:02:47 -05:00
makefile.mingw Compile with extra warnings turned on. And more makefile/code tidying up. 2012-01-12 20:02:47 -05:00
makefile.osx Support makefile.osx building test_bitcoin with dynamic boost 2012-01-23 15:58:06 -05:00
makefile.unix Rename src/obj/test to src/obj-test to workaround bug in older GNU Make 2012-01-23 14:27:08 -05:00
net.cpp Avoid advertising the node's address when it is not listening or IsInitialBlockDownload(). 2012-02-01 18:08:03 -05:00
net.h Compile with extra warnings turned on. And more makefile/code tidying up. 2012-01-12 20:02:47 -05:00
netbase.cpp Fix handling of default ports 2012-01-17 02:12:35 +01:00
netbase.h Fix handling of default ports 2012-01-17 02:12:35 +01:00
noui.h Revert "Use standard C99 (and Qt) types for 64-bit integers" 2011-12-21 22:33:19 +01:00
protocol.cpp Network stack refactor 2012-01-06 18:55:37 +01:00
protocol.h Fix handling of default ports 2012-01-17 02:12:35 +01:00
qtui.h Add support for opening bitcoin: URIs directly. 2012-01-05 00:29:28 -05:00
rpcdump.cpp Compressed pubkeys 2012-01-09 15:18:19 +01:00
script.cpp Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). 2012-01-13 10:22:23 -05:00
script.h Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). 2012-01-13 10:22:23 -05:00
serialize.h Compile with extra warnings turned on. And more makefile/code tidying up. 2012-01-12 20:02:47 -05:00
strlcpy.h move back to original directory structure 2011-06-11 22:11:58 +02:00
uint256.h Network stack refactor 2012-01-06 18:55:37 +01:00
util.cpp Add DEBUG_LOCKCONTENTION, to warn each time a thread waits to lock. 2012-01-21 16:16:28 -05:00
util.h Replace tabs with four spaces to comply with coding standard in doc/coding.txt 2012-01-14 12:14:36 +01:00
wallet.cpp Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). 2012-01-13 10:22:23 -05:00
wallet.h Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). 2012-01-13 10:22:23 -05:00