Cory Fields
60befa3997
net: handle message accounting in ReceiveMsgBytes
...
This allows locking to be pushed down to only where it's needed
Also reuse the current time rather than checking multiple times.
8 years ago
Matt Corallo
fac4c78028
Make PartiallyDownloadedBlock::InitData's second param const
8 years ago
Matt Corallo
b55b416346
Add extra_count lower bound to compact reconstruction debug print
8 years ago
Matt Corallo
73666ad059
Add comment to describe callers to ActivateBestChain
8 years ago
Pieter Wuille
82e8baab3c
Avoid boost dynamic_bitset in rest_getutxos
8 years ago
Pieter Wuille
99f001eb52
Fix memory leak in multiUserAuthorized
8 years ago
Pieter Wuille
5a0b7e4106
Fix memory leak in net_tests
8 years ago
Pieter Wuille
6b03bfb840
Fix memory leak in wallet tests
8 years ago
Pieter Wuille
f94f3e0df8
Avoid integer overflows in scriptnum tests
8 years ago
Pieter Wuille
843c560003
Avoid unaligned access in crypto i/o
8 years ago
Alex Morcos
34ede124af
Document fee estimation changes
8 years ago
Alex Morcos
b348287b79
Clarify that prioritisetransaction remains supported
8 years ago
Suhas Daftuar
4b06e41c30
Add unit test for FindEarliestAtLeast
8 years ago
Gregory Maxwell
997a98a674
Replace FindLatestBefore used by importmuti with FindEarliestAtLeast.
...
In spite of the name FindLatestBefore used std::lower_bound to try
to find the earliest block with a nTime greater or equal to the
the requested value. But lower_bound uses bisection and requires
the input to be ordered with respect to the comparison operation.
Block times are not well ordered.
I don't know what lower_bound is permitted to do when the data
is not sufficiently ordered, but it's probably not good.
(I could construct an implementation which would infinite loop...)
To resolve the issue this commit introduces a maximum-so-far to the
block indexes and searches that.
For clarity the function is renamed to reflect what it actually does.
An issue that remains is that there is no grace period in importmulti:
If a address is created at time T and a send is immediately broadcast
and included by a miner with a slow clock there may not yet have been
any block with at least time T.
The normal rescan has a grace period of 7200 seconds, but importmulti
does not.
8 years ago
MarcoFalke
02e5308c1b
Merge #9525 : test: Include tx data in EXTRA_DIST
...
fa29736
test: Include tx data in EXTRA_DIST (MarcoFalke)
8 years ago
MarcoFalke
fa2973678e
test: Include tx data in EXTRA_DIST
8 years ago
Wladimir J. van der Laan
7cb024eba6
Merge #9222 : Add 'subtractFeeFromAmount' option to 'fundrawtransaction'.
...
453bda6
Add 'subtractFeeFromOutputs' option to 'fundrawtransaction'. (Chris Moore)
8 years ago
Wladimir J. van der Laan
f9117f2047
Merge #9468 : [Depends] Dependency updates for 0.14.0
...
7f1fa99
[depends] native_ds_store 1.1.0 (fanquake)
c6347ae
[depends] dbus 1.10.14 (fanquake)
a4c6da0
[depends] ccache 3.3.3 (fanquake)
6019d21
[depends] FreeType 2.7.1 (fanquake)
4ed6faf
[depends] Boost 1.63.0 (fanquake)
8ac1830
[depends] Latest config.guess and config.sub (fanquake)
8 years ago
Wladimir J. van der Laan
2742568a00
Merge #9261 : Add unstored orphans with rejected parents to recentRejects
...
dfbe0d5
Add unstored orphans with rejected parents to recentRejects (Alex Morcos)
8 years ago
Wladimir J. van der Laan
d5d4ad87af
Merge #8883 : Add all standard TXO types to bitcoin-tx
...
0c50909
testcases: explicitly specify transaction version 1 (John Newbery)
b7e144b
Add test cases to test new bitcoin-tx functionality (jnewbery)
61a1534
Add all transaction output types to bitcoin-tx. (jnewbery)
1814b08
add p2sh and segwit options to bitcoin-tx outscript command (Stanislas Marion)
8 years ago
Wladimir J. van der Laan
fac0f30482
Merge #9472 : Disentangle progress estimation from checkpoints and update it
...
df36371
Update estimated transaction count data (Pieter Wuille)
e356d9a
Shorten variable names and switch to tx/s (Pieter Wuille)
6dd8116
Remove SIGCHECK_VERIFICATION_FACTOR (Pieter Wuille)
3641141
Move tx estimation data out of CCheckPointData (Pieter Wuille)
a4bac66
[MOVEONLY] Move progress estimation out of checkpoints (Pieter Wuille)
8 years ago
MarcoFalke
a65ced1a66
Merge #9518 : Return height of last block pruned by pruneblockchain RPC
...
918d1fb
Return height of last block pruned by pruneblockchain RPC (Russell Yanofsky)
8 years ago
MarcoFalke
2456a835f0
Merge #9520 : Deprecate non-txindex getrawtransaction and better warning
...
db904db
Deprecate non-txindex getrawtransaction and better warning (Pieter Wuille)
8 years ago
Matt Corallo
962f7f054f
Call ActivateBestChain without cs_main/with most_recent_block
...
There is still a call to ActivateBestChain with cs_main if a peer
requests the block prior to it being validated, but this one is
more specifically-gated, so should be less of an issue.
8 years ago
MarcoFalke
9ec1330b45
Merge #9416 : travis: make distdir before make
...
faaf3ca
travis: make distdir before make (MarcoFalke)
8 years ago
MarcoFalke
0b738075bd
Merge #9297 : Various RPC help outputs updated
...
54ee3fc
RPC help updated (Michael Rotarius)
8 years ago
Pieter Wuille
db904db7e6
Deprecate non-txindex getrawtransaction and better warning
8 years ago
Matt Corallo
0df777db6d
Use a temp pindex to avoid a const_cast in ProcessNewBlockHeaders
8 years ago
Jeremy Rubin
aad4cb5059
Address ryanofsky feedback on CCheckQueue benchmarks. Eliminated magic numbers, fixed scoping of vectors (and memory movement component of benchmark).
8 years ago
Pieter Wuille
05950427d3
Merge #9507 : Fix use-after-free in CTxMemPool::removeConflicts()
...
fe7e593
Fix use-after-free in CTxMemPool::removeConflicts() (Suhas Daftuar)
8 years ago
Michael Rotarius
54ee3fcb8f
RPC help updated
8 years ago
Russell Yanofsky
918d1fb86b
Return height of last block pruned by pruneblockchain RPC
...
Change suggested by Jonas Schnelli <dev@jonasschnelli.ch> in
https://github.com/bitcoin/bitcoin/pull/7871#discussion_r95577623
8 years ago
Pieter Wuille
df3637177a
Update estimated transaction count data
8 years ago
Pieter Wuille
e356d9a758
Shorten variable names and switch to tx/s
8 years ago
Wladimir J. van der Laan
e2e624d9ce
Merge #7871 : Manual block file pruning.
...
afffeea
fixup! Add pruneblockchain RPC to enable manual block file pruning. (Russell Yanofsky)
1fc4ec7
Add pruneblockchain RPC to enable manual block file pruning. (mrbandrews)
8 years ago
Wladimir J. van der Laan
ca615e6c05
Merge #9471 : [depends] libevent 2.1.7rc
...
8217bd1
[depends] libevent 2.1.7rc (fanquake)
8 years ago
Wladimir J. van der Laan
593a00ce19
Merge #9506 : RFC: Improve style for if indentation
...
74994c6
Improve style w.r.t. if (Pieter Wuille)
8 years ago
Wladimir J. van der Laan
bbf193fef0
Merge #9513 : build: fix qt distdir builds (retry)
...
67ca130
build: fix for out-of-tree/distdir qt builds (Cory Fields)
8 years ago
MarcoFalke
faaf3ca0af
travis: make distdir before make
8 years ago
fanquake
7f1fa99a21
[depends] native_ds_store 1.1.0
8 years ago
Cory Fields
67ca130f73
build: fix for out-of-tree/distdir qt builds
8 years ago
fanquake
c6347aec6c
[depends] dbus 1.10.14
8 years ago
fanquake
a4c6da085b
[depends] ccache 3.3.3
8 years ago
fanquake
6019d21a43
[depends] FreeType 2.7.1
8 years ago
fanquake
4ed6faf381
[depends] Boost 1.63.0
8 years ago
fanquake
8ac18303da
[depends] Latest config.guess and config.sub
8 years ago
Alex Morcos
116419e58d
Don't overwrite validation state with corruption check
...
AcceptToMemoryPool has several classes of return false statements.
- return state.Invalid or state.DoS directly itself
- return false and set fMissingInputs (state is valid)
- return false and state is set by failed CheckTransaction
- return false and state is set by failed CheckInputs.
This commit patches the last case where the state variable was reused for additional calls to CheckInputs to identify witness stripping as cause of validation failure. After this commit, it should be the case that if !fMissingInputs, state is always Invalid if AcceptToMemoryPool returns false.
8 years ago
Suhas Daftuar
fe7e593b24
Fix use-after-free in CTxMemPool::removeConflicts()
8 years ago
Pieter Wuille
74994c6577
Improve style w.r.t. if
8 years ago
Matt Corallo
863edb45b9
Consider all (<100k memusage) txn for compact-block-extra-txn cache
8 years ago