Wladimir J. van der Laan
d1e26d4e71
Move CMedianFilter to timedata.cpp
...
Now that we no longer use the median filter to keep track of
the number of blocks of peers, that's the only place it is used.
10 years ago
Daniel Kraft
d0867acb0e
Use const CCoinsView's at some places.
...
At some places where it is possible (e. g., CheckInputs), use a const
version of CCoinsView instead of a non-const one.
10 years ago
Daniel Kraft
a3dc587a62
Make appropriate getter-routines "const" in CCoinsView.
...
Mark the "Get"/"Have" routines in CCoinsView and subclasses as "const".
10 years ago
Daniel Kraft
ffb4c210bc
Mark LevelDB "Read" and "Exists" functions as const.
...
Mark the "Read" and "Exists" functions in CLevelDBWrapper as "const".
They do not change anything in the DB, by definition.
10 years ago
Pieter Wuille
92bb6f2f17
Bypass reloading blocks from disk
10 years ago
Peter Todd
aa41ac216e
Test IsPushOnly() with invalid push
10 years ago
Pieter Wuille
fff7455ded
Make CScript::clear() release its memory
10 years ago
Pieter Wuille
b0875eb3fe
Allow BatchWrite to destroy its input, reducing copying
10 years ago
jtimon
654871d436
replace ComputeMinWork with CheckMinWork
10 years ago
jtimon
b343c1a1e3
Move CBlockIndex::GetBlockWork() to pow::GetProofIncrement(nBits)
10 years ago
jtimon
c2c02f3fa9
Move UpdateTime to pow
10 years ago
Jeff Garzik
7f836c66bd
rpc_tests: use BOOST_CHECK_EQUAL
...
Upon failure, BOOST_CHECK_EQUAL provides additional diagnostic information,
displaying that data that failed to match.
10 years ago
Wladimir J. van der Laan
3802224110
Remove all other print() methods
...
All unused.
10 years ago
Wladimir J. van der Laan
9b6d4c5cdc
Move strprintf define to tinyformat.h
...
This avoids a dependency on util.h if just tinyformat is needed.
10 years ago
Wladimir J. van der Laan
81212588c0
Remove print() from core functions
...
Break dependency on util.
10 years ago
Jeff Garzik
dc271fc025
UniValue tests: use more BOOST_CHECK()
10 years ago
Jeff Garzik
e85267be63
UniValue: add unit tests
10 years ago
Jeff Garzik
dee9324a0b
UniValue: compact (!pretty) output should not include extra whitespace
10 years ago
Jeff Garzik
42642c9695
UniValue: use correct setNumStr() input val, when setting number values
10 years ago
Jeff Garzik
df4d61e681
Add bitcoin-tx tests
...
Testing: delin, delout, locktime, and basic createrawtransaction-like
functionality.
10 years ago
Jeff Garzik
fb14452c6c
bitcoin-tx: Accept input via stdin. Add input handling to tests.
10 years ago
Jeff Garzik
d789386371
Add "it works" test for bitcoin-tx
10 years ago
Wladimir J. van der Laan
01094bd01f
Don't reveal whether password is <20 or >20 characters in RPC
...
As discussed on IRC.
It seems bad to base a decision to delay based on the password length,
as it leaks a small amount of information.
10 years ago
Jeff Garzik
3a56de7fc3
addrman: Do not propagate obviously poor addresses onto the network
10 years ago
Cory Fields
e432a5f08d
build: add option for reducing exports (v2)
...
This was committed previously as 4975ae172
and reverted, because the flags were
applied even if the checks didn't pass. This is the same commit, fixed up to
actually disable the functionality when necessary.
Enabled automatically if boost >= 1.49.
See: https://svn.boost.org/trac/boost/ticket/2309
Also, check for a default visibility attribute, so that we can mark future
api functions correctly.
10 years ago
Kamil Domanski
8695a39350
replace int with size_t in stream methods
...
Thus the read(...) and write(...) methods of all stream classes now have identical parameter lists.
This will bring these classes one step closer to a common interface.
10 years ago
Wladimir J. van der Laan
fad23a210b
Revert "build: add option for reducing exports"
...
Revert #4663 for now. It still breaks the pulltester.
This reverts commit 4975ae1722
.
Conflicts:
configure.ac
10 years ago
Jeff Garzik
3cceba7abb
Univalue: Do not build JSON escape list at runtime
...
No need to waste startup time building something that can be done
at compile time.
This also resolves a clang++ warning originally reported in #4714 ,
univalue/univalue_write.cpp:33:12: warning: array subscript is of type 'char
escapes['"'] = "\\"";
^~~~
etc.
10 years ago
Wladimir J. van der Laan
e4731dd85c
qt: Use quint64 for formatServicesStr
...
`uint64_t` was causing a build error on some systems, as that type is
not known after including just the Qt headers.
10 years ago
Wladimir J. van der Laan
aa8279513b
Add detailed network info to getnetworkinfo RPC
...
This commit adds per-network information to the
getnetworkinfo RPC call:
- Is the network limited?
- Is the network reachable
- Which proxy is used for this network, if any
Inspired by #2575 .
10 years ago
Wladimir J. van der Laan
88fe88cf36
gui: remove redundant numTransactions tracking
...
This number was still tracked even though it's shown nowhere in the UI
anymore. It was originally removed because it didn't match the actual number of
records in the view (which contains outputs, not transactions) thus was
confusing people.
10 years ago
Cozz Lovan
cb5fa86f42
[Qt] Revert overviewpage from QFormLayout to QVBoxLayout
10 years ago
Cozz Lovan
0d27dad845
Clean-up SyncWithWallets/SyncTransaction
10 years ago
randy-waterhouse
c101c76907
build: Add --with-utils (bitcoin-cli and bitcoin-tx, default=yes).
...
Help string consistency tweaks. Target sanity check fix.
10 years ago
Ross Nicoll
5cbda4f10f
Changed LevelDB cursors to use scoped pointers to ensure destruction when going out of scope.
...
This corrects a bug where an exception thrown reading from the database causes the cursor to
be left open, which causes an assertion error to occur when the database is deleted (around
line 938 of init.cpp).
10 years ago
randy-waterhouse
a65668ddc0
build : fix CPPFLAGS for libbitcoin_cli
10 years ago
Cory Fields
4975ae1722
build: add option for reducing exports
...
Enabled automatically if boost >= 1.49.
See: https://svn.boost.org/trac/boost/ticket/2309
Also, check for a default visibility attribute, so that we can mark future
api functions correctly.
10 years ago
Cory Fields
54c7df81f3
build: Fix boost build on some platforms
...
When the libpath doesn't line up with the value from config.sub, we don't find
the correct path to boost's libs. This adds a hack to try another path before
giving up.
Should close #3219 .
10 years ago
Cory Fields
6b099402b4
build: fix automake warnings about the use of INCLUDES
...
While we're at it, reduce the use of LIBS as well. This makes dependencies
explicit.
Fixes building with (the not-yet-merged) libsecp256k1 as well.
Github-Pull: #4689
Rebased-By: Wladimir J. van der laan <laanwj@gmail.com>
Rebased-From: 909b347 c0e5dda
10 years ago
Jeff Garzik
6f2c26a457
Closely track mempool byte total. Add "getmempoolinfo" RPC.
...
Goal: Gain live insight into the mempool. Groundwork for future work
that caps mempool size.
10 years ago
Jeff Garzik
c7b6117deb
Create new signal for notification of new blocks. Use w/ -blocknotify
10 years ago
Jeff Garzik
beb36e800c
ui_interface: remove unused NotifyBlocksChanged signal
10 years ago
Cozz Lovan
da2ede2aa6
[Wallet] Improve ReorderTransactions(..)
10 years ago
Cory Fields
616c24307f
bitcoin-tx: fix build warnings
...
Cleans up a bunch of:
warning: missing braces around initializer for ‘const<anonymous struct>’
10 years ago
Peter Todd
9ee09dc64f
Reapply: Reject transactions with excessive numbers of sigops
...
Reverting was based on a misunderstanding, it appears.
Github-Pull: #4150
10 years ago
Wladimir J. van der Laan
c33b983903
Don't poll showmyip.com, it doesn't exist anymore
...
Fixes #4679 .
This leaves us with only one candidate, checkip.dyndns.org.
GetMyExternalIP should be phased out as soon as possible.
10 years ago
Wladimir J. van der Laan
3b72fdfb86
Revert "Reject transactions with excessive numbers of sigops"
...
This reverts commit 4fad8e6d83
.
10 years ago
ntrgn
8bfdc9acaa
qt: better looking trayicon
...
Github-Pull: #4678
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
10 years ago
Wladimir J. van der Laan
4c61ba40b9
build: check for sys/prctl.h in the proper way
...
Use AC_CHECK_HEADERS to check for the header, and include it only
if detected and the subsequent HAVE_SYS_PRCTL_H is set.
10 years ago
Wladimir J. van der Laan
76c49c4138
Fix thread name setting
...
Because of a typo, thread names no longer appeared in the overview.
This was broken in 51ed9ec
.
10 years ago