Permalink
...
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
bitcoin/bitcoin
8706774431/litecoin
9cat/templecoin
Anoncoin/anoncoin
BSafe-network/bitcoin
BitAltcoin/bitaltcoin
BitcoinHardfork/bitcoin
BitcoinPRReadingGroup/bitcoin
BitcoinUnlimited/BitcoinUnlimited
ClaireDuSoleil/bitcoin
CoinBlack/blackcoin
Crowndev/crowncoin
DarrellDuane/bitcoin
Diapolo/bitcoin
EvgenijM86/emercoin
Fermat-ORG/iop-token-server
Flowdalic/bitcoin
Gamerbit/omnicore
GeorgeKimionis/bitcoin
HOdlcoin/HOdlcoin
HongPong/bitcoin
KnCMiner/bitcoin
ManAgainstCode/bitcoin
MazaCoin/maza
OmniLayer/omnicore
Orbitcoin/Orbitcoin
PIVX-Project/PIVX
Peershare/Peershare
Peershares/Peershares
Peerunity/Peerunity
SandyCohen/mincoin
ShadowOfHarbringer/bitcoin-nftf
SproutsCommunityRep/sprouts
T-X/bitcoin-git
TheBlueMatt/bitcoin
TheSeven/ppcoin
TommyWorldPower/Energi
TorinKwok/bitcoin
TripleSpeeder/bitcoin
UASF/bitcoin
Unseen/Goldbits
VirtualDestructor/bitcoin-qt-i2p
VsyncCrypto/Vsync
ZoomT/bitcoin
aLQ/bitbar
aaronschmitz/chronocrypt
ahmedbodi/bytecoin
atmshop/litecoin
aurarad/auroracoin-old
bankledger/bitcoin
bfroemel/smallchange
bitcoin-hivemind/hivemind
bitcoinclassic/bitcoinclassic
bitcoinec/bitcoinec
bitcoinfibre/bitcoinfibre
bitcoinknots/bitcoin
bitgem/bitgem
bitpay/bitcoin
bitshares/bitshares-pts
bitundo/bitcoin
bitzeny/bitzeny
bloq/bitcoin
bobsomers/ANDREWCHANcoin
bryan-mills/bytecoin
btc1/bitcoin
btcdrak/bitcoin
bytemaster/bitshare_bitcoin_branch
cdecker/bitcoin
chaincoin/chaincoin
cloudcoin/cloudcoin
codebounty/bitcoin
creativechain/creativechain-core
credits-currency/credits
darkhosis/Gangnam-Style-v4-tandified
dashpay/dash
dexX7/bitcoin
dgarage/bc2
donSchoe/xolominer
dooglus/bitcoin
drivechain-implementation-2/bitcoin
drivechain-project/bitcoin
earthcoinproject/earthcoin
eduffield222/dash
elacoin/elacoin
emercoin/emercoin
energicryptocurrency/energi
ezcoin/ezcoin
faircoin/faircoin
fhcteam/FengHuangCoin
florincoin/florincoin
foo1inge/datacoin
foocoin/freicoin
franko-org/franko
freewil/bitcoin
freicoin/freicoin-old
fusebox/i0coin
gandrewstone/BitcoinUnlimited
gasteve/bitcoin
gavinandresen/bitcoin-git
genjix/bitcoin
glv2/peerunity
gmaxwell/bitcoin
goku1997/bitcoin
groffer/bitcoin
halfinney/bitcoin
harry-1989/bitcoin
hrobeers/peercoin
ixcoin/ixcoin
jakeva/bitcoin-pwcheck
janko33bd/bitcoin
jaromil/bitcoin
javgh/bitcoin
jgarzik/bitcoin
jl2012/bitcoin
jlcurby/NobleCoin
jlopp/statoshi
jmezinskis/calcoin
jonasschnelli/bitcoin
jonls/bitcoin
jordanlewis/bitcoin
joulecoin/joulecoin
kaiquewdev/bitcoin
keesdewit82/LasVegasCoin
keninishna/ass-pennies
knotwork/Mergecoin
laanwj/bitcoin
litecoin-project/litecoin
llluiop/bitcoin
luke-jr/bitcoin
lzsaver/bitcoin-translation
m0mchil/bitcoin
m21/mastercore
maaku/bitcoin
mad/bitcoin
makomk/bitcoin
marscoin/marscoin
mastercoin-MSC/mastercore
mathwizard1232/nyancoins
megacoin/megacoin
memorycoin/memorycoin
mhanne/bitcoin
mikaelh2/primecoin
mikehearn/bitcoin
mincoin/mincoin
morcos/bitcoin
mrmayfield/bitcoin
mrtexaznl/mediterraneancoin
myriadcoin/myriadcoin
myriadteam/myriadcoin
namuyan/kumacoin-v2
nsacoin/nsacoin
onecoin/onecoin
particl/particl-core
peercoin/peercoin
petertodd/bitcoin
phelixbtc/bitcoin
pocopoco/yacoin
primecoin/primecoin
primedigger/primecoin
raghuariga/bitcoin
rakyll/bitcoin
reddcoin-project/reddcoin
reddink/reddcoin
reinier19/bitcoin
riecoin/riecoin
ronpaulcoin/ronpaulcoin
runn1ng/bitcoin
ryanxcharles/bitcoin
satoshisbitcoin/satoshisbitcoin
sdhjob/bitcoin
segsignal/bitcoin
sifcoin/sifcoin
sipa/bitcoin
skeincoin/skeincoin
sppl/mavro
stcupp/bitcoin
stuycoin/stuycoin
sunnyking/ppcoin
syscoin/syscoin2
tcatm/bitcoin
thbaumbach/primecoin
theuni/bitcoin
timohanke/bitcoin
timothyej/bitcoin
truthcoin/truthcoin-cpp
tumf/litecoin
tzuryby/bitcoin
udibr/bitcoin
umaar/bitcoin
umiyuki/sayacoin
vertcoin/vertcoin-old
vinced/namecoin
vtcex/bitcoin
whitslack/bitcoin-infinity
worldcoinproject/worldcoin-v0.8
yacoin/yacoin
zachlatta/marscoin
zathras-crypto/omnicore
zeta-dev/zetacoin
zetacoin/zetacoin
Nothing to show
Choose a Head Repository
bitcoin/bitcoin
8706774431/litecoin
9cat/templecoin
Anoncoin/anoncoin
BSafe-network/bitcoin
BitAltcoin/bitaltcoin
BitcoinHardfork/bitcoin
BitcoinPRReadingGroup/bitcoin
BitcoinUnlimited/BitcoinUnlimited
ClaireDuSoleil/bitcoin
CoinBlack/blackcoin
Crowndev/crowncoin
DarrellDuane/bitcoin
Diapolo/bitcoin
EvgenijM86/emercoin
Fermat-ORG/iop-token-server
Flowdalic/bitcoin
Gamerbit/omnicore
GeorgeKimionis/bitcoin
HOdlcoin/HOdlcoin
HongPong/bitcoin
KnCMiner/bitcoin
ManAgainstCode/bitcoin
MazaCoin/maza
OmniLayer/omnicore
Orbitcoin/Orbitcoin
PIVX-Project/PIVX
Peershare/Peershare
Peershares/Peershares
Peerunity/Peerunity
SandyCohen/mincoin
ShadowOfHarbringer/bitcoin-nftf
SproutsCommunityRep/sprouts
T-X/bitcoin-git
TheBlueMatt/bitcoin
TheSeven/ppcoin
TommyWorldPower/Energi
TorinKwok/bitcoin
TripleSpeeder/bitcoin
UASF/bitcoin
Unseen/Goldbits
VirtualDestructor/bitcoin-qt-i2p
VsyncCrypto/Vsync
ZoomT/bitcoin
aLQ/bitbar
aaronschmitz/chronocrypt
ahmedbodi/bytecoin
atmshop/litecoin
aurarad/auroracoin-old
bankledger/bitcoin
bfroemel/smallchange
bitcoin-hivemind/hivemind
bitcoinclassic/bitcoinclassic
bitcoinec/bitcoinec
bitcoinfibre/bitcoinfibre
bitcoinknots/bitcoin
bitgem/bitgem
bitpay/bitcoin
bitshares/bitshares-pts
bitundo/bitcoin
bitzeny/bitzeny
bloq/bitcoin
bobsomers/ANDREWCHANcoin
bryan-mills/bytecoin
btc1/bitcoin
btcdrak/bitcoin
bytemaster/bitshare_bitcoin_branch
cdecker/bitcoin
chaincoin/chaincoin
cloudcoin/cloudcoin
codebounty/bitcoin
creativechain/creativechain-core
credits-currency/credits
darkhosis/Gangnam-Style-v4-tandified
dashpay/dash
dexX7/bitcoin
dgarage/bc2
donSchoe/xolominer
dooglus/bitcoin
drivechain-implementation-2/bitcoin
drivechain-project/bitcoin
earthcoinproject/earthcoin
eduffield222/dash
elacoin/elacoin
emercoin/emercoin
energicryptocurrency/energi
ezcoin/ezcoin
faircoin/faircoin
fhcteam/FengHuangCoin
florincoin/florincoin
foo1inge/datacoin
foocoin/freicoin
franko-org/franko
freewil/bitcoin
freicoin/freicoin-old
fusebox/i0coin
gandrewstone/BitcoinUnlimited
gasteve/bitcoin
gavinandresen/bitcoin-git
genjix/bitcoin
glv2/peerunity
gmaxwell/bitcoin
goku1997/bitcoin
groffer/bitcoin
halfinney/bitcoin
harry-1989/bitcoin
hrobeers/peercoin
ixcoin/ixcoin
jakeva/bitcoin-pwcheck
janko33bd/bitcoin
jaromil/bitcoin
javgh/bitcoin
jgarzik/bitcoin
jl2012/bitcoin
jlcurby/NobleCoin
jlopp/statoshi
jmezinskis/calcoin
jonasschnelli/bitcoin
jonls/bitcoin
jordanlewis/bitcoin
joulecoin/joulecoin
kaiquewdev/bitcoin
keesdewit82/LasVegasCoin
keninishna/ass-pennies
knotwork/Mergecoin
laanwj/bitcoin
litecoin-project/litecoin
llluiop/bitcoin
luke-jr/bitcoin
lzsaver/bitcoin-translation
m0mchil/bitcoin
m21/mastercore
maaku/bitcoin
mad/bitcoin
makomk/bitcoin
marscoin/marscoin
mastercoin-MSC/mastercore
mathwizard1232/nyancoins
megacoin/megacoin
memorycoin/memorycoin
mhanne/bitcoin
mikaelh2/primecoin
mikehearn/bitcoin
mincoin/mincoin
morcos/bitcoin
mrmayfield/bitcoin
mrtexaznl/mediterraneancoin
myriadcoin/myriadcoin
myriadteam/myriadcoin
namuyan/kumacoin-v2
nsacoin/nsacoin
onecoin/onecoin
particl/particl-core
peercoin/peercoin
petertodd/bitcoin
phelixbtc/bitcoin
pocopoco/yacoin
primecoin/primecoin
primedigger/primecoin
raghuariga/bitcoin
rakyll/bitcoin
reddcoin-project/reddcoin
reddink/reddcoin
reinier19/bitcoin
riecoin/riecoin
ronpaulcoin/ronpaulcoin
runn1ng/bitcoin
ryanxcharles/bitcoin
satoshisbitcoin/satoshisbitcoin
sdhjob/bitcoin
segsignal/bitcoin
sifcoin/sifcoin
sipa/bitcoin
skeincoin/skeincoin
sppl/mavro
stcupp/bitcoin
stuycoin/stuycoin
sunnyking/ppcoin
syscoin/syscoin2
tcatm/bitcoin
thbaumbach/primecoin
theuni/bitcoin
timohanke/bitcoin
timothyej/bitcoin
truthcoin/truthcoin-cpp
tumf/litecoin
tzuryby/bitcoin
udibr/bitcoin
umaar/bitcoin
umiyuki/sayacoin
vertcoin/vertcoin-old
vinced/namecoin
vtcex/bitcoin
whitslack/bitcoin-infinity
worldcoinproject/worldcoin-v0.8
yacoin/yacoin
zachlatta/marscoin
zathras-crypto/omnicore
zeta-dev/zetacoin
zetacoin/zetacoin
Nothing to show
28
contributors
Commits on Jun 05, 2017
|
|
ryanofsky |
Run Qt wallet tests on travis
Currently these test failures are not caught by travis leading to bugs like: #10506 |
4f92b5f
|
Commits on Jun 22, 2017
|
|
TheBlueMatt |
Verify binaries from bitcoincore.org and bitcoin.org
|
6270d62
|
Commits on Jun 27, 2017
Commits on Jun 29, 2017
|
|
jonasschnelli + jnewbery |
[tests] Allow tests to pass when stderr is non-empty
Tests which pass with non-empty stderr are reported as "passed with warnings" |
d64ac3f
|
Commits on Jun 30, 2017
|
|
instagibbs |
document script-based return fields for validateaddress
|
f2f1d0a
|
Commits on Jul 02, 2017
|
|
pstratem |
Explicitly search for bdb5.3.
Some systems do not symlink the major version to the minor version. |
1cc251f
|
|||
|
|
practicalswift |
Avoid printing incorrect block indexing time due to uninitialized var…
…iable
Fixes:
init.cpp: In function ‘bool AppInitMain(boost::thread_group&, CScheduler&)’:
init.cpp:1499:56: warning: ‘nStart’ may be used uninitialized in this function [-Wmaybe-uninitialized]
LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart);
^ |
959dd87
|
Commits on Jul 04, 2017
|
|
TheBlueMatt |
Use TestingSetup to DRY qt rpcnestedtests
|
ff6a834
|
|||
|
|
TheBlueMatt |
Make ValidationInterface signals-type-agnostic
(by hiding boost::signals stuff in the .cpp) This allows us to give it a bit more intelligence as we move forward, including routing some signals through CScheduler. While the introduction of a "internals" pointer in the class is pretty ugly, the fact that we no longer need to include boost/signals directly from validationinterface.h is very much worth the loss. |
3a19fed
|
Commits on Jul 05, 2017
|
|
jnewbery |
[rpc] fix verbose argument for getblock in bitcoin-cli
|
58e9864
|
Commits on Jul 07, 2017
|
|
morcos |
remove default argument from GetMinimumFee
|
cfaef69
|
|||
|
|
morcos |
Introduce a fee estimate mode.
GetMinimumFee now passes the conservative argument into estimateSmartFee. Call CalculateEstimateType(mode) before calling GetMinimumFee or estimateSmartFee to determine the value of this argument. CCoinControl can now be used to control this mode. |
d507c30
|
|||
|
|
morcos |
remove default argument from estimateSmartFee
|
e0738e3
|
|||
|
|
morcos |
Change default fee estimation mode.
Fee estimates will default to be non-conservative if the transaction in question is opt-in-RBF. |
f0bf33d
|
|||
|
|
TheBlueMatt |
Give CMainSignals a reference to the global scheduler
...so that it can run some signals in the background later |
cda1429
|
|||
|
|
TheBlueMatt |
Add default arg to CScheduler to schedule() a callback now
|
2fbf2db
|
|||
|
|
TheBlueMatt |
Support more than one CScheduler thread for serial clients
This will be used by CValidationInterface soon. This requires a bit of work as we need to ensure that most of our callbacks happen in-order (to avoid synchronization issues in wallet) - we keep our own internal queue and push things onto it, scheduling a queue-draining function immediately upon new callbacks. |
08096bb
|
|||
|
|
TheBlueMatt |
Flush CValidationInterface callbacks prior to destruction
Note that the CScheduler thread cant be running at this point, it has already been stopped with the rest of the init threadgroup. Thus, just calling any remaining loose callbacks during Shutdown() is sane. |
3192975
|
|||
|
|
sipa |
Avoid dereference-of-casted-pointer
|
0aadc11
|
Commits on Jul 08, 2017
Commits on Jul 09, 2017
|
|
practicalswift |
Simplify "!foo || (foo && bar)" as "!foo || bar"
|
1e3a320
|
Commits on Jul 10, 2017
|
|
laanwj |
Merge #10747: [rpc] fix verbose argument for getblock in bitcoin-cli
58e9864 [rpc] fix verbose argument for getblock in bitcoin-cli (John Newbery) Tree-SHA512: 7f176e1ddd9f3f7722ea0d268549629567ecf0c30bebf368824997566df0bfa01d31cf761abc9ca355e48c0bf0cb06d49d15a02b858999fcb7472dc7df2fbbf2 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
9edda0c
|
||
|
|
morcos |
Add RPC options for RBF, confirmation target, and conservative fee es…
…timation. Add support for setting each of these attributes on a per RPC call basis to sendtoaddress, sendmany, fundrawtransaction (already had RBF), and bumpfee (already had RBF and conf target). |
f135923
|
|||
|
|
sipa |
Add PR description to merge commit in github-merge.py
|
475c08c
|
Commits on Jul 11, 2017
|
|
morcos |
Change API to estimaterawfee
Report results for all 3 possible time horizons instead of specifying time horizon as an argument. |
9c85b91
|
|||
|
|
morcos |
Add function to report highest estimate target tracked per horizon
|
1fafd70
|
|||
|
|
morcos |
Improve error reporting for estimaterawfee
|
5e3b7b5
|
|||
|
|
TheBlueMatt |
Expose if CScheduler is being serviced, assert its not in EmptyQueue
|
1f668b6
|
|||
|
|
laanwj |
Merge #10179: Give CValidationInterface Support for calling notificat…
…ions on the CScheduler Thread 1f668b6 Expose if CScheduler is being serviced, assert its not in EmptyQueue (Matt Corallo) 3192975 Flush CValidationInterface callbacks prior to destruction (Matt Corallo) 08096bb Support more than one CScheduler thread for serial clients (Matt Corallo) 2fbf2db Add default arg to CScheduler to schedule() a callback now (Matt Corallo) cda1429 Give CMainSignals a reference to the global scheduler (Matt Corallo) 3a19fed Make ValidationInterface signals-type-agnostic (Matt Corallo) ff6a834 Use TestingSetup to DRY qt rpcnestedtests (Matt Corallo) Tree-SHA512: fab91e34e30b080ed4d0a6d8c1214910e383c45440676e37be61d0bde6ae98d61e8903d22b846e95ba4e73a6ce788798350266feba246d8a2ab357e8523e4ac5 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
21ed30a
|
||
|
|
maaku |
Replace MAX_OPCODE for OP_NOP10.
That OP_NOP10 is the last executable opcode is a bit of a obscure trivia, and the MAX_OPCODE constant already exists. This merely standardizes use of MAX_OPCODE over OP_NOP10 where it makes sense and is more clear. |
c8e29d7
|
|||
|
|
laanwj |
Merge #10676: document script-based return fields for validateaddress
f2f1d0a document script-based return fields for validateaddress (Gregory Sanders) Tree-SHA512: 3310bb82b63ef20e46dd7ebcc9e15828cc7b6767ef19ddd869eeb5e4ee5b31ee307d21a44a9c81dbfe9d031bd48219e3ee1d330fc7b343d63d5365b68639c062 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
379aed0
|
||
|
|
laanwj |
Merge #10589: More economical fee estimates for RBF and RPC options t…
…o control f135923 Add RPC options for RBF, confirmation target, and conservative fee estimation. (Alex Morcos) f0bf33d Change default fee estimation mode. (Alex Morcos) e0738e3 remove default argument from estimateSmartFee (Alex Morcos) d507c30 Introduce a fee estimate mode. (Alex Morcos) cfaef69 remove default argument from GetMinimumFee (Alex Morcos) Tree-SHA512: 49c3a49a6893790a7e8b4e93a48f123dd5307af26c2017800683b76b4df8fc904ba73402917878676242c7440e3e04288d0c1ff3c2c907418724efc03cedab50 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
104f5f2
|
||
|
|
laanwj |
Merge #10190: [tests] mining functional tests (including regression t…
…est for submitblock) 11ba8e9 [tests] rename getblocktemplate_proposals.py to mining.py (John Newbery) b29dd41 [tests] add test for submit block (John Newbery) 9bf0d80 [tests] run successful test in getblocktemplate first (John Newbery) 82dc597 [tests] don't build blocks manually in getblocktemplate test (John Newbery) f82c709 [tests] clarify assertions in getblocktemplate test (John Newbery) 66c570a [tests] Don't build the coinbase manually in getblocktemplate test (John Newbery) 38b38cd [tests] getblocktemplate_proposals.py: add logging (John Newbery) 0a3a5ff [tests] Fix flake8 warnings in getblocktemplate tests (John Newbery) 32cffe6 [tests] Fix import order in getblocktemplate test (John Newbery) Tree-SHA512: a51a57314fa1c4c4b8a7896492ec6e677b6bed12387060def34a62e9dfbee7961f71bb5553fbd70028be61ae32eccf13fd255fa9651f908e9a5e64c28f43f00e |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
e4f226a
|
||
|
|
laanwj |
Merge #10792: Replace MAX_OPCODE for OP_NOP10.
c8e29d7 Replace MAX_OPCODE for OP_NOP10. (Mark Friedenbach) Tree-SHA512: f6a4129db24fe3feb044acaec3b94194cc4fa909de3d0a45a664b32f886a7d8ab997c9cb6ff0870c4aee66d8e038cf0453dbbb518316829d15e84da9882f3e69 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
badd81b
|
||
|
|
laanwj |
Merge #10651: Verify binaries from bitcoincore.org and bitcoin.org
6270d62 Verify binaries from bitcoincore.org and bitcoin.org (Matt Corallo) Tree-SHA512: 39e99ce9be3e7c99d17b296749c0af53c867039bc95fd5b03572593c812817decea75e7296bb66e89ba460518210d84114b7bdc22465df621340319b47bd4303 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
cef4b5c
|
||
|
|
laanwj |
Merge #10543: Change API to estimaterawfee
5e3b7b5 Improve error reporting for estimaterawfee (Alex Morcos) 1fafd70 Add function to report highest estimate target tracked per horizon (Alex Morcos) 9c85b91 Change API to estimaterawfee (Alex Morcos) Tree-SHA512: e624c6e7967e9e48abe49f5818bd674e5710e571cc093029d2f90d39fdfba3c1f30e83bf89f6dce97052b59a7d9636a64642ccfb26effd149c417d0afbed0c0b |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
b27b004
|
||
|
|
laanwj |
Merge #10786: Add PR description to merge commit in github-merge.py
475c08c Add PR description to merge commit in github-merge.py (Pieter Wuille) Pull request description: There is often some context given in PR descriptions that is missing from commits, and it may be worthwhile to retain that information in our history in git. This PR adds that information to the merge commit when created through `github-merge.py`. We should also encourage people to provide as much information as possible in the PR commits themselves, but I believe that is an orthogonal issue. Individual commits don't need to have a description of the overall goal of a PR. Tree-SHA512: cbae46ec24ce911744e11a07e5d51895d3acc79659db306d8124304ef8e422bba99001ee2a741b08c92a5eb39d9c3f6b723622b20d6553ca5cfa0a8de866194c |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
ca4c545
|
||
|
|
morcos |
Only reserve key for scriptChange once in CreateTransaction
This does not affect behavior but allows us to have access to an output to scriptChange even if we currently do not have change in the transaction. |
253cd7e
|
|||
|
|
morcos |
Fix rare edge case of paying too many fees when transaction has no ch…
…ange. Due to the iterative process of selecting new coins in each loop a new fee is calculated that needs to be met each time. In the typical case if the most recent iteration of the loop produced a much smaller transaction and we have now gathered inputs with too many fees, we can just reduce the change. However in the case where there is no change output, it is possible to end up with a transaction which drastically overpays fees. This commit addresses that case, by creating a change output if the overpayment is large enough to support it, this is accomplished by rerunning the transaction creation loop without selecting new coins. Thanks to instagibbs for working on this as well |
0f402b9
|
|||
|
|
laanwj |
Merge #10712: Add change output if necessary to reduce excess fee
0f402b9 Fix rare edge case of paying too many fees when transaction has no change. (Alex Morcos) 253cd7e Only reserve key for scriptChange once in CreateTransaction (Alex Morcos) Pull request description: This is an alternative to #10333 See commit messages. The first commit is mostly code move, it just moves the change creation code out of the loop. @instagibbs Tree-SHA512: f16287ae0f0c6f09cf8b1f0db5880bb567ffa74a50898e3d1ef549ba592c6309ae1a9b251739f63a8bb622d48f03ce2dff9e7a57a6bac4afb4b95b0a86613ea8 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
e8b9523
|
Commits on Jul 12, 2017
|
|
Christewart |
Adding assert to avoid a memory access violation inside of PartialMer…
…kleTree::CalcHash() Adding comment to assert in PartialMerkleTree::CalcHash() Adding comment on CMerkleBlock indicating it calls something that contains an assert Removing EOL whitespace |
8276e70
|
|||
|
|
TheBlueMatt |
Fix signed/unsigned comparison warning introduced in c8e29d7.
|
1016dac
|
|||
|
|
instagibbs |
getbalance example covers at least 6 confirms
|
228987d
|
|||
|
|
jnewbery |
[refactor] move SplitHostPort() into utilstrencodings
This moves SplitHostPort from libbitcoin_common to libbitcoin_util so it is available to bitcoin-cli. |
fe4faba
|
|||
|
|
sipa |
Merge #10714: Avoid printing incorrect block indexing time due to uni…
…nitialized variable 959dd87 Avoid printing incorrect block indexing time due to uninitialized variable (practicalswift) Tree-SHA512: a76e43c3ffa734ed5c7eadf363f345f268aa0e6ce775aba8f856fe3bbc82f240dc7c734c5ca3ac500a12eb41fae00623413e79f484d5acf809b6e400851d771d |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
2a09a38
|
||
|
|
sipa |
Merge #9804: Fixes subscript 0 (&var[0]) where should use (var.data()…
…) instead. 30ac768 Fix subscript[0] potential bugs in key.cpp (Jeremy Rubin) 4b1c0f2 Remove unnecessary branches in utilstrencodings string constructors. (Jeremy Rubin) e19db7b Fix subscript[0] in utilstrencodings.cpp (Jeremy Rubin) bc2e7fd Fix subscript[0] in streams.h (Jeremy Rubin) 4cac0d1 Fix subscript[0] in validation.cpp (Jeremy Rubin) ac658e5 Fix subscript[0] in torcontrol (Jeremy Rubin) b6856eb Fix subscript[0] in netaddress.cpp (Jeremy Rubin) 361d952 Fix subscript[0] in base58.cpp (Jeremy Rubin) 6896dbf Cleanup (safe, it was checked) subscript[0] in MurmurHash3 (and cleanup MurmurHash3 to be more clear). (Jeremy Rubin) 96f2119 Fix subscript[0] in compressor.cpp (Jeremy Rubin) 500710b Fix 2 subscript[0] bugs in pubkey.cpp, and eliminate one extra size check (Jeremy Rubin) e0451e3 Fix subscript[0] bug in net.cpp if GetGroup returns a 0-sized vector (Jeremy Rubin) Tree-SHA512: 5b9103652cf8c615bd8f4f32b3573d291d6b67c39e0308ce00100bc6625f346e8e016b4c999f4f34f5c37ae059490a83c3b513deb21f838af785227d06e02362 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
479afa0
|
||
|
|
greenaddress |
missing white space in function arg
|
This commit was signed with a verified signature.
GPG key ID: 17AB8BC320B151D8
Learn about signing commits
|
69a4339
|
Commits on Jul 13, 2017
|
|
sipa |
Merge #10780: Simplify "!foo || (foo && bar)" as "!foo || bar"
1e3a320 Simplify "!foo || (foo && bar)" as "!foo || bar" (practicalswift) Tree-SHA512: d5ce6d7a9f3741e7abe8542b840268aa683e276aac7587041d32385a4c1273e20c236bec7590e27540dde72defb3f879d4695822bb7bfdb092cc20d9aefa64c1 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
e4fcbf7
|
||
|
|
jonasschnelli |
Merge #10810: missing white space in function arg
69a4339 missing white space in function arg (Lawrence Nahum) Pull request description: Tree-SHA512: 94d832eca0b5429cf48c7c1d4489942b53182c5b7ad9f24264867e7631301173c23a48f7b2e8fd22ff1b3137bafacb3f9d4320f4df235668c9096aaefff7afe8 |
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
7666250
|
||
|
|
jonasschnelli |
[Qt] replace fee slider with a Dropdown, extend conf. targets
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
bc1be90
|
||
|
|
jonasschnelli |
[Qt] migrate old fee slider value to new dropbown
Always round up (conservative) |
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
2aef1f1
|
||
|
|
theuni |
build: verify that the assembler can handle crc32 functions
Also, enable crc32 even if -msse4.2 wasn't added by us, as long as it works. This allows custom flags (such as -march=native) to work as expected. |
d34d77a
|
|||
|
|
morcos |
Properly forbid -salvagewallet and -zapwallettxes for multi wallet.
|
dd97a52
|
|||
|
|
jnewbery |
[utils] allow square brackets for ipv6 addresses in bitcoin-cli
-rpcconnect can now accept ipv6 addresses with and without square brackets. |
5c64324
|
|||
|
|
promag |
Fix uninitialized atomic variables
|
4652791
|
|||
|
|
sipa |
Use cpuid intrinsics instead of asm code
|
a9e82f6
|
Commits on Jul 14, 2017
|
|
laanwj |
Merge #10806: build: verify that the assembler can handle crc32 funct…
…ions d34d77a build: verify that the assembler can handle crc32 functions (Cory Fields) Pull request description: Also, enable crc32 even if -msse4.2 wasn't added by us, as long as it works. This allows custom flags (such as -march=native) to work as expected. Addresses #10670. Tree-SHA512: e1a41a87b078d270bc645814315b229ad9c16556a4d14fb66b27a65b28d0caf9bf324f8c1e221854992aa17f53466eece06faebbf74d59b3d4ff2e6db6c614a4 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
db825d2
|
||
|
|
promag |
Avoid unnecessary work in SetNetworkActive
|
a2420ae
|
|||
|
|
sipa |
Merge #10557: Make check to distinguish between orphan txs and old tx…
…s more efficient. 18bacec Make check to distinguish between orphan txs and old txs more efficient. (Alex Morcos) Tree-SHA512: b6b4bad89aa561975dce7b68b2fdad5623af5ebcb9c38fd6a72b5f6d0544ed441df4865591ac018f7ae0df9b5c60820cb4d9e55664f5667c9268458df70fd554 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
66270a4
|
||
|
|
sipa |
Clarify entropy source
|
674848f
|
|||
|
|
gmaxwell |
Remove confusing MAX_BLOCK_BASE_SIZE.
Some people keep thinking that MAX_BLOCK_BASE_SIZE is a separate size limit from the weight limit when it fact it is superfluous, and used in early tests before the witness data has been validated or just to compute worst case sizes. The size checks that use it would not behave any differently consensus wise if they were eliminated completely. Its correct value is not independently settable but is a function of the weight limit and weight formula. This patch just eliminates it and uses the scale factor as required to compute the worse case constants. It also moves the weight factor out of primitives into consensus, which is a more logical place for it. |
3babbcb
|
|||
|
|
sipa |
Merge #10819: Fix uninitialized atomic variables
4652791 Fix uninitialized atomic variables (João Barbosa) Tree-SHA512: 5dd8924bc8743a094abdbc2464b835a0e7fd4948c102ea7c2251c6330bea5615c4459ba322a656fd6ac5f8d695b69d3709d225ddccef226cf8afc7de5e3d3019 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
b7d6623
|
Commits on Jul 15, 2017
|
|
sipa |
Merge #10618: Remove confusing MAX_BLOCK_BASE_SIZE.
3babbcb Remove confusing MAX_BLOCK_BASE_SIZE. (Gregory Maxwell) Tree-SHA512: 361293fc4e1e379cd5a0908ed0866a00e1c7a771bdf02fded158fca21b492a29c7a67fea0d13dc40b2a04204c89823bf1836fe5b63a17c9747751b9c845a3527 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
f90603a
|
||
|
|
TheBlueMatt |
Explicitly initialize prevector::_union to avoid new warning
Warning from gcc 7.1 is ./prevector.h:450:25: warning: '*((void*)(&<anonymous>)+8).prevector<28, unsigned char>::_union.prevector<28, unsigned char>::direct_or_indirect::<anonymous>.prevector<28, unsigned char>::direct_or_indirect::<unnamed struct>::indirect' may be used uninitialized in this function [-Wmaybe-uninitialized] |
c73b8be
|
|||
|
|
sipa |
Merge #10808: Avoid some new gcc warnings in 15
c73b8be Explicitly initialize prevector::_union to avoid new warning (Matt Corallo) 1016dac Fix signed/unsigned comparison warning introduced in c8e29d7. (Matt Corallo) Tree-SHA512: d1574b0fdc9bfddc3517c382d34418b1d8ed80c81d2f6fd19378c064af8d7704fb84ef8b740ff97f7ec7609bd6de76348921fcc227e1ce97127947a0d22c7887 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
ec8a50b
|
||
|
|
TheBlueMatt |
Track keypool entries as internal vs external in memory
This resolves a super minor performance regressions in several keypool-handling functions |
4a3fc35
|
|||
|
|
TheBlueMatt |
Meet code style on lines changed in the previous commit
|
28301b9
|
|||
|
|
TheBlueMatt |
Clarify *(--.end()) iterator semantics in CWallet::TopUpKeyPool
|
d40a72c
|
|||
|
|
sipa |
Merge #10816: Properly forbid -salvagewallet and -zapwallettxes for m…
…ulti wallet. dd97a52 Properly forbid -salvagewallet and -zapwallettxes for multi wallet. (Alex Morcos) Tree-SHA512: dcde8f854ae957b4d3af4bcf1b811e0b6e9b93602764f86499e46a28d304cd4ee93ba058c03f6ca74ccb60e1310c83e53b698c64d93e5503115377655b80d44d |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
1c011ff
|
||
|
|
sipa |
Merge #10769: [Qt] replace fee slider with a Dropdown, extend conf. t…
…argets 2aef1f1 [Qt] migrate old fee slider value to new dropbown Always round up (conservative) (Jonas Schnelli) bc1be90 [Qt] replace fee slider with a Dropdown, extend conf. targets (Jonas Schnelli) Tree-SHA512: 53796cf0b434dd3db5d4680dbeb6231a7df8f15d88187178fd4db8917cd7fc60091ce2c1589fd93668fc94bb13f989aba5b7ef3792fa95ee1f9f21a15709e2d3 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
8fdd23a
|
||
|
|
morcos |
Make CoinControl a required argument to CreateTransaction
|
ecd81df
|
|||
|
|
morcos |
Refactor to use CoinControl in GetMinimumFee and FeeBumper
Improve parameter precedence in coin_control |
03ee701
|
|||
|
|
morcos |
Use CoinControl to pass custom fee setting from QT.
This fixes buggy behavior where we were temporarily setting and unsetting the global payTxFee when trying to send a transaction with a custom fee from the GUI. The previous behavior was inconsistent depending on the order of using the RPC call settxfee and clicking various radio buttons in the sendcoinsdialog. The new behavior is that transactions sent with the GUI will always use either the smartfee slider value or the custom fee set on the GUI and they will not affect the global defaults which are only for RPC and initial GUI values. |
1983ca6
|
|||
|
|
morcos |
Make QT fee displays use GetMinimumFee instead of estimateSmartFee
Remove helper function (CalculateEstimateType) for determining whether estimates should be conservative or not, now that this is only called once from GetMinimumFee and incorporate the logic directly there. |
2fffaa9
|
|||
|
|
morcos |
Remove checking of mempool min fee from estimateSmartFee.
This check has been moved to the wallet logic GetMinimumFee. The rpc call to estimatesmartfee will now no longer return a result maxed with the mempool min fee, but automated fee calculations from the wallet will produce the same result as before and coincontrol and sendcoins dialogs in the GUI will correctly display the right prospective fee. changes to policy/fees.cpp include a big whitespace indentation change. |
fd29d3d
|
|||
|
|
morcos |
Properly bound check conf_target in wallet RPC calls
|
11590d3
|
|||
|
|
practicalswift |
Avoid static analyzer warnings regarding uninitialized arguments
Avoid static analyzer warnings regarding "Function call argument
is a pointer to uninitialized value" in cases where we are
intentionally using such arguments.
This is achieved by using ...
`f(b.begin(), b.end())` (`std::array<char, N>`)
... instead of ...
`f(b, b + N)` (`char b[N]`)
Rationale:
* Reduce false positives by guiding static analyzers regarding our
intentions.
Before this commit:
```
$ clang-tidy-3.5 -checks=* src/bench/base58.cpp
bench/base58.cpp:23:9: warning: Function call argument is a pointer to uninitialized value [clang-analyzer-core.CallAndMessage]
EncodeBase58(b, b + 32);
^
$ clang-tidy-3.5 -checks=* src/bench/verify_script.cpp
bench/verify_script.cpp:59:5: warning: Function call argument is a pointer to uninitialized value [clang-analyzer-core.CallAndMessage]
key.Set(vchKey, vchKey + 32, false);
^
$
```
After this commit:
```
$ clang-tidy-3.5 -checks=* src/bench/base58.cpp
$ clang-tidy-3.5 -checks=* src/bench/verify_script.cpp
$
``` |
6835cb0
|
|||
|
|
practicalswift |
Fix typos
|
0189d8e
|
|||
|
|
sipa |
Merge #10833: Fix typos
0189d8e Fix typos (practicalswift) Tree-SHA512: bac96ab13964e7579c93d63fc7550eb091c316767cc33f2a52c18cd786537650668799603414d418680a5e04516abf1e304b10d5f4ad48a5dcba24b3f09a0387 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
5059550
|
||
|
|
practicalswift |
Remove declaration of unused function: void UpdatedTransaction(const …
…uint256 &) |
e061d8d
|
|||
|
|
sipa |
Merge #10807: getbalance example covers at least 6 confirms
228987d getbalance example covers at least 6 confirms (Gregory Sanders) Tree-SHA512: 328d60b007ee75d809f4d28a7d9e5537d3c1446bd30c4c2ae57c690b8e83f6287cbcd3d8c955e8ba07ab62e27f9d27497c55219ff14fd5af7759dec465673fa2 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
afd2fca
|
||
|
|
jnewbery |
[tests] fix flake8 warnings in zapwallettxes.py
|
ff7365e
|
|||
|
|
jnewbery |
[wallet] fix zapwallettxes interaction with persistent mempool
zapwallettxes previously did not interact well with persistent mempool. zapwallettxes would cause wallet transactions to be zapped, but they would then be reloaded from the mempool on startup. This commit softsets persistmempool to false if zapwallettxes is enabled so transactions are actually zapped. |
e7a2181
|
|||
|
|
sipa |
Merge #10760: Avoid dereference-of-casted-pointer
0aadc11 Avoid dereference-of-casted-pointer (Pieter Wuille) Pull request description: And prefer a static_cast to the intended reference type. Tree-SHA512: e83b20023a4dca6029b46f7040a8a6fd54e1b42112ec0c87c3c3b567ed641de97a9e2335b57a2efb075491f641e5b977bc226a474276bea0c3c3c71d8d6ac54d |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
10b22e3
|
||
|
|
jnewbery |
[logs] fix zapwallettxes startup logs
|
4c3b538
|
|||
|
|
corebob |
Fix resource leak
|
a8ae0b2
|
|||
|
|
sipa |
Merge #10812: [utils] Allow bitcoin-cli's -rpcconnect option to be us…
…ed with square brackets 5c64324 [utils] allow square brackets for ipv6 addresses in bitcoin-cli (John Newbery) fe4faba [refactor] move SplitHostPort() into utilstrencodings (John Newbery) Pull request description: bitcoin-cli's `-rpcconnect` can accept ipv6 addresses (as long as the libevent version is new enough), but fails to parse ipv6 with square brackets. This PR makes `bitcoin-cli` parse ipv6 in square brackets correctly. `bitcoin-cli -rpcconnect=[::1] <command>` should now be equivalent to `bitcoin-cli -rpcconnect=::1 <command>` This is useful so the `bitcoin-cli` option can now be in the same format as the `bitcoind` option. Doesn't include tests. I have a branch that fully tests `bitcoin-cli`, but that's queued behind several intermediate PRs. - first commit moves `SplitHostPort()` from libbitcoin_common into libbitcoin_util - second commit adds proper ipv6 parsing to bitcoin-cli Tree-SHA512: 249d409f10360c989474283341f458cc97364a56a7d004ae6d5f13d8bffe3a51b5dc2484d42218848e2d42cd9c0b13a1b92e94ea19b209f7e91c875c208d8409 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
c5904e8
|
||
|
|
René Nyffenegger |
Use AC_ARG_VAR to set ARFLAGS.
The user can set ARFLAGS in the ./configure step with ./configure ARFLAGS=... If he chooses not to do so, ARFLAGS will be set to cr. |
912da1d
|
|||
|
|
sipa |
Merge #10235: Track keypool entries as internal vs external in memory
d40a72c Clarify *(--.end()) iterator semantics in CWallet::TopUpKeyPool (Matt Corallo) 28301b9 Meet code style on lines changed in the previous commit (Matt Corallo) 4a3fc35 Track keypool entries as internal vs external in memory (Matt Corallo) Pull request description: This is an alternative version of #10184. As @jonasschnelli points out there, the performance regressions are pretty minimal, but given that this is a pretty simple, mechanical change, its probably worth doing. Tree-SHA512: e83f9ebf2998f8164d1b2eebe5e6dcdeadea8c30b7612861f830758c08bf4093cd6a67b3bcfa9cfcb139e5e0b106fc8898a975fc69f334981aefc756568ab613 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
5cfdda2
|
Commits on Jul 16, 2017
|
|
gmaxwell |
Pushdown walletdb object through GenerateNewKey/DeriveNewChildKey.
This is needed but not sufficient for batching the wallet flushing when topping up the keypool. |
3a53f19
|
|||
|
|
practicalswift |
Remove duplicate include
|
c53369c
|
|||
|
|
René Nyffenegger |
Use range based for loop
Instead of iterating over 0 .. 1 and then deciding on an actual desired value, use a range based for loop for the desired value. |
d0413c6
|
|||
|
|
sipa |
Merge #10820: Use cpuid intrinsics instead of asm code
674848f Clarify entropy source (Pieter Wuille) a9e82f6 Use cpuid intrinsics instead of asm code (Pieter Wuille) Pull request description: Less platform-specific code is better. Tree-SHA512: 14f1b9accd9882859acdf516d2ada7ccb0ad92a3b3edf95b9cb8a8e514d4b1748d4555bcfb560779792c4f664f920d681ae42e9cebd0e6410f13f94c3a8729a0 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
ef37f20
|
||
|
|
sipa |
Merge #10766: Building Environment: Set ARFLAGS to cr
912da1d Use AC_ARG_VAR to set ARFLAGS. (René Nyffenegger) Pull request description: Override the default of ARFLAGS of `cru` to `cr`. When building, ar produces a warning for each archive, for example ``` AR libbitcoin_server.a /usr/bin/ar: `u' modifier ignored since `D' is the default (see `U') ``` Since `u` is the default anyway, it cannot hurt to remove it. Tree-SHA512: 7466764f847b70f0f67db25dac87a7794477abf1997cb946682f394fe80ae86ac3ed52cbadb35f0c18a87467755bde5a5158430444cd26fb60fa363cc7bd486d |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
b4d03be
|
||
|
|
sipa |
Merge #10840: Remove duplicate include
|
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
99c7db8
|
||
|
|
sipa |
Merge #10844: Use range based for loop
d0413c6 Use range based for loop (René Nyffenegger) Pull request description: Instead of iterating over 0 .. 1 and then deciding on an actual desired value, use a range based for loop for the desired value. Tree-SHA512: 0a7a4a80516c9f16cf97fa7d257088b8386360e19b93c4deac3d745b6270ea452c513821686d7d14a159a235763e034f9b14eef222ca15f7eb71c37bd1c2c380 |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
ad6fce6
|
||
|
|
sipa |
Merge #10735: Avoid static analyzer warnings regarding uninitialized …
…arguments 6835cb0 Avoid static analyzer warnings regarding uninitialized arguments (practicalswift) Pull request description: Avoid static analyzer warnings regarding _"Function call argument is a pointer to uninitialized value"_ in cases where we are intentionally using such arguments. This is achieved by using `f(b.begin(), b.end())` (`std::array<char, N>`) instead of `f(b, b + N)` (`char b[N]`). Rationale: * Reduce false positives by guiding static analyzers regarding our intentions. Before this commit: ```shell $ clang-tidy-3.5 -checks=* src/bench/base58.cpp bench/base58.cpp:23:9: warning: Function call argument is a pointer to uninitialized value [clang-analyzer-core.CallAndMessage] EncodeBase58(b, b + 32); ^ $ clang-tidy-3.5 -checks=* src/bench/verify_script.cpp bench/verify_script.cpp:59:5: warning: Function call argument is a pointer to uninitialized value [clang-analyzer-core.CallAndMessage] key.Set(vchKey, vchKey + 32, false); ^ $ ``` After this commit: ```shell $ clang-tidy-3.5 -checks=* src/bench/base58.cpp $ clang-tidy-3.5 -checks=* src/bench/verify_script.cpp $ ``` Tree-SHA512: 5814a320ca8b959d0954bb64393424bcad73f942d2e988de1cd6788f39153b93900325532f2e340de02d740a3953385d212ae08e7ec72bb4c394a40475f251df |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
5654946
|
||
|
|
practicalswift |
Fix incorrect Doxygen tag (@ince → @since). Make Doxygen parameter na…
…mes match actual parameter names. |
2c2e90d
|
|||
|
|
MarcoFalke |
Merge #10739: test: Move variable `state` down where it is used
5618b7d Do not shadow upper local variable `state`. (Pavel Janík) Pull request description: Tests added in #10192 emit few shadowing warnings: ``` test/txvalidationcache_tests.cpp:268:26: warning: declaration shadows a local variable [-Wshadow] test/txvalidationcache_tests.cpp:296:26: warning: declaration shadows a local variable [-Wshadow] test/txvalidationcache_tests.cpp:357:26: warning: declaration shadows a local variable [-Wshadow] ``` Remove shadowing declarations and reuse the upper local declaration as in other already present test cases. Tree-SHA512: 1e3c52cf963f8f33e729900c8ecdcd5cc6fe28caa441ba53c4636df9cc3d1a351ca231966d36384589f1340ae8ddd447424c2ee3e8527d334d0412f0d1a10c8f |
This commit was signed with a verified signature.
GPG key ID: D2EA4850E7528B25
Learn about signing commits
|
1fc783f
|
||
|
|
MarcoFalke |
Merge #10842: Fix incorrect Doxygen tag (@ince → @since). Doxygen par…
…ameter name matching. 2c2e90d Fix incorrect Doxygen tag (@ince → @since). Make Doxygen parameter names match actual parameter names. (practicalswift) Pull request description: Doxygen fixes: * Fix incorrect Doxygen tag (`@ince` → `@since`). * Make Doxygen parameter names match actual parameter names. Tree-SHA512: cb1d37a7d15a90d24affaf5c2bcf462663f0b0c13868bb25401e5d8cb303fcb41e53fdeee8012b2271a509112ef98fc0c070b4194f42cd55361f7e6bc7996342 |
This commit was signed with a verified signature.
GPG key ID: D2EA4850E7528B25
Learn about signing commits
|
3895e25
|
Commits on Jul 17, 2017
|
|
MarcoFalke |
Merge #10330: [wallet] fix zapwallettxes interaction with persistent …
…mempool 4c3b538 [logs] fix zapwallettxes startup logs (John Newbery) e7a2181 [wallet] fix zapwallettxes interaction with persistent mempool (John Newbery) ff7365e [tests] fix flake8 warnings in zapwallettxes.py (John Newbery) Pull request description: zapwallettxes previously did not interact well with persistent mempool. zapwallettxes would cause wallet transactions to be zapped, but they would then be reloaded from the mempool on startup. This commit softsets persistmempool to false if zapwallettxes is enabled so transactions are actually zapped. This PR also Fixes the zapwallettxes.py functional test, which did not properly test this feature. The test line: ```py assert_raises(JSONRPCException, self.nodes[0].gettransaction, [txid3]) #there must be a expection because the unconfirmed wallettx0 must be gone by now ``` is not actually testing the presence of the transaction since the RPC is being called incorrectly (with an array instead of a string). The `assert_raises()` passes since an assert is raised, but it's not the one the test writer had in mind! Fixes #9710 . Tree-SHA512: e3236efc7a2fd2b3bf1d9e2e8a7726d470c57f5d95cf41b7bde264edc8817bd36a6f3feff52f8de8db0ef64b7247c88b24e7ff7cefaa706cba86fe4e2135a508 |
This commit was signed with a verified signature.
GPG key ID: D2EA4850E7528B25
Learn about signing commits
|
bf0a08b
|
||
|
|
laanwj |
Merge #10706: Improve wallet fee logic and fix GUI bugs
11590d3 Properly bound check conf_target in wallet RPC calls (Alex Morcos) fd29d3d Remove checking of mempool min fee from estimateSmartFee. (Alex Morcos) 2fffaa9 Make QT fee displays use GetMinimumFee instead of estimateSmartFee (Alex Morcos) 1983ca6 Use CoinControl to pass custom fee setting from QT. (Alex Morcos) 03ee701 Refactor to use CoinControl in GetMinimumFee and FeeBumper (Alex Morcos) ecd81df Make CoinControl a required argument to CreateTransaction (Alex Morcos) Pull request description: This builds on #10589 (first 5 commits from that PR, last 5 commits are new) The first couple commits refactor to use the CCoinControl class to pass fee calculation parameters around. This allows for fixing the buggy interaction in QT between the global payTxFee which can be modified by the RPC call settxfee or temporarily modified by the QT custom fee settings. Before these changes the GUI could sometimes send a transaction with a recently set payTxFee and not respect the settings displayed in the GUI. After these changes, using the GUI does not involve the global transaction confirm target or payTxFee. The prospective fee displays in the smart fee slider and the coin control dialog are changed to use the fee calculation from GetMinimumFee, this simplifies the code and makes them slightly more correct in edge cases. Maxing the fee calculation with the mempool min fee is move from estimateSmartFee to GetMinimumFee. This fixes a long standing bug, and should be tagged for 0.15 as it is holding up finalizing the estimatesmartfee RPC API before release. Tree-SHA512: 4d36a1bd5934aa62f3806d380fcafbef73e9fe5bdf190fc5259a3e3a13349e5ce796e50e7068c46dc630ccf56d061bce5804f0bfe2e082bb01ca725b63efd4c1 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
6859ad2
|
||
|
|
laanwj |
Merge #10803: Explicitly search for bdb5.3.
1cc251f Explicitly search for bdb5.3. (Patrick Strateman) Pull request description: Some systems do not symlink the major version to the minor version. Tree-SHA512: 09c030f08442cbe54928a6d20bec31aae2662facf60b859ff9febd84f0711f68d7f920b84fb015764585b305d48faf74c5fe9c3c6a713a0809b78ec066187dd9 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
91edda8
|
||
|
|
jonasschnelli |
Register wallet endpoint
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
dd2185c
|
||
|
|
morcos |
Remove factor of 3 from definition of dust.
This redefines dust to be the value of an output such that it would cost that value in fees to (create and) spend the output at the dust relay rate. The previous definition was that it would cost 1/3 of the value. The default dust relay rate is correspondingly increased to 3000 sat/kB so the actual default dust output value of 546 satoshis for a non-segwit output remains unchanged. This commit is a refactor only unless a dustrelayfee is passed on the commandline in which case that number now needs to be increased by a factor of 3 to get the same behavior. -dustrelayfee is a hidden command line option. Note: It's not exactly a refactor due to edge case changes in rounding as evidenced by the required change to the unit test. |
b138585
|
|||
|
|
laanwj |
Merge #10837: Fix resource leak on error in GetDevURandom
a8ae0b2 Fix resource leak (Dag Robole) Pull request description: Fixes a potential file handle leak when size of entropy is invalid Tree-SHA512: 692d24daaf370bba1f842925b037275126f9494f54769650bcf5829c794a0fb8561a86f42347bdf088a484e4f107bce7fa14cd7bdbfb4ecfbeb51968953da3ae |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
8bc6d1f
|
||
|
|
instagibbs |
fixup some rpc param counting for rpc help
|
a70d025
|
|||
|
|
instagibbs |
importmulti options are optional
|
999ef20
|
|||
|
|
instagibbs |
check for null values in rpc args and handle appropriately
|
4dc1915
|
|||
|
|
laanwj |
init: Factor out AppInitLockDataDirectory
Alternative to #10818, alternative solution to #10815. After this change: All the AppInit steps before and inclusive AppInitLockDataDirectory must not have Shutdown() called in case of failure. Only when AppInitMain fails, Shutdown should be called. Changes the GUI and bitcoind code to consistently do this. |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
dba485d
|
||
|
|
MarcoFalke |
Merge #10834: Remove declaration of unused method: void UpdatedTransa…
…ction(const uint256 &) e061d8d Remove declaration of unused function: void UpdatedTransaction(const uint256 &) (practicalswift) Pull request description: Remove declaration of unused method: `void UpdatedTransaction(const uint256 &)` Removed in 9fececb. Tree-SHA512: a328e00ccecc2a31cda7e204ab8c29ea34811afc2090f3dfd88d6d58543761dba8a289585d30b98e05236c67b1a04844e556a3b05d6e8e706233bc502f31af1d |
This commit was signed with a verified signature.
GPG key ID: D2EA4850E7528B25
Learn about signing commits
|
2b0179d
|
||
|
|
gmaxwell |
Pushdown walletdb though CWallet::AddKeyPubKey to avoid flushes.
This prevents the wallet from being flushed between each and every key during top-up. This results in a >10x speed-up for the top-up. |
30d8f3a
|
|||
|
|
gmaxwell |
Increase wallet default keypool size to 1000.
|
41dc163
|
|||
|
|
gmaxwell |
Print one log message per keypool top-up, not one per key.
|
b0e8e2d
|
|||
|
|
morcos |
Improve api to estimatesmartfee
Change parameter for conservative estimates to be an estimate_mode string. Change to never return a -1 for failure but to instead omit the feerate and return an error string. Throw JSONRPC error on invalid nblocks parameter. |
439c4e8
|
|||
|
|
morcos |
Convert named argument from nblocks to conf_target
in estimatesmartfee and estimaterawfee. Also reuse existing bounds checking. |
06bcdb8
|
|||
|
|
laanwj |
Merge #10832: init: Factor out AppInitLockDataDirectory and fix start…
…up core dump issue dba485d init: Factor out AppInitLockDataDirectory (Wladimir J. van der Laan) Pull request description: Alternative to #10818, alternative solution to #10815. After this change: All the AppInit steps before and inclusive AppInitLockDataDirectory must not have Shutdown() called in case of failure. Only when AppInitMain fails, Shutdown should be called. Changes the GUI and bitcoind code to consistently do this. Tree-SHA512: 393e1a0ae05eb8e791025069e3ac4f6f3cdeb459ec63feda85d01cf6696ab3fed7632b6a0ac3641b8c7015af51d46756b5bba77f5e5f0c446f0c2dea58bbc92e |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
89bb036
|
||
|
|
laanwj |
Merge #10831: Batch flushing operations to the walletdb during top up…
… and increase keypool size. b0e8e2d Print one log message per keypool top-up, not one per key. (Gregory Maxwell) 41dc163 Increase wallet default keypool size to 1000. (Gregory Maxwell) 30d8f3a Pushdown walletdb though CWallet::AddKeyPubKey to avoid flushes. (Gregory Maxwell) 3a53f19 Pushdown walletdb object through GenerateNewKey/DeriveNewChildKey. (Gregory Maxwell) Pull request description: This carries the walletdb object from top-up through GenerateNewKey/DeriveNewChildKey/CWallet::AddKeyPubKey, which allows us to avoid the flush on destruction until the top up finishes instead of flushing the wallet for every key. This speeds up adding keys by well over 10x on my laptop (actually something like 17x), I wouldn't be surprised if it were an even bigger speedup on spinning rust. Then it increases the keypool size to 1000. I would have preferred to use 10,000 but in the case where the user creates a new wallet and then turns on encryption it seems kind of dumb to have >400KB of marked-used born unencrypted keys just laying around. (Thanks to Matt for cluesticking me on how to bypass the crypter spaghetti) Tree-SHA512: 868303de38fce4c3f67d7fe133f765f15435c94b39d252d7450b5fee5c607a3cc2f5e531861a69d8c8877bf130e0ff4c539f97500a6bc0ff6d67e4a42c9385c7 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
0b01935
|
||
|
|
jonasschnelli |
Add wallet endpoint support to bitcoin-cli (-usewallet)
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
31e0720
|
||
|
|
jonasschnelli |
Fix test_bitcoin circular dependency issue
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
32c9710
|
||
|
|
jonasschnelli |
Select wallet based on the given endpoint
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
76603b1
|
||
|
|
jnewbery + jonasschnelli |
[tests] [wallet] Add wallet endpoint support to authproxy
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
979d0b8
|
||
|
|
jonasschnelli |
[QA] add basic multiwallet test
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
6b9faf7
|
||
|
|
TheBlueMatt |
No longer ever reuse keypool indexes
This fixes an issue where you could reserve a keypool entry, then top up the keypool, writing out a new key at the given index, then return they key from the pool. This isnt likely to cause issues, but given there is no reason to ever re-use keypool indexes (they're 64 bits...), best to avoid it alltogether. |
1fc8c3d
|
|||
|
|
gmaxwell |
Avoid using sizes on non-fixed-width types to derive protocol constants.
Thanks to awemany for pointing this out. |
095b917
|
|||
|
|
theuni |
random: only use getentropy on openbsd
|
077d01f
|
|||
|
|
morcos |
Add a discard_rate
Any change output which would be dust at the discard_rate you are willing to discard completely and add to fee (as well as continuing to pay the fee that would have been needed for creating the change). |
f4d00e6
|
|||
|
|
TheBlueMatt |
Prevent user from specifying conflicting parameters to fundrawtx
estimate_mode/conf_target both are overridden by feeRate, so should not be specified together with feeRate. |
99c7fc3
|
|||
|
|
sipa |
Merge #9980: Fix mem access violation merkleblock
8276e70 Adding assert to avoid a memory access violation inside of PartialMerkleTree::CalcHash() (Chris Stewart) Pull request description: Fixing a possible memory access violation in CPartialMerkleTree::CalcHash(). This can happen if we some how a merkle tree with zero txids. I don't think this can happen in practice as we only send merkle block messages on the p2p network as of now -- we cannot receive them. This was found with #8469, specifically using this [generator](https://github.com/Christewart/bitcoin/blob/rapidcheck/src/test/gen/merkleblock_gen.h#L52-L77) which will cause a memory access violation on [this test case](https://github.com/Christewart/bitcoin/blob/rapidcheck/src/test/merkleblock_properties.cpp#L48). Tree-SHA512: b95904ec45ea3f082c7722161d93ee06b24c706fbffa909a6e995ed14788aed2830f91b626da6f0347660c45874a0735dab61c9440b59c949c690af4165c83fb |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
fee0d80
|
||
|
|
sipa |
Merge #10707: Better API for estimatesmartfee RPC
06bcdb8 Convert named argument from nblocks to conf_target (Alex Morcos) 439c4e8 Improve api to estimatesmartfee (Alex Morcos) Pull request description: Through 0.14 branch, the estimatesmartfee API was tagged "WARNING: This interface is unstable and may disappear or change!" and this warning is removed for 0.15, so any wanted API updates should happen now. The changes here are to make the additional parameter for conservative estimates a more general estimate_mode string , to omit the feerate and include an error string instead of returning -1 on error, and to do better parameter checking initially. ~It is only the last 2 commits, but it's built on #10706 and #10543~. See #10707 (comment) for renaming of nblocks argument to conf_target. Will need to be included before string freeze. PR description edited for clarity Tree-SHA512: 6d8ebee8bb410e2950ffd59663eebfed8d1611d995dc935bb91e430d9da7e2f306796f45631458376027d26341c660f09e825e61748103d2f2736ec6dc3df3ae |
This commit was signed with a verified signature.
GPG key ID: A636E97631F767E0
Learn about signing commits
|
75b5643
|
Commits on Jul 18, 2017
|
|
laanwj |
Merge #10855: random: only use getentropy on openbsd
077d01f random: only use getentropy on openbsd (Cory Fields) Pull request description: Follow-up from #10335. I can confirm that this fixes my issue when building against a new glibc + old linux headers for back-compat. Tree-SHA512: a0fcf26995fbd3636f970e729a172c6e1d7c0de371e703f0653cd9776600f438ec43acd2b1eb92f2678a011968da8fbbeef8a54599434851f4c6ffe78291c172 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
81560b0
|
||
|
|
laanwj |
Merge #10795: No longer ever reuse keypool indexes
1fc8c3d No longer ever reuse keypool indexes (Matt Corallo) Pull request description: This fixes an issue where you could reserve a keypool entry, then top up the keypool, writing out a new key at the given index, then return they key from the pool. This isnt likely to cause issues, but given there is no reason to ever re-use keypool indexes (they're 64 bits...), best to avoid it alltogether. Builds on #10235, should probably get a 15 tag. Tree-SHA512: c13a18a90f1076fb74307f2d64e9d80149811524c6bda259698ff2c65adaf8c6c3f2a3a07a5f4bf03251bc942ba8f5fd33a4427aa4256748c40b062991682caf |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
7b6e8bc
|
||
|
|
practicalswift |
Remove unused variable int64_t nEnd
Last use of nEnd removed in commit 1fc8c3d. |
35aff43
|
|||
|
|
practicalswift |
Fix typo: "conditon" → "condition"
Typo introduced in commit 439c4e8. |
5a6671c
|
|||
|
|
practicalswift |
Avoid redundant redeclaration of GetWarnings(const string&)
std::string GetWarnings(const std::string& strFor) is declared in warnings.h and defined in warnings.cpp. |
e0d4592
|
|||
|
|
laanwj |
Merge #10849: Multiwallet: simplest endpoint support
6b9faf7 [QA] add basic multiwallet test (Jonas Schnelli) 979d0b8 [tests] [wallet] Add wallet endpoint support to authproxy (John Newbery) 76603b1 Select wallet based on the given endpoint (Jonas Schnelli) 32c9710 Fix test_bitcoin circular dependency issue (Jonas Schnelli) 31e0720 Add wallet endpoint support to bitcoin-cli (-usewallet) (Jonas Schnelli) dd2185c Register wallet endpoint (Jonas Schnelli) Pull request description: Alternative for #10829 and #10650. It adds the most simplest form of wallet based endpoint support (`/wallet/<filename>`). No v1 and no node/wallet endpoint split. Tree-SHA512: 23de1fd2f9b48d94682928b582fb6909e16ca507c2ee19e1f989d5a4f3aa706194c4b1fe8854d1d79ba531b7092434239776cae1ae715ff536e829424f59f9be |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
bde4f93
|
||
|
|
TheBlueMatt |
Do not allow users to get keys from keypool without reserving them
fundrawtransaction allows users to add a change output and then not have it removed from keypool. While it would be nice to have users follow the normal CreateTransaction/CommitTransaction process we use internally, there isnt much benefit in exposing this option, especially with HD wallets, while there is ample room for users to misunderstand or misuse this option. This could be particularly nasty in some use-cases (especially pre-HD-split) - eg a user might fundrawtransaction, then call getnewaddress, hand out the address for someone to pay them, then sendrawtransaction. This may result in the user thinking they have received payment, even though it was really just their own change! This could obviously result in needless key-reuse. |
cf82a9e
|
|||
|
|
laanwj |
Merge #10784: Do not allow users to get keys from keypool without res…
…erving them cf82a9e Do not allow users to get keys from keypool without reserving them (Matt Corallo) Pull request description: fundrawtransaction allows users to add a change output and then not have it removed from keypool. While it would be nice to have users follow the normal CreateTransaction/CommitTransaction process we use internally, there isnt much benefit in exposing this option, especially with HD wallets, while there is ample room for users to misunderstand or misuse this option. This partially reverts #9377. Would be nice to get this for 15 since its kinda crazy we have this option to begin with IMO, will need release notes as an RPC option is now ignored. Tree-SHA512: 72b5ee9c4a229b84d799dfb00c56fe80d8bba914ce81a433c3f5ab325bf9bf2b839ee658c261734f0ee183ab19435039481014d09c41dbe155e6323e63beb01d |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
9e8d6a3
|
||
|
|
achow101 |
Move transaction combining from signrawtransaction to new RPC
Create a combinerawtransaction RPC which accepts a json array of hex raw transactions to combine them into one transaction. Signrawtransaction is changed to no longer combine transactions and only accept one transaction at a time. |
6b4f231
|
|||
|
|
achow101 |
getinfo deprecation warning
|
1c9b818
|
Commits on Jul 19, 2017
|
|
jonasschnelli |
Merge #10864: Avoid redundant redeclaration of GetWarnings(const stri…
…ng&) e0d4592 Avoid redundant redeclaration of GetWarnings(const string&) (practicalswift) Pull request description: Avoid redundant redeclaration of `GetWarnings(const string&)`. `std::string GetWarnings(const std::string& strFor)` is declared in `warnings.h` and defined in `warnings.cpp`. Tree-SHA512: d1503e00a2073cf080d66eafa303dc9c660a7ac15d4d2abcf2e4aa69cf9622d89a8e3f09324139bb7b8debaa6d1ee4a1c1681d347cebd99b1d3672a4da6d1ace |
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
a6ec580
|
||
|
|
laanwj |
Merge #10817: Redefine Dust and add a discard_rate
f4d00e6 Add a discard_rate (Alex Morcos) b138585 Remove factor of 3 from definition of dust. (Alex Morcos) Pull request description: The definition of dust is redefined to remove the factor of 3. Dust is redefined to be the value of an output such that it would cost that value in fees to (create and) spend the output at the dust relay rate. The previous definition was that it would cost 1/3 of the value. The default dust relay rate is correspondingly increased to 3000 sat/kB so the actual default dust output value of 546 satoshis for a non-segwit output remains unchanged. This commit is a refactor only unless a dustrelayfee is passed on the commandline in which case that number now needs to be increased by a factor of 3 to get the same behavior. -dustrelayfee is a hidden command line option. Note: It's not exactly a refactor due to edge case changes in rounding as evidenced by the required change to the unit test. A discard_rate is added which defaults to 10,000 sat/kB Any change output which would be dust at the discard_rate you are willing to discard completely and add to fee (as well as continuing to pay the fee that would have been needed for creating the change) This would be a nice addition for 0.15 and I think will remain useful for 0.16 with the new coin selection algorithms in discussion, but its not crucial. It does add translation strings, but we could (should?) avoid that by hiding the option Tree-SHA512: 5b6f655354d0ab6b8b6cac1e8d1fe3136d10beb15c6d948fb15bfb105155a9d03684c6240624039b3eed6428b7e60e54216cc8b2f90c4600701e39f646284a9b |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
9022aa3
|
||
|
|
laanwj |
Merge #10857: [RPC] Add a deprecation warning to getinfo's output
1c9b818 getinfo deprecation warning (Andrew Chow) Pull request description: This is an alternative to #10841 This PR implements @gmaxwell's suggestion of a `nag` field for getinfo which warns about the deprecation. Instead of calling it `nag`, I have named it `deprecation-warning`. The output of `getinfo` will look like this: ``` { "version": 149900, "protocolversion": 70015, "walletversion": 139900, "balance": 0.00000000, "blocks": 476281, "timeoffset": 0, "connections": 2, "proxy": "", "difficulty": 804525194568.1318, "testnet": false, "keypoololdest": 1496858803, "keypoolsize": 197, "unlocked_until": 0, "paytxfee": 0.00000000, "relayfee": 0.00001000, "errors": "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications", "deprecation-warning": "WARNING: getinfo is deprecated and will be fully removed in 0.16. Projects should transition to using getblockchaininfo, getnetworkinfo, and getwalletinfo before upgrading to 0.16" } ``` I think this should be tagged for 0.15 Tree-SHA512: ea1bac96a67f797519e8748ddd661cf0a1127cbc38f145b98f10cf9b54dcf0519b353062ce9888e1f51875497299c75ff5147566944451bc3fc117620e773489 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
d445a2c
|
||
|
|
morcos |
Rename -usewallet to -rpcwallet
|
2264236
|
|||
|
|
MarcoFalke |
Merge #10681: add gdb attach process to test README
|
This commit was signed with a verified signature.
GPG key ID: D2EA4850E7528B25
Learn about signing commits
|
df0793f
|
||
|
|
stevendlander |
Fix misspellings and remove safety verbiage
|
This commit was signed with a verified signature.
GPG key ID: 4DC1EDC5D4BE7A30
Learn about signing commits
|
a5ecaf1
|
Commits on Jul 20, 2017
|
|
laanwj |
Merge #10883: Rename -usewallet to -rpcwallet
2264236 Rename -usewallet to -rpcwallet (Alex Morcos) Pull request description: Tree-SHA512: 99bdbff5d18e464e620b7b2a1ff8db874b3888db4d43348c96c372097ed51edd796b564e4ef1193ccd75d0a1fd51f865cf6fff4e0e3672654cd2933c851d210a |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
bf3b742
|
||
|
|
laanwj |
Merge #10571: [RPC]Move transaction combining from signrawtransaction…
… to new RPC 6b4f231 Move transaction combining from signrawtransaction to new RPC (Andrew Chow) Pull request description: Create a combinerawtransaction RPC which accepts a json array of hex raw transactions to combine them into one transaction. Signrawtransaction is changed to no longer combine transactions and only accept one transaction at a time. The tests have been updated to test this. Tests for the signrawtransaction merge have also been removed. This is part of #10570 Tree-SHA512: 035aebbd6537c1c017d5c8e06d309228b4c23fe52d5b31ffde19741c81a11a6346ddbbdc582b77b02a47f4c22b1952b69d3c2ee1109c29b3f0f1b612d8de53ed |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
adf170d
|
||
|
|
laanwj |
Merge #10862: Remove unused variable int64_t nEnd. Fix typo: "condito…
…n" → "condition". 5a6671c Fix typo: "conditon" → "condition" (practicalswift) 35aff43 Remove unused variable int64_t nEnd (practicalswift) Pull request description: * Remove unused variable `int64_t nEnd`. Last use of `nEnd` removed in commit 1fc8c3d. * Fix typo: "conditon" → "condition". Typo introduced in commit 439c4e8. Tree-SHA512: 61624e6f70828c485fe46dbe00df76f1a07b7a5849d41bf7d279323b687420e60e9b85192f611a37211f17f3dea8eb3f6f6dc65d90c92e5516404fd81d37785a |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
fd2814e
|
||
|
|
laanwj |
Merge #10783: [RPC] Various rpc argument fixes
4dc1915 check for null values in rpc args and handle appropriately (Gregory Sanders) 999ef20 importmulti options are optional (Gregory Sanders) a70d025 fixup some rpc param counting for rpc help (Gregory Sanders) Pull request description: Audited where named args will fail to use correct default values or may fail when additional optional arguments are added. Previously for these parameters, it was fine to omit them as positional arguments, but it would trigger UniValue runtime errors to set them to null, or to omit them while passing named parameters with greater positions (which would internally set earlier missing arguments to null). Now null values are treated the same as missing values so these errors do not occur. Included a few other small fixes while working on it. I didn't bother fixing account-based rpc calls. Tree-SHA512: 8baf781a35bd48de7878d4726850a580dab80323d3416c1c146b4fa9062f8a233c03f37e8ae3f3159e9d04a8f39c326627ca64c14e1cb7ce72538f934ab2ae1e |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
041dad9
|
||
|
|
laanwj |
Merge #10775: nCheckDepth chain height fix
d9d1bd3 nCheckDepth chain height fix (romanornr) Pull request description: ```` if (nCheckDepth <= 0) nCheckDepth = 1000000000; // suffices until the year 19000 if (nCheckDepth > chainActive.Height()) nCheckDepth = chainActive.Height(); ```` These lines confuse me. Correct me if I am wrong, but we can't check any more blocks than we have right? If someone requests <= 0 it get set it into some huge number and then immediately limit it to the chain height in the following statement. ```` if (nCheckDepth > chainActive.Height()) nCheckDepth = chainActive.Height(); ```` when using ````--checkblocks=Z```` When Z is ````0```` or any other negative number, it will check all blocks. I think it should be changed to this maybe. ```` if (nCheckDepth <= 0 || nCheckDepth > chainActive.Height()) nCheckDepth = chainActive.Height(); ```` Which gets rid of that huge number which is confusing for any other altcoins that have a different block time. Tree-SHA512: 8ee0ae5f33b399fa74dc16926709694ccfe1fc8a043cba2f5d00884220ac1b9b13f2df4588041f4133be634e5c7b14f4eebe24294028dafe91581a97dbe627f3 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
7c2400c
|
||
|
|
sipa |
Support multi-block SHA256 transforms
Extracted from a patch by Wladimir van der Laan. |
4d50f38
|
|||
|
|
sipa |
Add SHA256 dispatcher
|
2991c91
|
|||
|
|
sipa |
Add SSE4 based SHA256
|
c1ccb15
|
|||
|
|
sipa |
Add selftest for SHA256 transform
|
fa9be90
|
|||
|
|
sipa |
Protect SSE4 code behind a compile-time flag
|
6b8d872
|
|||
|
|
jonasschnelli |
[Qt] Use wallet 0 in rpc console if running with multiple wallets
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
9737572
|
||
|
|
laanwj |
Merge #10821: Add SSE4 optimized SHA256
6b8d872 Protect SSE4 code behind a compile-time flag (Pieter Wuille) fa9be90 Add selftest for SHA256 transform (Pieter Wuille) c1ccb15 Add SSE4 based SHA256 (Pieter Wuille) 2991c91 Add SHA256 dispatcher (Pieter Wuille) 4d50f38 Support multi-block SHA256 transforms (Pieter Wuille) Pull request description: This adds an SSE4 assembly version of the SHA256 transform by Intel, and uses it at run time if SSE4 instructions are available, and use a fallback C++ implementation otherwise. Nearly every x86_64 CPU supports SSE4. The feature is only enabled when compiled with `--enable-experimental-asm`. In order to avoid build dependencies and other complications, the original Intel YASM code was translated to GCC extended asm syntax. This gives around a 50% speedup on the SHA256 benchmark for me. It is based on an earlier patch by @laanwj, though only includes a single assembly version (for now), and removes the YASM dependency. Tree-SHA512: d31c50695ceb45264291537b93c0d7497670be38edf021ca5402eaa7d4e1e0e1ae492326e28d4e93979d066168129e62d1825e0384b1b906d36f85d93dfcb43c |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
16240f4
|
||
|
|
jnewbery |
[wallet] fix comment for CWallet::Verify()
|
09eacee
|
|||
|
|
jnewbery |
[wallet] [rpc] print wallet name in getwalletinfo
|
4a05715
|
|||
|
|
jnewbery |
[wallet] [rpc] Add listwallets RPC
This commit adds a listwallets RPC, which lists the names of the currently loaded wallets. This command intentionally shows no information about the wallet other then the name. Information on individual wallets can be obtained using the getwalletinfo RPC. |
9508761
|
|||
|
|
jnewbery |
[wallet] [tests] Add listwallets to multiwallet test
|
3707fcd
|
|||
|
|
laanwj |
qt: Periodic translations update
Tree-SHA512: 6f2548776007ebe172d43fd26673c62d0db34af815fcf4451cb293f19c0d8cf84a6761dc2636ffb5a906074d70988b3cd805e21b2471de5eb1697fadc82d0205 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
6adc3a3
|
Commits on Jul 21, 2017
|
|
kallewoof |
listsinceblock: optionally find and list any transactions that were u…
…ndone due to reorg when requesting a non-main chain block in a new 'removed' array. |
This commit was signed with a verified signature.
GPG key ID: 57AF762DB3353322
Learn about signing commits
|
f999c46
|
||
|
|
kallewoof |
Testing: listsinceblock should display all transactions that were aff…
…ected since the given block, including transactions that were removed due to a reorg. |
This commit was signed with a verified signature.
GPG key ID: 57AF762DB3353322
Learn about signing commits
|
876e92b
|
||
|
|
laanwj |
Merge #10604: [wallet] [tests] Add listwallets RPC, include wallet na…
…me in `getwalletinfo` and add multiwallet test 3707fcd [wallet] [tests] Add listwallets to multiwallet test (John Newbery) 9508761 [wallet] [rpc] Add listwallets RPC (John Newbery) 4a05715 [wallet] [rpc] print wallet name in getwalletinfo (John Newbery) 09eacee [wallet] fix comment for CWallet::Verify() (John Newbery) Pull request description: - fix comment for CWallet::Verify (cleanup after #8694) - expose the wallet name in `getwalletinfo` rpc - add `listwallets` rpc - returns array of wallet names - add functional test for multiwallet using new rpc functionality Tree-SHA512: 52f864726bf8a28421d4f3604a6cb95fffb3f4e19edbce18efaef06142c48dd4adb9e7a65a10de2955c80f13c00803ce27c78ccbc8434d92ef12cd36c4ccb4aa |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
420238d
|
||
|
|
jonasschnelli |
[QA] Avoid running multiwallet.py twice
|
This commit was signed with a verified signature.
GPG key ID: 1EB776BB03C7922D
Learn about signing commits
|
44eb9d4
|
||
|
|
brianmcmichael |
Qt: Use _putenv_s instead of setenv on Windows builds
|
0be03c7
|
Commits on Jul 22, 2017
|
|
corebob |
Move CloseSocket out of SetSocketNonBlocking and pass SOCKET by const…
… reference in SetSocket* functions |
05e023f
|
|||
|
|
benma |
remove some unused functions
|
f228b8e
|
|||
|
|
MarcoFalke |
Merge #10893: [QA] Avoid running multiwallet.py twice
44eb9d4 [QA] Avoid running multiwallet.py twice (Jonas Schnelli) Pull request description: It's already on L92. Second script execution was introduced in #10604 3707fcd (probably rebase issue) Reported by @MarcoFalke Tree-SHA512: cd2873df08e31cbf5b7a43b5e6713b643b758496d4357dcc99d1c3ad2da07e55f6d69996654d17d3f5484219cb5fd4e32da3bfd94701d1137bc955241d285e57 |
This commit was signed with a verified signature.
GPG key ID: D2EA4850E7528B25
Learn about signing commits
|
0c173a1
|
Commits on Jul 23, 2017
|
|
TheBlueMatt |
Add missing lock in CScheduler::AreThreadsServicingQueue()
Not an actual bug as this is only used in asserts right now, but nice to not have a missing lock. |
a56f8b0
|
Commits on Jul 24, 2017
|
|
laanwj |
Merge #9622: [rpc] listsinceblock should include lost transactions wh…
…en parameter is a reorg'd block 876e92b Testing: listsinceblock should display all transactions that were affected since the given block, including transactions that were removed due to a reorg. (Karl-Johan Alm) f999c46 listsinceblock: optionally find and list any transactions that were undone due to reorg when requesting a non-main chain block in a new 'removed' array. (Karl-Johan Alm) Pull request description: The following scenario will not notify the caller of the fact `tx0` has been dropped: 1. User 1 receives BTC in tx0 from utxo1 in block aa1. 2. User 2 receives BTC in tx1 from utxo1 (same) in block bb1 3. User 1 sees 2 confirmations at block aa3. 4. Reorg into bb chain. 5. User 1 asks `listsinceblock aa3` and does not see that tx0 is now invalidated. See `listsinceblock.py` commit for related test. The proposed fix is to iterate from the given block down to the fork point, and to check each transaction in the blocks against the wallet, in addition to including all transactions from the fork point to the active chain tip (the current behavior). Any transactions that were present will now also be listed in the `listsinceblock` output in a new `replaced` array. This operation may be a bit heavy but the circumstances (and perceived frequency of occurrence) warrant it, I believe. Example output: ```Python { 'transactions': [], 'replaced': [ { 'walletconflicts': [], 'vout': 1, 'account': '', 'timereceived': 1485234857, 'time': 1485234857, 'amount': '1.00000000', 'bip125-replaceable': 'unknown', 'trusted': False, 'category': 'receive', 'txid': 'ce673859a30dee1d2ebdb3c05f2eea7b1da54baf68f93bb8bfe37c5f09ed22ff', 'address': 'miqEt4kWp9zSizwGGuUWLAmxEcTW9bFUnQ', 'label': '', 'confirmations': -7 } ], 'lastblock': '7a388f27d09e3699102a4ebf81597d974fc4c72093eeaa02adffbbf7527f6715' } ``` I believe this addresses the comment by @luke-jr in #9516 (comment) but I could be wrong.. Tree-SHA512: 607b5dcaeccb9dc0d963d3de138c40490f3e923050b29821e6bd513d26beb587bddc748fbb194503fe618cfe34a6ed65d95e8d9c5764a882b6c5f976520cff35 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
6ef3c7e
|
||
|
|
corebob |
Replace traditional for with ranged for in primitives
|
72f0060
|
|||
|
|
laanwj |
Merge #10865: Move CloseSocket out of SetSocketNonBlocking and pass s…
…ocket as const reference 05e023f Move CloseSocket out of SetSocketNonBlocking and pass SOCKET by const reference in SetSocket* functions (Dag Robole) Pull request description: Rationale: Readability, SetSocketNonBlocking does what it says on the tin. Consistency, More consistent with the rest of the API in this unit. Reusability, SetSocketNonBlocking can also be used by clients that may not want to close the socket on failure. This also moves the responsibility of closing the socket back to the caller that opened it, which in general should know better how and when to close it. Tree-SHA512: 85027137f1b626e2b636549ee38cc757a587adcf464c84be6e65ca16e3b75d7ed1a1b21dd70dbe34c7c5d599af39e53b89932dfe3c74f91a22341ff3af5ea80a |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
0c70e84
|
Commits on Jul 25, 2017
|
|
laanwj |
Merge #10789: Punctuation/grammer fixes in rpcwallet.cpp
a5ecaf1 Fix misspellings and remove safety verbiage (Steven D. Lander) Pull request description: Standardizing punctuation on CLI output and also including a few fixes for grammer. This PR is for text only changes and includes no code edits. Tree-SHA512: afde551bf1212838822188b6723f2bf1b7222decfa1cd7aa6b04967489108a29f80833af6059252af028c53437755f258275af0614e0d4d0311e09421cd8e131 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
1124328
|
||
|
|
benma |
developer-notes: add reference to snake_case and PascalCase
CamelCase is ambiguous as it refers to both lowerCamelCase and UpperCamelCase, whereas PascalCase is only UpperCamelCase. |
4a7a4ff
|
|||
|
|
laanwj |
Merge #10870: [Qt] Use wallet 0 in rpc console if running with multip…
…le wallets 9737572 [Qt] Use wallet 0 in rpc console if running with multiple wallets (Jonas Schnelli) Pull request description: Current master with multiwallet results in accessing wallet 0 in QT (send / receive / tx history / etc.), **but** the RPC console cannot access that wallet (only non-wallet commands work). This is a quick solution to re-allow accessing the same wallet (Index 0) via RPC console in multiwallet. The solutions design is not "state of the art" (should go over WalletModel). Ideally we work on an overall multiwallet support for the GUI (which then would remove this change). I think we should consider this as a bugfix. Tree-SHA512: 16cf844662248ffd3d82c7d0cbe5879f231fbc7d4f5a4aab4180a9087018519c98301e4ac311eaec2cc39dddf25d3edf9be99a6622ea682c138a820a9b21fd0c |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
412b466
|
||
|
|
laanwj |
Merge #10508: Run Qt wallet tests on travis
4f92b5f Run Qt wallet tests on travis (Russell Yanofsky) Pull request description: Currently these test failures are not caught by travis leading to bugs like: #10506 Tree-SHA512: db1e4ff5b17bcd6fd000a3d21aa74f6b7e4c194e0663c1896a100612671910a7cdadd896b59642420ea016598895b54a8468914847ebefef105a3c47c311d4b2 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
1caafa6
|
||
|
|
laanwj |
test: Make sure wallet.backup is created in temp path
This assures that we don't overwrite a random file called `wallet.backup` that happens to be in the current directory. It also assures that the temporary file will be cleaned up. Noticed by Evan Klitzke, came up in discussion here: #10880 (comment) |
88af227
|
|||
|
|
MarcoFalke |
Merge #10703: [tests] Allow tests to pass when stderr is non-empty
d64ac3f [tests] Allow tests to pass when stderr is non-empty (Jonas Schnelli) Pull request description: Resurrect #10241 with nits addressed Not sure how much people want this. Would be useful for functional tests which cause bitcoind to print to stderr. Tree-SHA512: 28caccf7818fb3ed5a38caef7f77161b1678aa9b8fd12c2d1e76032f409f0d33c40f7ac91e0c8d908df4a44fd01cf97d657a08bae50c6ff17d07f5b2e20c3a6e |
This commit was signed with a verified signature.
GPG key ID: D2EA4850E7528B25
Learn about signing commits
|
f1f1605
|
||
|
|
RHavar |
Properly document target_confirmations in listsinceblock
|
9f8a46f
|
|||
|
|
laanwj |
Revert "[tests] Allow tests to pass when stderr is non-empty"
This reverts commit d64ac3f after further discussion. Tree-SHA512: db1e4ff5b17bcd6fd000a3d21aa74f6b7e4c194e0663c1896a100612671910a7cdadd896b59642420ea016598895b54a8468914847ebefef105a3c47c311d4b2 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
60f9778
|
||
|
|
laanwj |
Merge #10927: test: Make sure wallet.backup is created in temp path
88af227 test: Make sure wallet.backup is created in temp path (Wladimir J. van der Laan) Pull request description: This assures that we don't overwrite a random file called `wallet.backup` that happens to be in the current directory. It also assures that the temporary file will be cleaned up. Noticed by Evan Klitzke, came up in discussion here: #10880 (comment) Tree-SHA512: 2d2c23c2deba26a1130a29279b3d8565b277eb90a98a6a6d7dd4948f5cbbd5ec5453b3082e3e4e21e0e2423e642bbd2f4433e4c21032d3c8cff27ee35e87e7e7 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
9d5e8f9
|
||
|
|
laanwj |
Merge #10799: Prevent user from specifying conflicting parameters to …
…fundrawtx 99c7fc3 Prevent user from specifying conflicting parameters to fundrawtx (Matt Corallo) Pull request description: estimate_mode/conf_target both are overridden by feeRate, so should not be specified together with feeRate. Based on #10706 Tree-SHA512: 8ccd08575fd1f2a0d45112538ffbbc73983ee172963230b0cc7ac41d13c6f3c740917f82b212c41ded3a64d873452e7f2c7af49f3b47cab897f8e85117f21333 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
8537187
|
||
|
|
practicalswift |
[tests] Fix incorrect memory_cleanse(…) call in crypto_tests.cpp
chKey and chIV are pointers, not arrays :-) Probably the result of copy-pasting of old code which was operating on arrays instead of pointers. |
065039d
|
Commits on Jul 26, 2017
|
|
laanwj |
Merge #10899: [test] Qt: Use _putenv_s instead of setenv on Windows b…
…uilds 0be03c7 Qt: Use _putenv_s instead of setenv on Windows builds (Brian McMichael) Pull request description: Fixes #10836 Error message I would get on `make`: ``` ... CXXLD bench/bench_bitcoin.exe OBJCXXLD qt/bitcoin-qt.exe qt/test/test_main.cpp: In function ‘int main(int, char**)’: qt/test/test_main.cpp:64:43: error: ‘setenv’ was not declared in this scope setenv("QT_QPA_PLATFORM", "minimal", 0); ^ make[2]: *** [qt/test/qt_test_test_bitcoin_qt-test_main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/home/bmcmichael/Projects/bcoin/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bmcmichael/Projects/bcoin/src' make: *** [all-recursive] Error 1 ``` `setenv` function is not available from the Microsoft runtime library. Need to use `_putenv_s` instead. This solution tells the compiler to use `_putenv_s` on `WIN32` compilation (Note: this also works on 64-bit Windows instances.) and `setenv` everywhere else. I've tested builds on Windows 10 x64 and Ubuntu 16.04 with this code. Tree-SHA512: d53c996c890e3c6f22b4f2dcca718bef9168f19a6d4a29b8ff13391bfc0c8ea9c1cd16782b47c25b156dcbdff18bb19e23bfd5f6fefb1f373c9d5454a13fc969 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
f29d5db
|
||
|
|
laanwj |
Merge #10914: Add missing lock in CScheduler::AreThreadsServicingQueue()
a56f8b0 Add missing lock in CScheduler::AreThreadsServicingQueue() (Matt Corallo) Pull request description: Not an actual bug as this is only used in asserts right now, but nice to not have a missing lock. Tree-SHA512: 7e542b150a0be716783e196493d239f2ad15e5376abf54b67d735dc3ef1b10849c090337b849f530c9f7497ddcfb8389b47d64a5dcf6382b7d38838f88cc1100 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
b995a37
|
||
|
|
laanwj |
Merge #10655: Properly document target_confirmations in listsinceblock
9f8a46f Properly document target_confirmations in listsinceblock (Ryan Havar) Pull request description: There seems to be some misunderstandings about this, but it's a heavily used function so I'd like to make sure the docs are clear about how it works. For a later issue: * Change the default of target_confirmations to 6 (1 is a pretty silly default) * Change the name of target_confirmations (it's really a horrible name) Tree-SHA512: a2fba2fab30019cea9db56cd7e31de95ba31090617ab336bdf130f9591bfcf3fc5fbd9e7e1e40b6c7bd2f74b9b4658afb1fdc7fc44e1f79520d1319758982a1c |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
78f307b
|
||
|
|
laanwj |
Merge #10854: Avoid using sizes on non-fixed-width types to derive pr…
…otocol constants. 095b917 Avoid using sizes on non-fixed-width types to derive protocol constants. (Gregory Maxwell) Pull request description: Thanks to awemany for pointing this out. This replaces #10172 which appears to be abandoned, but uses the constants as requested on that PR. Tree-SHA512: 032c0d75b3aaf807a7d0c7fb8ff5515acc45ad58bd00fe81413f900fe02bad900534a970403b9bb568e132c9eddea6043e958daf625e8acc84375bd41ee2e2ef |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
04d395e
|
||
|
|
ryanofsky |
Fix misleading "Method not found" multiwallet errors
Raise RPC_WALLET_NOT_SPECIFIED instead of RPC_METHOD_NOT_FOUND when a required wallet filename was not specified in an RPC call. Also raise more specific RPC_WALLET_NOT_FOUND error instead of RPC_INVALID_PARAMETER in case an invalid wallet was specified, for consistency. |
e526b3d
|
|||
|
|
laanwj |
Merge #10917: developer-notes: add reference to snake_case and Pascal…
…Case 4a7a4ff developer-notes: add reference to snake_case and PascalCase (Marko Bencun) Pull request description: CamelCase is ambiguous as it refers to both lowerCamelCase and UpperCamelCase, whereas PascalCase is only UpperCamelCase. Tree-SHA512: 8eebc42931f10ed8fd314c6b8a2a936aa18fce358a50bb8ae580404fb06a97b8fece12c0398170a9a8ddce250d1e79ece3774cf8a36ac604d67b2797b54aa005 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
5c003cb
|
||
|
|
laanwj |
Merge #10824: Avoid unnecessary work in SetNetworkActive
a2420ae Avoid unnecessary work in SetNetworkActive (João Barbosa) Pull request description: This PR adds an early return to avoid unnecessary notifications when the status doesn't change. Tree-SHA512: 85d05ca6fa36cb581f94bc154d08bd72cd53f6a857173c6fb2f184058f9c0208c4cf5e5d196825a78339902d8f256688eb6793f99abc7be9c7cfac85136180d9 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
9dd6a2b
|
||
|
|
laanwj |
Merge #10912: [tests] Fix incorrect memory_cleanse(…) call in crypto_…
…tests.cpp 065039d [tests] Fix incorrect memory_cleanse(…) call in crypto_tests.cpp (practicalswift) Pull request description: `chKey` and `chIV` are pointers, not arrays :-) Probably the result of copy-pasting of old code where the code was operating on arrays instead of pointers. If I'm reading the code correctly the absence/presence of these `memory_cleanse(…)` calls won't alter the outcome of the test in question (`TestPassphraseSingle`) even if fixed. Therefore removing. Tree-SHA512: a053b2817bedf6ef889744e546ce9a0f165dee94aef6850d9d6a6bb05b0018789597371ecf154a4aec8588c0ef5626ef08c23c35e35927f6b0497b5f086146fe |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
5c8eb79
|
||
|
|
ryanofsky |
Change wallet method disabled error text
Not strictly backwards compatible because the error is not new in this release. |
df389bc
|
Commits on Jul 27, 2017
|
|
laanwj |
Merge #10501: remove some unused functions
f228b8e remove some unused functions (Marko Bencun) Pull request description: Identified with `cppcheck --enable=unusedFunction .`. - GetSendBufferSize()'s last use removed in 991955e - SetPort()'s last use removed in 7e195e8 - GetfLargeWorkInvalidChainFound() was introduced in e3ba0ef and never used Tree-SHA512: ea8e5498bec981e42e1342c171c37723c2f5e575c7d6c1a524d9c6cd9b332bdd0d84fddf9e14ca011bb49fb82bd037386382c9afc546b3c2231ae548358bd4f4 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
8a99fe0
|
||
|
|
laanwj |
Merge #10892: Replace traditional for with ranged for in block and tr…
…ansaction primitives 72f0060 Replace traditional for with ranged for in primitives (Dag Robole) Pull request description: Replace traditional for with ranged for in block and transaction primitives to improve readability Tree-SHA512: c0fff603d2939149ca48b6aa72b59738a3658d49bd58b2d4ffbc85bdb774d8d5bb808fe526fe22bb9eb214de632834d373e2aab44f6019a83c0b09440cea6528 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
ba1bbb0
|
||
|
|
laanwj |
Merge #10931: Fix misleading "Method not found" multiwallet errors
df389bc Change wallet method disabled error text (Russell Yanofsky) e526b3d Fix misleading "Method not found" multiwallet errors (Russell Yanofsky) Pull request description: Raise RPC_WALLET_NOT_SPECIFIED instead of RPC_METHOD_NOT_FOUND when a required wallet filename was not specified in an RPC call. Also raise more specific RPC_WALLET_NOT_FOUND error instead of RPC_INVALID_PARAMETER in case an invalid wallet was specified, for consistency. Tree-SHA512: 6a8d885283f69bcfc28f2e08ac03eff02f9f8160a312ce2a90d868aa52533434fc0b4c4ab86547c2f09392338956df915637eaf7136a4fc105e6c8179f2d0ac8 |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
0b11a07
|
Commits on Jul 28, 2017
|
|
promag |
Reject duplicate wallet filenames
|
3ef77a0
|
|||
|
|
promag |
Reject invalid wallet files
|
a6da027
|
|||
|
|
jnewbery + promag |
[wallet] Specify wallet name in wallet loading errors
|
d84e78e
|
|||
|
|
laanwj |
Merge #10885: Reject invalid wallets
d84e78e [wallet] Specify wallet name in wallet loading errors (John Newbery) a6da027 Reject invalid wallet files (João Barbosa) 3ef77a0 Reject duplicate wallet filenames (João Barbosa) Pull request description: This PR prevents loading the same wallet more than once in a multi wallet scenario. It also prevents loading with invalid files: non regular files or symlinks. Tree-SHA512: 45bf814096bb788db1c76ff334e679a10686cee7d9c8cd48fe5d924031353ace271f6fb0d4af49a34246d336945515c176920a552be7b9fbe07ab8e00e5f6e5e |
This commit was signed with a verified signature.
GPG key ID: 1E4AED62986CD25D
Learn about signing commits
|
70888a3
|
Unified
Split
Showing
with
15,017 additions
and 1,891 deletions.
- +3 −3 .travis.yml
- +1 −1 build-aux/m4/bitcoin_find_bdb48.m4
- +43 −2 configure.ac
- +2 −0 contrib/devtools/github-merge.py
- +25 −6 contrib/verifybinaries/verify.sh
- +1 −0 depends/Makefile
- +6 −5 depends/config.site.in
- +3 −3 doc/developer-notes.md
- +4 −0 src/Makefile.am
- +1 −1 src/Makefile.leveldb.include
- +4 −3 src/Makefile.test.include
- +6 −6 src/base58.cpp
- +1 −1 src/base58.h
- +15 −12 src/bench/base58.cpp
- +2 −0 src/bench/bench_bitcoin.cpp
- +8 −2 src/bench/verify_script.cpp
- +27 −3 src/bitcoin-cli.cpp
- +1 −1 src/bitcoin-tx.cpp
- +6 −1 src/bitcoind.cpp
- +1 −3 src/blockencodings.cpp
- +2 −1 src/coins.cpp
- +1 −1 src/compat.h
- +4 −4 src/compressor.cpp
- +6 −8 src/consensus/consensus.h
- +1 −1 src/consensus/tx_verify.cpp
- +18 −0 src/consensus/validation.h
- +1 −1 src/core_memusage.h
- +1 −1 src/core_read.cpp
- +2 −2 src/core_write.cpp
- +148 −88 src/crypto/sha256.cpp
- +6 −0 src/crypto/sha256.h
- +1,506 −0 src/crypto/sha256_sse4.cpp
- +20 −23 src/hash.cpp
- +4 −1 src/httprpc.cpp
- +12 −0 src/httpserver.cpp
- +2 −0 src/httpserver.h
- +31 −5 src/init.cpp
- +11 −5 src/init.h
- +5 −5 src/key.cpp
- +4 −1 src/merkleblock.cpp
- +2 −0 src/merkleblock.h
- +8 −6 src/net.cpp
- +0 −2 src/net.h
- +1 −6 src/netaddress.cpp
- +0 −1 src/netaddress.h
- +7 −26 src/netbase.cpp
- +2 −3 src/netbase.h
- +1 −0 src/policy/feerate.h
- +99 −65 src/policy/fees.cpp
- +15 −1 src/policy/fees.h
- +7 −4 src/policy/policy.cpp
- +2 −2 src/policy/policy.h
- +1 −1 src/prevector.h
- +2 −12 src/primitives/block.cpp
- +0 −3 src/primitives/block.h
- +9 −15 src/primitives/transaction.cpp
- +3 −7 src/primitives/transaction.h
- +1 −1 src/protocol.h
- +2 −5 src/pubkey.cpp
- +41 −21 src/qt/bitcoin.cpp
- +10 −0 src/qt/bitcoinstrings.cpp
- +1 −0 src/qt/clientmodel.cpp
- +3 −7 src/qt/coincontroldialog.cpp
- +4 −60 src/qt/forms/sendcoinsdialog.ui
- +105 −1 src/qt/locale/bitcoin_af.ts
- +64 −0 src/qt/locale/bitcoin_af_ZA.ts
- +29 −1 src/qt/locale/bitcoin_ar.ts
- +24 −0 src/qt/locale/bitcoin_bg.ts
- +27 −3 src/qt/locale/bitcoin_ca_ES.ts
- +3 −3 src/qt/locale/bitcoin_da.ts
- +92 −28 src/qt/locale/bitcoin_de.ts
- +271 −3 src/qt/locale/bitcoin_el_GR.ts
- +70 −63 src/qt/locale/bitcoin_en.ts
- +119 −3 src/qt/locale/bitcoin_eo.ts
- +130 −2 src/qt/locale/bitcoin_es.ts
- +88 −4 src/qt/locale/bitcoin_es_ES.ts
- +32 −0 src/qt/locale/bitcoin_et_EE.ts
- +128 −0 src/qt/locale/bitcoin_fa.ts
- +415 −43 src/qt/locale/bitcoin_fa_IR.ts
- +369 −9 src/qt/locale/bitcoin_fi.ts
- +13 −13 src/qt/locale/bitcoin_fr.ts
- +385 −9 src/qt/locale/bitcoin_fr_FR.ts
- +1,217 −31 src/qt/locale/bitcoin_he.ts
- +28 −0 src/qt/locale/bitcoin_hu.ts
- +427 −7 src/qt/locale/bitcoin_id_ID.ts
- +994 −34 src/qt/locale/bitcoin_it.ts
- +20 −0 src/qt/locale/bitcoin_it_IT.ts
- +8 −0 src/qt/locale/bitcoin_ka.ts
- +946 −74 src/qt/locale/bitcoin_ko_KR.ts
- +333 −5 src/qt/locale/bitcoin_ms_MY.ts
- +528 −12 src/qt/locale/bitcoin_nb.ts
- +76 −0 src/qt/locale/bitcoin_ne.ts
- +298 −6 src/qt/locale/bitcoin_nl.ts
- +151 −11 src/qt/locale/bitcoin_pl.ts
- +3 −3 src/qt/locale/bitcoin_pt_BR.ts
- +834 −14 src/qt/locale/bitcoin_pt_PT.ts
- +20 −0 src/qt/locale/bitcoin_ru.ts
- +10 −2 src/qt/locale/bitcoin_ru_RU.ts
- +1,313 −45 src/qt/locale/bitcoin_sk.ts
- +868 −20 src/qt/locale/bitcoin_sv.ts
- +3 −3 src/qt/locale/bitcoin_tr.ts
- +95 −3 src/qt/locale/bitcoin_uk.ts
- +24 −0 src/qt/locale/bitcoin_ur_PK.ts
- +20 −0 src/qt/locale/bitcoin_vi_VN.ts
- +8 −0 src/qt/locale/bitcoin_zh_CN.ts
- +376 −6 src/qt/locale/bitcoin_zh_HK.ts
- +9 −0 src/qt/rpcconsole.cpp
- +63 −54 src/qt/sendcoinsdialog.cpp
- +2 −1 src/qt/sendcoinsdialog.h
- +3 −19 src/qt/test/rpcnestedtests.cpp
- +5 −1 src/qt/test/test_main.cpp
- +7 −3 src/qt/walletmodel.cpp
- +1 −1 src/qt/walletmodel.h
- +11 −13 src/random.cpp
- +12 −12 src/rpc/blockchain.cpp
- +7 −2 src/rpc/client.cpp
- +129 −81 src/rpc/mining.cpp
- +3 −0 src/rpc/mining.h
- +14 −2 src/rpc/misc.cpp
- +2 −2 src/rpc/net.cpp
- +2 −0 src/rpc/protocol.h
- +103 −38 src/rpc/rawtransaction.cpp
- +67 −0 src/scheduler.cpp
- +32 −1 src/scheduler.h
- +2 −2 src/script/interpreter.cpp
- +8 −0 src/script/script.h
- +6 −6 src/serialize.h
- +1 −1 src/streams.h
- +3 −3 src/test/data/script_tests.json
- +8 −21 src/test/dbwrapper_tests.cpp
- +1 −0 src/test/netbase_tests.cpp
- +0 −10 src/test/policyestimator_tests.cpp
- +1 −0 src/test/sigopcount_tests.cpp
- +10 −0 src/test/test_bitcoin.cpp
- +2 −0 src/test/test_bitcoin.h
- +5 −5 src/test/transaction_tests.cpp
- +1 −1 src/test/txvalidationcache_tests.cpp
- +1 −1 src/torcontrol.cpp
- +1 −1 src/txdb.cpp
- +2 −1 src/undo.h
- +3 −3 src/util.h
- +21 −2 src/utilstrencodings.cpp
- +1 −0 src/utilstrencodings.h
- +17 −22 src/validation.cpp
- +0 −8 src/validation.h
- +104 −27 src/validationinterface.cpp
- +42 −26 src/validationinterface.h
- +13 −7 src/wallet/coincontrol.h
- +2 −2 src/wallet/db.h
- +4 −3 src/wallet/feebumper.cpp
- +3 −1 src/wallet/feebumper.h
- +9 −9 src/wallet/rpcdump.cpp
- +250 −99 src/wallet/rpcwallet.cpp
- +1 −1 src/wallet/rpcwallet.h
- +2 −2 src/wallet/test/crypto_tests.cpp
- +5 −3 src/wallet/test/wallet_tests.cpp
- +325 −201 src/wallet/wallet.cpp
- +32 −14 src/wallet/wallet.h
- +9 −9 src/wallet/walletdb.cpp
- +0 −6 src/warnings.cpp
- +7 −1 src/warnings.h
- +20 −0 test/README.md
- +3 −14 test/functional/fundrawtransaction.py
- +0 −157 test/functional/getblocktemplate_proposals.py
- +180 −10 test/functional/listsinceblock.py
- +124 −0 test/functional/mining.py
- +78 −0 test/functional/multiwallet.py
- +53 −4 test/functional/rawtransactions.py
- +0 −16 test/functional/signrawtransactions.py
- +3 −0 test/functional/test_framework/authproxy.py
- +2 −0 test/functional/test_framework/coverage.py
- +2 −1 test/functional/test_runner.py
- +48 −52 test/functional/zapwallettxes.py
View
6
.travis.yml
| @@ -29,9 +29,9 @@ env: | ||
| - HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc python3-zmq" DEP_OPTS="NO_QT=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash" | ||
| # Win64 | ||
| - HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine1.6 bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports" | ||
| -# bitcoind | ||
| - - HOST=x86_64-unknown-linux-gnu PACKAGES="bc python3-zmq" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER" | ||
| -# No wallet | ||
| +# x86_64 Linux (uses qt5 dev package instead of depends Qt to speed up build and avoid timeout) | ||
| + - HOST=x86_64-unknown-linux-gnu PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools protobuf-compiler libdbus-1-dev libharfbuzz-dev" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER" | ||
| +# x86_64 Linux, No wallet | ||
| - HOST=x86_64-unknown-linux-gnu PACKAGES="python3" DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" | ||
| # Cross-Mac | ||
| - HOST=x86_64-apple-darwin11 PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" OSX_SDK=10.11 GOAL="deploy" | ||
View
2
build-aux/m4/bitcoin_find_bdb48.m4
| @@ -12,7 +12,7 @@ AC_DEFUN([BITCOIN_FIND_BDB48],[ | ||
| bdbpath=X | ||
| bdb48path=X | ||
| bdbdirlist= | ||
| - for _vn in 4.8 48 4 5 ''; do | ||
| + for _vn in 4.8 48 4 5 5.3 ''; do | ||
| for _pfx in b lib ''; do | ||
| bdbdirlist="$bdbdirlist ${_pfx}db${_vn}" | ||
| done | ||
View
45
configure.ac
| @@ -19,6 +19,12 @@ BITCOIN_GUI_NAME=bitcoin-qt | ||
| BITCOIN_CLI_NAME=bitcoin-cli | ||
| BITCOIN_TX_NAME=bitcoin-tx | ||
| +dnl Unless the user specified ARFLAGS, force it to be cr | ||
| +AC_ARG_VAR(ARFLAGS, [Flags for the archiver, defaults to <cr> if not set]) | ||
| +if test "x${ARFLAGS+set}" != "xset"; then | ||
| + ARFLAGS="cr" | ||
| +fi | ||
| + | ||
| AC_CANONICAL_HOST | ||
| AH_TOP([#ifndef BITCOIN_CONFIG_H]) | ||
| @@ -171,6 +177,16 @@ AC_ARG_ENABLE([glibc-back-compat], | ||
| [use_glibc_compat=$enableval], | ||
| [use_glibc_compat=no]) | ||
| +AC_ARG_ENABLE([experimental-asm], | ||
| + [AS_HELP_STRING([--enable-experimental-asm], | ||
| + [Enable experimental assembly routines (default is no)])], | ||
| + [experimental_asm=$enableval], | ||
| + [experimental_asm=no]) | ||
| + | ||
| +if test "x$experimental_asm" = xyes; then | ||
| + AC_DEFINE(EXPERIMENTAL_ASM, 1, [Define this symbol to build in experimental assembly routines]) | ||
| +fi | ||
| + | ||
| AC_ARG_WITH([system-univalue], | ||
| [AS_HELP_STRING([--with-system-univalue], | ||
| [Build with system UniValue (default is no)])], | ||
| @@ -246,9 +262,32 @@ if test "x$CXXFLAGS_overridden" = "xno"; then | ||
| # Check for optional instruction set support. Enabling these does _not_ imply that all code will | ||
| # be compiled with them, rather that specific objects/libs may use them after checking for runtime | ||
| # compatibility. | ||
| - AX_CHECK_COMPILE_FLAG([-msse4.2],[[enable_sse42=yes; SSE42_CXXFLAGS="-msse4.2"]],,[[$CXXFLAG_WERROR]]) | ||
| + AX_CHECK_COMPILE_FLAG([-msse4.2],[[SSE42_CXXFLAGS="-msse4.2"]],,[[$CXXFLAG_WERROR]]) | ||
| fi | ||
| + | ||
| +TEMP_CXXFLAGS="$CXXFLAGS" | ||
| +CXXFLAGS="$CXXFLAGS $SSE42_CXXFLAGS" | ||
| +AC_MSG_CHECKING(for assembler crc32 support) | ||
| +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
| + #include <stdint.h> | ||
| + #if defined(_MSC_VER) | ||
| + #include <intrin.h> | ||
| + #elif defined(__GNUC__) && defined(__SSE4_2__) | ||
| + #include <nmmintrin.h> | ||
| + #endif | ||
| + ]],[[ | ||
| + uint64_t l = 0; | ||
| + l = _mm_crc32_u8(l, 0); | ||
| + l = _mm_crc32_u32(l, 0); | ||
| + l = _mm_crc32_u64(l, 0); | ||
| + return l; | ||
| + ]])], | ||
| + [ AC_MSG_RESULT(yes); enable_hwcrc32=yes], | ||
| + [ AC_MSG_RESULT(no)] | ||
| +) | ||
| +CXXFLAGS="$TEMP_CXXFLAGS" | ||
| + | ||
| CPPFLAGS="$CPPFLAGS -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS" | ||
| AC_ARG_WITH([utils], | ||
| @@ -1132,7 +1171,8 @@ AM_CONDITIONAL([USE_QRCODE], [test x$use_qr = xyes]) | ||
| AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes]) | ||
| AM_CONDITIONAL([GLIBC_BACK_COMPAT],[test x$use_glibc_compat = xyes]) | ||
| AM_CONDITIONAL([HARDEN],[test x$use_hardening = xyes]) | ||
| -AM_CONDITIONAL([ENABLE_SSE42],[test x$enable_sse42 = xyes]) | ||
| +AM_CONDITIONAL([ENABLE_HWCRC32],[test x$enable_hwcrc32 = xyes]) | ||
| +AM_CONDITIONAL([EXPERIMENTAL_ASM],[test x$experimental_asm = xyes]) | ||
| AC_DEFINE(CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MAJOR, [Major version]) | ||
| AC_DEFINE(CLIENT_VERSION_MINOR, _CLIENT_VERSION_MINOR, [Minor version]) | ||
| @@ -1262,4 +1302,5 @@ echo " CPPFLAGS = $CPPFLAGS" | ||
| echo " CXX = $CXX" | ||
| echo " CXXFLAGS = $CXXFLAGS" | ||
| echo " LDFLAGS = $LDFLAGS" | ||
| +echo " ARFLAGS = $ARFLAGS" | ||
| echo | ||
View
2
contrib/devtools/github-merge.py
| @@ -175,6 +175,7 @@ def main(): | ||
| if info is None: | ||
| exit(1) | ||
| title = info['title'].strip() | ||
| + body = info['body'].strip() | ||
| # precedence order for destination branch argument: | ||
| # - command line argument | ||
| # - githubmerge.branch setting | ||
| @@ -229,6 +230,7 @@ def main(): | ||
| firstline = 'Merge #%s' % (pull,) | ||
| message = firstline + '\n\n' | ||
| message += subprocess.check_output([GIT,'log','--no-merges','--topo-order','--pretty=format:%h %s (%an)',base_branch+'..'+head_branch]).decode('utf-8') | ||
| + message += '\n\nPull request description:\n\n ' + body.replace('\n', '\n ') + '\n' | ||
| try: | ||
| subprocess.check_call([GIT,'merge','-q','--commit','--no-edit','--no-ff','-m',message.encode('utf-8'),head_branch]) | ||
| except subprocess.CalledProcessError as e: | ||
View
31
contrib/verifybinaries/verify.sh
| @@ -3,7 +3,8 @@ | ||
| # Distributed under the MIT software license, see the accompanying | ||
| # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
| -### This script attempts to download the signature file SHA256SUMS.asc from bitcoin.org | ||
| +### This script attempts to download the signature file SHA256SUMS.asc from | ||
| +### bitcoincore.org and bitcoin.org and compares them. | ||
| ### It first checks if the signature passes, and then downloads the files specified in | ||
| ### the file, and checks if the hashes of these files match those that are specified | ||
| ### in the signature file. | ||
| @@ -22,7 +23,9 @@ TMPFILE="hashes.tmp" | ||
| SIGNATUREFILENAME="SHA256SUMS.asc" | ||
| RCSUBDIR="test" | ||
| -BASEDIR="https://bitcoin.org/bin/" | ||
| +HOST1="https://bitcoincore.org" | ||
| +HOST2="https://bitcoin.org" | ||
| +BASEDIR="/bin/" | ||
| VERSIONPREFIX="bitcoin-core-" | ||
| RCVERSIONSTRING="rc" | ||
| @@ -81,7 +84,7 @@ else | ||
| fi | ||
| #first we fetch the file containing the signature | ||
| -WGETOUT=$(wget -N "$BASEDIR$SIGNATUREFILENAME" 2>&1) | ||
| +WGETOUT=$(wget -N "$HOST1$BASEDIR$SIGNATUREFILENAME" 2>&1) | ||
| #and then see if wget completed successfully | ||
| if [ $? -ne 0 ]; then | ||
| @@ -92,6 +95,22 @@ if [ $? -ne 0 ]; then | ||
| exit 2 | ||
| fi | ||
| +WGETOUT=$(wget -N -O "$SIGNATUREFILENAME.2" "$HOST2$BASEDIR$SIGNATUREFILENAME" 2>&1) | ||
| +if [ $? -ne 0 ]; then | ||
| + echo "bitcoin.org failed to provide signature file, but bitcoincore.org did?" | ||
| + echo "wget output:" | ||
| + echo "$WGETOUT"|sed 's/^/\t/g' | ||
| + clean_up $SIGNATUREFILENAME | ||
| + exit 3 | ||
| +fi | ||
| + | ||
| +SIGFILEDIFFS="$(diff $SIGNATUREFILENAME $SIGNATUREFILENAME.2)" | ||
| +if [ "$SIGFILEDIFFS" != "" ]; then | ||
| + echo "bitcoin.org and bitcoincore.org signature files were not equal?" | ||
| + clean_up $SIGNATUREFILENAME $SIGNATUREFILENAME.2 | ||
| + exit 4 | ||
| +fi | ||
| + | ||
| #then we check it | ||
| GPGOUT=$(gpg --yes --decrypt --output "$TMPFILE" "$SIGNATUREFILENAME" 2>&1) | ||
| @@ -111,7 +130,7 @@ if [ $RET -ne 0 ]; then | ||
| echo "gpg output:" | ||
| echo "$GPGOUT"|sed 's/^/\t/g' | ||
| - clean_up $SIGNATUREFILENAME $TMPFILE | ||
| + clean_up $SIGNATUREFILENAME $SIGNATUREFILENAME.2 $TMPFILE | ||
| exit "$RET" | ||
| fi | ||
| @@ -131,7 +150,7 @@ FILES=$(awk '{print $2}' "$TMPFILE") | ||
| for file in $FILES | ||
| do | ||
| echo "Downloading $file" | ||
| - wget --quiet -N "$BASEDIR$file" | ||
| + wget --quiet -N "$HOST1$BASEDIR$file" | ||
| done | ||
| #check hashes | ||
| @@ -149,7 +168,7 @@ fi | ||
| if [ -n "$2" ]; then | ||
| echo "Clean up the binaries" | ||
| - clean_up $FILES $SIGNATUREFILENAME $TMPFILE | ||
| + clean_up $FILES $SIGNATUREFILENAME $SIGNATUREFILENAME.2 $TMPFILE | ||
| else | ||
| echo "Keep the binaries in $WORKINGDIR" | ||
| clean_up $TMPFILE | ||
View
1
depends/Makefile
| @@ -134,6 +134,7 @@ $(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_ | ||
| -e 's|@CXXFLAGS@|$(strip $(host_CXXFLAGS) $(host_$(release_type)_CXXFLAGS))|' \ | ||
| -e 's|@CPPFLAGS@|$(strip $(host_CPPFLAGS) $(host_$(release_type)_CPPFLAGS))|' \ | ||
| -e 's|@LDFLAGS@|$(strip $(host_LDFLAGS) $(host_$(release_type)_LDFLAGS))|' \ | ||
| + -e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \ | ||
| -e 's|@no_qt@|$(NO_QT)|' \ | ||
| -e 's|@no_wallet@|$(NO_WALLET)|' \ | ||
| -e 's|@no_upnp@|$(NO_UPNP)|' \ | ||
View
11
depends/config.site.in
| @@ -13,10 +13,10 @@ fi | ||
| if test -z $with_qt_translationdir; then | ||
| with_qt_translationdir=$depends_prefix/translations | ||
| fi | ||
| -if test -z $with_qt_bindir; then | ||
| +if test -z $with_qt_bindir && test -z "@no_qt@"; then | ||
| with_qt_bindir=$depends_prefix/native/bin | ||
| fi | ||
| -if test -z $with_protoc_bindir; then | ||
| +if test -z $with_protoc_bindir && test -z "@no_qt@"; then | ||
| with_protoc_bindir=$depends_prefix/native/bin | ||
| fi | ||
| @@ -53,9 +53,10 @@ PKG_CONFIG="`which pkg-config` --static" | ||
| # These two need to remain exported because pkg-config does not see them | ||
| # otherwise. That means they must be unexported at the end of configure.ac to | ||
| # avoid ruining the cache. Sigh. | ||
| - | ||
| -export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig | ||
| -export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig | ||
| +export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig:$depends_prefix/lib/pkgconfig | ||
| +if test -z "@allow_host_packages@"; then | ||
| + export PKGCONFIG_LIBDIR= | ||
| +fi | ||
| CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS" | ||
| LDFLAGS="-L$depends_prefix/lib $LDFLAGS" | ||
View
6
doc/developer-notes.md
| @@ -28,12 +28,12 @@ tool to clean up patches automatically before submission. | ||
| required when doing so would need changes to significant pieces of existing | ||
| code. | ||
| - Variable and namespace names are all lowercase, and may use `_` to | ||
| - separate words. | ||
| + separate words (snake_case). | ||
| - Class member variables have a `m_` prefix. | ||
| - Global variables have a `g_` prefix. | ||
| - Constant names are all uppercase, and use `_` to separate words. | ||
| - - Class names, function names and method names are CamelCase. Do not prefix | ||
| - class names with `C`. | ||
| + - Class names, function names and method names are UpperCamelCase | ||
| + (PascalCase). Do not prefix class names with `C`. | ||
| - **Miscellaneous** | ||
| - `++i` is preferred over `i++`. | ||
View
4
src/Makefile.am
| @@ -267,6 +267,10 @@ crypto_libbitcoin_crypto_a_SOURCES = \ | ||
| crypto/sha512.cpp \ | ||
| crypto/sha512.h | ||
| +if EXPERIMENTAL_ASM | ||
| +crypto_libbitcoin_crypto_a_SOURCES += crypto/sha256_sse4.cpp | ||
| +endif | ||
| + | ||
| # consensus: shared between all executables that validate any consensus rules. | ||
| libbitcoin_consensus_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) | ||
| libbitcoin_consensus_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) | ||
View
2
src/Makefile.leveldb.include
| @@ -142,7 +142,7 @@ leveldb_libmemenv_a_SOURCES += leveldb/helpers/memenv/memenv.h | ||
| leveldb_libleveldb_sse42_a_CPPFLAGS = $(leveldb_libleveldb_a_CPPFLAGS) | ||
| leveldb_libleveldb_sse42_a_CXXFLAGS = $(leveldb_libleveldb_a_CXXFLAGS) | ||
| -if ENABLE_SSE42 | ||
| +if ENABLE_HWCRC32 | ||
| leveldb_libleveldb_sse42_a_CPPFLAGS += -DLEVELDB_PLATFORM_POSIX_SSE | ||
| leveldb_libleveldb_sse42_a_CXXFLAGS += $(SSE42_CXXFLAGS) | ||
| endif | ||
View
7
src/Makefile.test.include
| @@ -96,12 +96,13 @@ endif | ||
| test_test_bitcoin_SOURCES = $(BITCOIN_TESTS) $(JSON_TEST_FILES) $(RAW_TEST_FILES) | ||
| test_test_bitcoin_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) -I$(builddir)/test/ $(TESTDEFS) $(EVENT_CFLAGS) | ||
| -test_test_bitcoin_LDADD = $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) \ | ||
| - $(LIBLEVELDB) $(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1) $(EVENT_LIBS) $(EVENT_PTHREADS_LIBS) | ||
| -test_test_bitcoin_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) | ||
| +test_test_bitcoin_LDADD = | ||
| if ENABLE_WALLET | ||
| test_test_bitcoin_LDADD += $(LIBBITCOIN_WALLET) | ||
| endif | ||
| +test_test_bitcoin_LDADD += $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) \ | ||
| + $(LIBLEVELDB) $(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1) $(EVENT_LIBS) $(EVENT_PTHREADS_LIBS) | ||
| +test_test_bitcoin_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) | ||
| test_test_bitcoin_LDADD += $(LIBBITCOIN_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) | ||
| test_test_bitcoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static | ||
View
12
src/base58.cpp
| @@ -110,7 +110,7 @@ std::string EncodeBase58(const unsigned char* pbegin, const unsigned char* pend) | ||
| std::string EncodeBase58(const std::vector<unsigned char>& vch) | ||
| { | ||
| - return EncodeBase58(&vch[0], &vch[0] + vch.size()); | ||
| + return EncodeBase58(vch.data(), vch.data() + vch.size()); | ||
| } | ||
| bool DecodeBase58(const std::string& str, std::vector<unsigned char>& vchRet) | ||
| @@ -160,7 +160,7 @@ void CBase58Data::SetData(const std::vector<unsigned char>& vchVersionIn, const | ||
| vchVersion = vchVersionIn; | ||
| vchData.resize(nSize); | ||
| if (!vchData.empty()) | ||
| - memcpy(&vchData[0], pdata, nSize); | ||
| + memcpy(vchData.data(), pdata, nSize); | ||
| } | ||
| void CBase58Data::SetData(const std::vector<unsigned char>& vchVersionIn, const unsigned char* pbegin, const unsigned char* pend) | ||
| @@ -180,8 +180,8 @@ bool CBase58Data::SetString(const char* psz, unsigned int nVersionBytes) | ||
| vchVersion.assign(vchTemp.begin(), vchTemp.begin() + nVersionBytes); | ||
| vchData.resize(vchTemp.size() - nVersionBytes); | ||
| if (!vchData.empty()) | ||
| - memcpy(&vchData[0], &vchTemp[nVersionBytes], vchData.size()); | ||
| - memory_cleanse(&vchTemp[0], vchTemp.size()); | ||
| + memcpy(vchData.data(), vchTemp.data() + nVersionBytes, vchData.size()); | ||
| + memory_cleanse(vchTemp.data(), vchTemp.size()); | ||
| return true; | ||
| } | ||
| @@ -262,7 +262,7 @@ CTxDestination CBitcoinAddress::Get() const | ||
| if (!IsValid()) | ||
| return CNoDestination(); | ||
| uint160 id; | ||
| - memcpy(&id, &vchData[0], 20); | ||
| + memcpy(&id, vchData.data(), 20); | ||
| if (vchVersion == Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS)) | ||
| return CKeyID(id); | ||
| else if (vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS)) | ||
| @@ -276,7 +276,7 @@ bool CBitcoinAddress::GetKeyID(CKeyID& keyID) const | ||
| if (!IsValid() || vchVersion != Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS)) | ||
| return false; | ||
| uint160 id; | ||
| - memcpy(&id, &vchData[0], 20); | ||
| + memcpy(&id, vchData.data(), 20); | ||
| keyID = CKeyID(id); | ||
| return true; | ||
| } | ||
View
2
src/base58.h
| @@ -148,7 +148,7 @@ template<typename K, int Size, CChainParams::Base58Type Type> class CBitcoinExtK | ||
| K ret; | ||
| if (vchData.size() == Size) { | ||
| // If base58 encoded data does not hold an ext key, return a !IsValid() key | ||
| - ret.Decode(&vchData[0]); | ||
| + ret.Decode(vchData.data()); | ||
| } | ||
| return ret; | ||
| } | ||
View
27
src/bench/base58.cpp
| @@ -7,34 +7,37 @@ | ||
| #include "validation.h" | ||
| #include "base58.h" | ||
| +#include <array> | ||
| #include <vector> | ||
| #include <string> | ||
| static void Base58Encode(benchmark::State& state) | ||
| { | ||
| - unsigned char buff[32] = { | ||
| - 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147, | ||
| - 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90, | ||
| - 200, 24 | ||
| + static const std::array<unsigned char, 32> buff = { | ||
| + { | ||
| + 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147, | ||
| + 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90, | ||
| + 200, 24 | ||
| + } | ||
| }; | ||
| - unsigned char* b = buff; | ||
| while (state.KeepRunning()) { | ||
| - EncodeBase58(b, b + 32); | ||
| + EncodeBase58(buff.begin(), buff.end()); | ||
| } | ||
| } | ||
| static void Base58CheckEncode(benchmark::State& state) | ||
| { | ||
| - unsigned char buff[32] = { | ||
| - 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147, | ||
| - 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90, | ||
| - 200, 24 | ||
| + static const std::array<unsigned char, 32> buff = { | ||
| + { | ||
| + 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147, | ||
| + 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90, | ||
| + 200, 24 | ||
| + } | ||
| }; | ||
| - unsigned char* b = buff; | ||
| std::vector<unsigned char> vch; | ||
| - vch.assign(b, b + 32); | ||
| + vch.assign(buff.begin(), buff.end()); | ||
| while (state.KeepRunning()) { | ||
| EncodeBase58Check(vch); | ||
| } | ||
Oops, something went wrong.
Showing you all comments on commits in this comparison.
|
As suggested in another PR, the first condition can be removed since |