Jonas Schnelli
a46f87f0c1
Initialize logging before we do parameter interaction
9 years ago
Jonas Schnelli
df66147613
Move -blocksonly parameter interaction to the new ParameterInteraction() function
9 years ago
Jonas Schnelli
68354e75e9
[QT] Call inits parameter interaction before we create the options model
9 years ago
Jonas Schnelli
411b05ac95
Refactor parameter interaction, call it before AppInit2()
9 years ago
MarcoFalke
fa472f330f
[trivial] Fix -maxmempool InitError
9 years ago
Patick Strateman
9cf668844e
Document both the peerbloomfilters and enforcenodebloom options.
9 years ago
Patick Strateman
0f4dc53fd6
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.
9 years ago
Patick Strateman
b3caa9b7fa
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.
9 years ago
tulip
4846543ac5
Move time data log print to 'net' category to reduce log noise
9 years ago
Patick Strateman
80ae230a52
Improve log messages for blocks only violations.
9 years ago
Luke Dashjr
3e7c89196c
Optimisation: Store transaction list order in memory rather than compute it every need
...
Huge performance improvement (450%) for zapwallettxes
9 years ago
Peter Todd
08843ed998
Add relaytxes status to getpeerinfo
9 years ago
Patick Strateman
d8aaa51bec
Bail early in processing transactions in blocks only mode.
...
Previously unsolicited transactions would be processed as normal.
9 years ago
Patick Strateman
3587f6a024
Fix relay mechanism for whitelisted peers under blocks only mode.
...
Previously in blocks only mode all inv messages where type!=MSG_BLOCK would be
rejected without regard for whitelisting or whitelistalwaysrelay.
As such whitelisted peers would never send the transaction (which would be
processed).
9 years ago
Pavel Janík
5c2fd38d05
Add missing "blocktime" description to listtransactions help, fix formatting.
9 years ago
Wladimir J. van der Laan
3522f49f5a
http: add Boost 1.49 compatibility
...
`try_join_for` was introduced in Boost 1.50:
http://www.boost.org/doc/libs/1_50_0/doc/html/thread/thread_management.html#thread.thread_management.thread.try_join_for
1.49 has `timed_join`, one can accomplish the same with:
http://www.boost.org/doc/libs/1_49_0/doc/html/thread/thread_management.html#thread.thread_management.thread.timed_join
However, `timed_join` was deprecated in 1.50. So a conditional is
necessary.
This solution was tested in #7031 .
9 years ago
Jonas Schnelli
c197798d1b
[Qt] simple mempool info in debug window
9 years ago
Wladimir J. van der Laan
52c563710d
qt: Periodic translations update
9 years ago
Wladimir J. van der Laan
b4f3e9c09e
ui: Add "Copy raw transaction data" to transaction list context menu
...
Add a way to quickly copy transaction hex.
Primarily useful when manually submitting transactions,
e.g. `-walletbroadcast=0` is set.
9 years ago
Daniel Cousens
ffacd27def
zmq: prepend zmq to debug messages
9 years ago
Daniel Cousens
14075b189d
init: add zmq to debug categories
9 years ago
Daniel Cousens
cdcd816a1b
init: amend ZMQ flag names
9 years ago
Jonas Schnelli
f71bfefcb0
add UI help for -resetguisettings
9 years ago
Alex Morcos
072e2f8644
Alter assumptions in CCoinsViewCache::BatchWrite
...
Previously it would break if you flushed a parent cache while there was a child cache referring to it. This change will allow the flushing of parent caches.
9 years ago
Alex Morcos
e855b0152f
Fix debug log message for block files
9 years ago
Luke Dashjr
2aa49ce9fe
Bugfix: Use unique autostart filenames on Linux for testnet/regtest
9 years ago
Alex Morcos
e587bc3fd9
Implement helper class for CTxMemPoolEntry constructor
...
This is only for unit tests.
9 years ago
Gregory Maxwell
aee22bf288
Avoid a compile error on hosts with libevent too old for EVENT_LOG_WARN.
...
This uses _EVENT_LOG_WARN instead, which appears to be defined in the
old versions of libevent that I have on some systems.
9 years ago
Eric Lombrozo
4d29032a64
Fixed integer comparison warning.
9 years ago
Pieter Wuille
6e18268616
Switch to libsecp256k1-based validation for ECDSA
9 years ago
Patick Strateman
bbf49da408
Fix comment for blocksonly parameter interactions
9 years ago
Patick Strateman
6a4982fb83
Fix fRelayTxs comment
9 years ago
Patick Strateman
59441a0445
Display DEFAULT_WHITELISTALWAYSRELAY in help text
9 years ago
Patick Strateman
71a2683f4b
Use DEFAULT_BLOCKSONLY and DEFAULT_WHITELISTALWAYSRELAY constants
9 years ago
Patick Strateman
762b13b4d8
Add help text for blocksonly and whitelistalwaysrelay
9 years ago
Patick Strateman
3a964973fe
Add whitelistalwaysrelay option
9 years ago
Patick Strateman
420fa8143a
Do not process tx inv's in blocksonly mode
9 years ago
Patick Strateman
4044f07d1c
Add blocksonly mode
9 years ago
Peter Todd
b3ae384a8d
Remove LOCK(cs_main) from decodescript
...
Completely static RPC call that doesn't change or even look at mutable
state anywhere.
9 years ago
Peter Todd
6531f17a78
Add mediantime field to getblock and getblockheader
9 years ago
Peter Todd
7259769d7f
Document new mediantime field in getblockchaininfo
9 years ago
Peter Todd
c277a63ed7
Clarify nLockTime-by-time comment in CheckFinalTx()
9 years ago
Peter Todd
10953a7d32
Better error message for fundrawtransaction w/ empty vout
...
Previously this case failed deep in Cwallet::CreateTransaction() with
the error message "Transaction amounts must be positive"
9 years ago
Peter Todd
61e1eb2e1c
Actually use includeWatching value in fundrawtransaction
...
Previously if you called fundrawtransaction and set includeWatching to
false it'd act as through you set it to true.
9 years ago
Peter Todd
748321eb5b
Add mediantime field to getblockchaininfo RPC call
...
Useful now that BIP113 is enforced for transactions entering the
mempool. Was previously only (indirectly) available by calling
getblocktemplate, a relatively expensive RPC call.
9 years ago
Jonas Schnelli
d61fcff071
don't enforce maxuploadtargets disconnect for whitelisted peers
9 years ago
Alex Morcos
a78e6eaf5c
Fix bug in mempool_tests unit test
9 years ago
Jonas Schnelli
ae98388b22
[Qt] add startup option to reset Qt settings
9 years ago
Wladimir J. van der Laan
a264c32e33
http: speed up shutdown
...
This continues/fixes #6719 .
`event_base_loopbreak` was not doing what I expected it to, at least in
libevent 2.0.21.
What I expected was that it sets a timeout, given that no other pending
events it would exit in N seconds. However, what it does was delay the
event loop exit with 10 seconds, even if nothing is pending.
Solve it in a different way: give the event loop thread time to exit
out of itself, and if it doesn't, send loopbreak.
This speeds up the RPC tests a lot, each exit incurred a 10 second
overhead, with this change there should be no shutdown overhead in the
common case and up to two seconds if the event loop is blocking.
As a bonus this breaks dependency on boost::thread_group, as the HTTP
server minds its own offspring.
9 years ago
Pieter Wuille
48edf5746a
Update key.cpp to new secp256k1 API
9 years ago