-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Backport missing PRs from Bitcoin 0.13 - Part 4 #1804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport missing PRs from Bitcoin 0.13 - Part 4 #1804
Conversation
…work items f0188f9 http: use std::move to move HTTPRequest into HTTPWorkItem (Wladimir J. van der Laan) 37b2137 http: Change boost::scoped_ptr to std::unique_ptr in HTTPRequest (Wladimir J. van der Laan) f97b410 http: Add log message when work queue is full (Wladimir J. van der Laan) 091d6e0 http: Do a pending c++11 simplification (Wladimir J. van der Laan)
…nv/mempool handling b559914 Move bloom and feerate filtering to just prior to tx sending. (Gregory Maxwell) 4578215 Return mempool queries in dependency order (Pieter Wuille) ed70683 Handle mempool requests in send loop, subject to trickle (Pieter Wuille) dc13dcd Split up and optimize transaction and block inv queues (Pieter Wuille) f2d3ba7 Eliminate TX trickle bypass, sort TX invs for privacy and priority. (Gregory Maxwell)
Bitcoin bitcoin#7840 has split the INVs to send into block and TX and completely ignores non-tx/non-block items in PushInventory. This is fine for Bitcoin, as they only use it for blocks and TXs, but we also have a lot of MN related messages which also need to be relayed.
e53e7c5 don't run ThreadMessageHandler at lowered priority (Kaz Wesley)
fa389d4 [qa] Switch to py3 (MarcoFalke)
…ix typo b3d18ba doc: Fedora build requirements, add gcc-c++ and fix typo (Warren Togami)
…ing.md b06f6a9 Fixed invalid example paths in gitian-building.md (JeremyRand)
…m UpdateCoins. c8b9248 Remove obsolete reference to CValidationState from UpdateCoins. (21E14)
Instead of fully backporting Bitcoin bitcoin#7958, we make true the default value for fThread. Otherwise the AlertNotify test case will fail as it expects the alerts to be processed synchronously.
65fee8e test: Revert fatal-ness of missing python-zmq (Wladimir J. van der Laan)
5ea4508 Autofind rpc tests --srcdir (Jonas Schnelli)
3902a29 Qt: Delay user confirmation of send (Tyler Hardin)
3e2c946 init: Move berkeleydb version reporting to wallet (Wladimir J. van der Laan)
…:WriteToDisk 0fd5997 Fix insanity of CWalletDB::WriteTx and CWalletTx::WriteToDisk (Patrick Strateman)
32114dd bench: Add crypto hash benchmarks (Wladimir J. van der Laan)
fad60b3 [qa] Fix bip9-softforks blockstore issue (MarcoFalke)
…down should be type sig_atomic_t 3262316 fReopenDebugLog and fRequestShutdown should be type sig_atomic_t (Chirag Davé)
…on/AcceptToMemoryPool. d87b198 Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool. (Gregory Maxwell)
fe80102 changing "(tests are) automatically run" to correspond to the earlier instance of "run automatically (on the build server)" (Matthew English)
…ns better. fb26bf0 CAddrMan::Deserialize handle corrupt serializations better. (Patrick Strateman)
…d less unnecessarily scary bf9266e Use Socks5ErrorString() to decode error responses from socks proxy. (Warren Togami) 94fd1d8 Make Socks5() InterruptibleRecv() timeout/failures informative. (Warren Togami) 0d9af79 SOCKS5 connecting and connected messages with -debug=net. (Warren Togami) 00678bd Make failures to connect via Socks5() more informative and less unnecessarily scary. (Warren Togami)
…t loop. 63ff57d Avoid integer division in the benchmark inner-most loop. (Gregory Maxwell)
1a8c4d5 [Doc] Add benchmarking notes (fanquake)
Throws exception otherwise.
It was always complaining about failed backups due to dashd restarting too fast. Additionally, since the recent RPC test framework backports, all tests are expected to print NOTHING to stderr, otherwise they fail.
Also call it with redirect_stderr=True in all cases were non-critical warnings are expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :)
Some comments:
- with
redirect_stderrintroduced I think it makes sense to at least return-createwalletbackups=1in some test(s) withredirect_stderr=True, say inwallet-hd.py, or to write a small new one to make sure that it actually complains as expected; - travis fails with
$ if [ "$PYZMQ" = "true" ]; then pip3 install pyzmq --user ; fi
The program 'pip3' is currently not installed. To run 'pip3' please ask your administrator to install the package 'python3-pip'
- see inline comments below
src/rpc/misc.cpp
Outdated
| "\nCreate the signature\n" | ||
| + HelpExampleCli("signmessagewithprivkey", "\"privkey\" \"my message\"") + | ||
| "\nVerify the signature\n" | ||
| + HelpExampleCli("verifymessage", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ\" \"signature\" \"my message\"") + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be dashified
src/validation.cpp
Outdated
|
|
||
| CBlockIndex* pindex = (*mi).second; | ||
| LogPrintf("ReprocessBlocks -- %s\n", (*it).first.ToString()); | ||
| LogPrintf("ResetBlockFailureFlags -- %s\n", (*it).first.ToString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
| transactionView->setSelectionMode(QAbstractItemView::ExtendedSelection); | ||
| transactionView->setSortingEnabled(true); | ||
| transactionView->sortByColumn(TransactionTableModel::Status, Qt::DescendingOrder); | ||
| transactionView->sortByColumn(TransactionTableModel::Date, Qt::DescendingOrder); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To match 8014 the same fix should be applied to the filter in OverviewPage::SetupTransactionList
CONTRIBUTING.md
Outdated
| ------------------------- | ||
|
|
||
| The following applies to code changes to the Dash Core project (and related projects such as libsecp256k1), and is not to be confused with overall Dash Network Protocol consensus changes. | ||
| The following applies to code changes to the Dash Core project (and related projects such as libsecp256k1), and is not to be confused with overall Bitcoin Network Protocol consensus changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this piece should be reverted
| RandAddSeedPerfmon(); | ||
| do { | ||
| GetRandBytes(vch, sizeof(vch)); | ||
| GetStrongRandBytes(vch, sizeof(vch)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could probably be a good idea to use GetStrongRandBytes in CMnemonic::Generate too
doc/benchmarking.md
Outdated
| Benchmarking | ||
| ============ | ||
|
|
||
| Bitcoin Core has an internal benchmarking framework, with benchmarks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be dashified
| ============ | ||
|
|
||
| Bitcoin Core has an internal benchmarking framework, with benchmarks | ||
| for cryptographic algorithms such as SHA1, SHA256, SHA512 and RIPEMD160. As well as the rolling bloom filter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note/TODO: maybe we should add a benchmark for X11 as well (in a separate PR)
b46920e to
249167a
Compare
…pired dddd04f [qa] Refactor RPCTestHandler to prevent TimeoutExpired (MarcoFalke)
|
Pushed fixes. Build is still failing for various reasons. One was a timeout due to stdout/stderr buffers running full, added Bitcoin bitcoin#8750 to fix this. Awaiting build result. Another reason is that for some reason redirect_stderr is sometimes completely ignored, making the tests still fail...investigating. I created 2 issues to not forget about the TODOs: |
a684455 to
ef90ac1
Compare
For some reason, subprocess.STDOUT is completely ignored when run on Travis. Using sys.stdout however works as expected.
8e23840 to
475dbd4
Compare
UdjinM6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small issue with dashifying otherwise 👍
doc/benchmarking.md
Outdated
| for cryptographic algorithms such as SHA1, SHA256, SHA512 and RIPEMD160. As well as the rolling bloom filter. | ||
|
|
||
| After compiling dash-core, the benchmarks can be run with: | ||
| `src/bench/bench_bitcoin` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed one, should be src/bench/bench_dash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed 👍
|
Slightly tested, ACK |
Continuation of #1770