jl777
e28d1005be
Rest of nSPV function stubs
2019-07-02 06:43:05 -11:00
jl777
e9a2714441
uint32_t lastutxos,lastinfo;
2019-07-02 05:49:14 -11:00
jl777
4b876b6118
Throttle rate of nSPV requests
2019-07-02 05:30:56 -11:00
jl777
cb3756eb07
Print
2019-07-02 02:46:30 -11:00
blackjok3r
8d7234bf22
Test fix to stop nodes forceing an attacking chain onto others.
2019-02-11 01:10:27 +08:00
jl777
932b358243
+comments how to update to 8MB blocks
2019-01-25 17:15:56 -11:00
jl777
352c93f2c4
-<<<<< HEAD
2019-01-25 16:59:55 -11:00
jl777
1231c3240d
Merge remote-tracking branch 'origin/FSM' into FSM
...
# Conflicts:
# src/cc/CCtx.cpp
2019-01-25 16:45:19 -11:00
jl777
524342f7ba
Single #define _MAX_BLOCK_SIZE to set max block size
2019-01-25 16:43:57 -11:00
jl777
e4791f54e6
Merge branch 'FSM' into patch-gcc-8
2019-01-25 16:33:13 -11:00
jl777
10b90968af
+comments
2019-01-09 01:28:17 -11:00
jl777
7d56db54d1
Messages
2019-01-07 07:33:23 -11:00
jl777
348a23d6c4
tests
2019-01-07 07:29:36 -11:00
jl777
0ea9ae3c05
Update copyright to 2019
2018-12-31 21:41:05 -11:00
miketout
9feb4b9e08
Major updates integration from all upstreams
2018-09-18 14:33:53 -07:00
Michael Toutonghi
0ba2065183
Network decentralizatoin and bug fixes
2018-08-09 15:32:48 -07:00
Pavol Rusnak
2bc62dc4e3
limit total length of user agent comments
...
Reworked-By: Wladimir J. van der Laan <laanwj@gmail.com >
2018-04-13 07:40:34 -06:00
jl777
9000990c30
Merge remote-tracking branch 'zcash/master' into rebase2
...
# Conflicts:
# .travis.yml
# Makefile.am
# README.md
# configure.ac
# depends/Makefile
# depends/builders/darwin.mk
# depends/funcs.mk
# depends/hosts/darwin.mk
# depends/packages/googlemock.mk
# depends/packages/googletest.mk
# depends/packages/libsnark.mk
# depends/packages/libsodium.mk
# depends/packages/packages.mk
# depends/packages/rust.mk
# src/Makefile.am
# src/Makefile.gtest.include
# src/chainparams.cpp
# src/chainparams.h
# src/checkpoints.h
# src/clientversion.h
# src/coins.cpp
# src/consensus/consensus.h
# src/gtest/test_mempool.cpp
# src/httprpc.cpp
# src/init.cpp
# src/komodo-tx.cpp
# src/main.cpp
# src/miner.cpp
# src/policy/fees.cpp
# src/policy/fees.h
# src/rpcmining.cpp
# src/rpcrawtransaction.cpp
# src/rpcserver.cpp
# src/test/policyestimator_tests.cpp
# src/test/rpc_wallet_tests.cpp
# src/test/transaction_tests.cpp
# src/txdb.cpp
# src/txmempool.cpp
# src/wallet/asyncrpcoperation_sendmany.cpp
# src/wallet/rpcwallet.cpp
# src/wallet/wallet.cpp
# src/wallet/wallet.h
# src/zcash/CreateJoinSplit.cpp
# zcutil/build.sh
2018-03-25 18:44:38 +03:00
Simon
72b2192950
Overwinter peer management and network handshaking.
...
Implements ZIP 201.
2018-02-23 14:21:27 -08:00
jl777
9cb1ec9c6e
WIN32 -> _WIN32
2017-10-15 02:04:29 +03:00
jl777
8ab425f8b2
Test
2017-09-18 18:34:43 +02:00
jl777
336a60cf9b
Prevent duplicate headers
2017-09-18 16:57:31 +02:00
Daira Hopwood
506a21850a
Remove UPnP support. fixes #2500
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org >
2017-07-03 08:57:05 +01:00
Patrick Strateman
a05be280e7
Remove vfReachable and modify IsReachable to only use vfLimited.
...
We do not know that a class of Network is reachable, only that it is not.
2017-03-25 20:25:45 +13:00
Wladimir J. van der Laan
975dc649af
torcontrol improvements and fixes
...
- Force AUTHCOOKIE size to be 32 bytes: This provides protection against
an attack where a process pretends to be Tor and uses the cookie
authentication method to nab arbitrary files such as the
wallet
- torcontrol logging
- fix cookie auth
- add HASHEDPASSWORD auth, fix fd leak when fwrite() fails
- better error reporting when cookie file is not ok
- better init/shutdown flow
- stop advertizing service when disconnected from tor control port
- COOKIE->SAFECOOKIE auth
2017-03-25 20:22:12 +13:00
Matt Quinn
8a5ae3c7a9
Consolidate individual references to the current maximum peer connection
...
value of 125 into a single constant declaration.
2017-03-25 20:22:07 +13:00
zkbot
a7cf698873
Auto merge of #2100 - str4d:2074-rpc, r=arcalinea
...
Bitcoin 0.12 RPC PRs 1
Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6266
- bitcoin/bitcoin#6257
- bitcoin/bitcoin#6271
- bitcoin/bitcoin#6158
- bitcoin/bitcoin#6307
- bitcoin/bitcoin#6290
- bitcoin/bitcoin#6262
- bitcoin/bitcoin#6088
- bitcoin/bitcoin#6339
- bitcoin/bitcoin#6299 (partial, remainder in #2099 )
- bitcoin/bitcoin#6350
- bitcoin/bitcoin#6247
- bitcoin/bitcoin#6362
- bitcoin/bitcoin#5486
- bitcoin/bitcoin#6417
- bitcoin/bitcoin#6398 (partial, remainder was included in #1950 )
- bitcoin/bitcoin#6444
- bitcoin/bitcoin#6456 (partial, remainder was included in #2082 )
- bitcoin/bitcoin#6380
- bitcoin/bitcoin#6970
Part of #2074 .
2017-03-04 02:57:46 +00:00
Philip Kaufmann
db954a65ac
use const references where appropriate
2017-03-03 10:57:05 -08:00
Jonas Schnelli
fcc8920f36
setban: rewrite to UniValue, allow absolute bantime
2017-03-02 13:23:03 -08:00
Jonas Schnelli
e521939942
[RPC] extend setban to allow subnets
2017-03-02 13:23:03 -08:00
Jonas Schnelli
445cd761c5
[net] remove unused return type bool from CNode::Ban()
2017-03-02 13:23:03 -08:00
Jonas Schnelli
997829713c
[net] extend core functionallity for ban/unban/listban
2017-03-02 13:23:03 -08:00
Gregory Maxwell
a514cb2968
Only send one GetAddr response per connection.
...
This conserves resources from abusive peers that just send
getaddr in a loop. Also makes correlating addr messages
against INVs less effective.
2016-10-20 20:30:53 -07:00
Gregory Maxwell
e2190f8017
Limit setAskFor and retire requested entries only when a getdata returns.
...
The setAskFor duplicate elimination was too eager and removed entries
when we still had no getdata response, allowing the peer to keep
INVing and not responding.
2016-09-15 23:41:29 -07:00
kazcw
56f165bdc1
prevent peer flooding request queue for an inv
...
mapAlreadyAskedFor does not keep track of which peer has a request queued for a
particular tx. As a result, a peer can blind a node to a tx indefinitely by
sending many invs for the same tx, and then never replying to getdatas for it.
Each inv received will be placed 2 minutes farther back in mapAlreadyAskedFor,
so a short message containing 10 invs would render that tx unavailable for 20
minutes.
This is fixed by disallowing a peer from having more than one entry for a
particular inv in mapAlreadyAskedFor at a time.
2016-09-15 23:17:34 -07:00
Patrick Strateman
0560d671ab
Remove redundant whiteconnections option
2016-08-15 19:37:27 -06:00
Patrick Strateman
e279e5f90a
Record nMinPingUsecTime
2016-08-15 19:31:14 -06:00
Gavin Andresen
9a1dcea2df
Use CScheduler for net's DumpAddresses
...
Instead of starting Yet Another Thread to dump addresses,
use CScheduler to do it.
2015-05-14 12:50:42 -04:00
Wladimir J. van der Laan
00e76db8c2
Merge pull request #6085
...
b05a89b Non-grammatical language improvements (Luke Dashjr)
7e6d23b Bugfix: Grammar fixes (Corinne Dashjr)
2015-05-04 08:01:58 +02:00
Corinne Dashjr
7e6d23b171
Bugfix: Grammar fixes
2015-05-01 11:21:27 +00:00
Gavin Andresen
d81cff32e5
Replace mruset setAddrKnown with CRollingBloomFilter addrKnown
...
Use a probabilistic bloom filter to keep track of which addresses
we think we have given our peers, instead of a list.
This uses much less memory, at the cost of sometimes failing to
relay an address to a peer-- worst case if the bloom filter happens
to be as full as it gets, 1-in-1,000.
Measured memory usage of a full mruset setAddrKnown: 650Kbytes
Constant memory usage of CRollingBloomFilter addrKnown: 37Kbytes.
This will also help heap fragmentation, because the 37K of storage
is allocated when a CNode is created (when a connection to a peer
is established) and then there is no per-item-remembered memory
allocation.
I plan on testing by restarting a full node with an empty peers.dat,
running a while with -debug=addrman and -debug=net, and making sure
that the 'addr' message traffic out is reasonable.
(suggestions for better tests welcome)
2015-04-30 08:16:20 -07:00
Wladimir J. van der Laan
dd4ffcec0e
Merge pull request #5859
...
9519a9a Add correct bool combiner for net signals (Pieter Wuille)
2015-03-12 11:14:03 +01:00
Pieter Wuille
2f10aa0fa1
Merge pull request #5151
...
eec3713 make CMessageHeader a dumb storage class (Cory Fields)
2015-03-07 05:38:34 -08:00
Pieter Wuille
ba04c4a780
Limit message sizes before transfer
...
This introduces a fixed limit for the size of p2p messages, and enforces it
before download.
2015-03-06 04:03:17 -08:00
Pieter Wuille
9519a9a420
Add correct bool combiner for net signals
2015-03-06 03:45:26 -08:00
Pieter Wuille
9abbeeabd7
Remove obsolete pubsub method definitions
2015-02-26 05:30:59 -08:00
Cory Fields
eec37136fd
make CMessageHeader a dumb storage class
...
It shouldn't know or care about bitcoind's chain param selection
2015-02-25 18:44:49 -05:00
Wladimir J. van der Laan
66b473457b
Delete RecvLine function
...
No longer necessary since #5161 / 845c86d128 .
2015-01-20 18:03:20 +01:00
Wladimir J. van der Laan
c986972ad7
Merge pull request #5476
...
73caf47 Display time offset in the debug window's Peers tab (Pavel Janík)
26a6bae Add time offset to getpeerinfo output (Pavel Janík)
2015-01-02 17:54:21 +01:00
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
2014-12-19 19:55:32 +01:00