Commit Graph

2752 Commits

Author SHA1 Message Date
jl777
c38ad7246d Test 2018-04-09 16:48:19 +03:00
jl777
9aa73758b7 Test 2018-04-09 16:46:55 +03:00
jl777
f0a5789a5b Test 2018-04-09 16:43:37 +03:00
jl777
935fee29b5 Test 2018-04-09 16:41:32 +03:00
jl777
9339a0cbbd Test 2018-04-09 16:26:57 +03:00
jl777
8d787d2580 Test 2018-04-08 21:55:19 +03:00
jl777
fd836de79b Test 2018-04-08 19:59:29 +03:00
jl777
91165f19e6 Test 2018-04-08 19:01:04 +03:00
jl777
dbbdf7de87 Test 2018-04-08 18:57:56 +03:00
jl777
6a933d59d8 Test 2018-04-08 18:53:33 +03:00
jl777
84165583ca Merge branch 'dev' into jl777 2018-04-08 13:19:02 +03:00
jl777
53db65421e Merge pull request #538 from libscott/cryptoconditions
Crypto-Conditions
2018-04-08 13:18:26 +03:00
jl777
ce5dd5473e Test 2018-04-07 18:53:54 +03:00
jl777
ea1244288b Test 2018-04-07 15:50:31 +03:00
jl777
b7dc56995e Test 2018-04-07 15:48:51 +03:00
jl777
de4a435c68 Test 2018-04-07 15:42:18 +03:00
jl777
cf7f440296 Test 2018-04-06 18:29:45 +03:00
jl777
6b30b27c1c Test 2018-04-06 17:44:47 +03:00
jl777
b0bd536aad Test 2018-04-06 17:25:31 +03:00
jl777
09a3e8c285 Test 2018-04-06 13:25:11 +03:00
jl777
5ba45a00f1 Test 2018-04-06 13:23:39 +03:00
jl777
0b652b660a Test 2018-04-06 13:22:26 +03:00
jl777
5c079fa330 Test 2018-04-06 13:18:38 +03:00
R E Broadley
4f31d82395 Allow filterclear messages for enabling TX relay only.
An example of where this might be useful is allowing a node to connect blocksonly during IBD but then becoming a full-node once caught up with the latest block. This might also even want to be the default behaviour since during IBD most TXs appear to be orphans, and are routinely dropped (for example when a node disconnects). Therefore, this can waste a lot of bandwidth.

Additionally, another pull could be written to stop relaying of TXs to nodes that are clearly far behind the latest block and are running a node that doesn't store many orphan TXs, such as recent versions of Bitcoin Core.
2018-04-05 01:30:38 +01:00
Jack Grigg
2b7fcab8fc Move bloom filter filtering logic back into command "switch" 2018-04-05 01:30:38 +01:00
Matt Corallo
1c82adeb87 Don't do mempool lookups for "mempool" command without a filter 2018-04-05 01:30:12 +01:00
Patick Strateman
f07ad43553 Add enforcenodebloom option.
Previously peers which implement a protocol version less than NO_BLOOM_VERSION
would not be disconnected for sending a filter command, regardless of the
peerbloomfilter option.

Many node operators do not wish to provide expensive bloom filtering for SPV
clients, previously they had to cherry pick the commit which enabled the
disconnect logic.

The default should remain false until a sufficient percent of SPV clients
have updated.
2018-04-05 01:30:12 +01:00
Patick Strateman
d06ae252a0 Move bloom filter filtering logic outside of command "switch" (giant if/else).
Moving this logic outside of the "switch" makes it far simpler to
enable the forced disconnect by a parameter.
2018-04-05 01:30:12 +01:00
Matt Corallo
8bc4461326 Add NODE_BLOOM service bit and bump protocol version
Lets nodes advertise that they offer bloom filter support explicitly.
The protocol version bump allows SPV nodes to assume that NODE_BLOOM is
set if NODE_NETWORK is set for pre-170004 nodes.

Also adds an option to turn bloom filter support off for nodes which
advertise a version number >= 170004. Nodes attempting to use bloom
filters on such protocol versions are banned, and a later upgade
should drop nodes of an older version which attempt to use bloom
filters.

Much code stolen from Peter Todd.

Zcash: Implements Zcash equivalent of BIP 111; deploys with Overwinter
2018-04-05 01:30:12 +01:00
Daira Hopwood
473a113241 Don't increase banscore if the transaction only just expired.
Author: Jack Grigg <str4d@z.cash>
2018-04-04 01:29:47 +01:00
Jay Graber
e4dff510b4 Set ban score for expired txs to 0 2018-04-03 23:50:43 +01:00
Jack Grigg
f5007d8912 When rewinding, remove insufficiently-validated blocks
If a block is insufficiently-validated against a particular branch ID, then we
cannot guarantee that even the block header will be valid under the actual
consensus rules the node will want to apply. Instead require that the blocks are
completely re-validated, by removing them from the block index (which is
equivalent to reducing their validity to BLOCK_VALID_UNKNOWN).
2018-04-03 10:58:31 +01:00
Scott Sadler
2c8d8268dd ImportPayout cc eval code and alot of general cc polish. tests to write 2018-03-30 15:46:41 -03:00
Homu
72f14060bc Auto merge of #3098 - str4d:2343-overwinter-disable-mempooltxinputlimit, r=str4d
Ignore -mempooltxinputlimit once Overwinter activates

Overwinter changes the SignatureHash function to solve the quadratic hashing problem, so this option will no longer be needed.
2018-03-30 08:33:58 -07:00
Jack Grigg
31afbcc5c9 Ignore -mempooltxinputlimit once Overwinter activates 2018-03-28 14:25:42 +02:00
Simon
8b15afd315 Closes #3110. Ensure user can see error message about absurdly high fees. 2018-03-27 10:23:24 -07:00
TheTrunk
8b78a8199e Bitcore port 2018-03-27 13:34:52 +02:00
jl777
2c0218f0ab Test 2018-03-26 16:23:01 +03:00
jl777
b3167f313c Test 2018-03-26 16:15:14 +03:00
jl777
2da1debd06 Test 2018-03-26 16:10:12 +03:00
jl777
c60397dd3a Lagging chaintip fix 2018-03-26 15:38:49 +03:00
jl777
28ee65c78a Test 2018-03-26 14:42:46 +03:00
jl777
60aee10df5 Test 2018-03-26 14:40:11 +03:00
jl777
287a665404 Test 2018-03-25 22:48:54 +03: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
jl777
f233f9b156 Revert 2018-03-08 05:46:26 +02:00
jl777
ca65f7ab1e Test 2018-03-08 05:40:10 +02:00
jl777
1931844a9c Change IsInitialBlockDownload for asset chains to match KMD 2018-03-08 05:30:26 +02:00
jl777
4e0d20786b Test 2018-03-08 02:37:17 +02:00
jl777
6dc496fb3d Test 2018-03-08 01:47:56 +02:00