Skip to content

Conversation

@codablock
Copy link

Continuation of #1770

laanwj and others added 30 commits December 21, 2017 17:30
7db0ecb Test for signing messages (Andrew Chow)
f90efbf Create signmessagewithprivkey rpc (Andrew)
…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)
…hmark

1953c40 More efficient bitsliced rolling Bloom filter (Pieter Wuille)
aa62b68 Benchmark rolling bloom filter (Pieter Wuille)
…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)
fad3366 [qa] pull-tester: Adjust comment (MarcoFalke)
fafb33c [qa] Stop other nodes, even when one fails to stop (MarcoFalke)
2222dae [qa] Update README.md (MarcoFalke)
fabbf6b [qa] Refactor test_framework and pull tester (MarcoFalke)
3902a29 Qt: Delay user confirmation of send (Tyler Hardin)
…ResetBlockFailureFlags

657e07e Rename ReconsiderBlock func to reflect real behavior (instagibbs)
addb9d2 Remove state arg from ReconsiderBlock (instagibbs)
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)
ccccc59 [qa] Add option --portseed to test_framework (MarcoFalke)
fa494de [qa] pull-tester: Run rpc test in parallel (MarcoFalke)
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)
fa83a5d [qa] wallet: Temporarily disable salvagewallet test (MarcoFalke)
fadd048 [doc] Link to clang-format in the developer notes (MarcoFalke)
fa72f7d [doc] Remove outdated line from listunspent RPC help, fix typo (MarcoFalke)
ac40ed7 Increase timeout waiting for pruned blk00000.dat (error10)
a68ec21 Use SipHash-2-4 for address relay selection (Pieter Wuille)
8cc9cfe Switch CTxMempool::mapTx to use a hash index for txids (Pieter Wuille)
382c871 Use SipHash-2-4 for CCoinsCache index (Pieter Wuille)
0b1295b Add SipHash-2-4 primitives to hash (Pieter Wuille)
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)
fad68f7 [qa] Reduce node count for some tests (MarcoFalke)
fac9349 [qa] Remove hardcoded "4 nodes" from test_framework (MarcoFalke)
laanwj and others added 7 commits December 21, 2017 18:50
…t loop.

63ff57d Avoid integer division in the benchmark inner-most loop. (Gregory Maxwell)
1a8c4d5 [Doc] Add benchmarking notes (fanquake)
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.
Copy link

@UdjinM6 UdjinM6 left a 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_stderr introduced I think it makes sense to at least return -createwalletbackups=1 in some test(s) with redirect_stderr=True, say in wallet-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\"") +
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be dashified


CBlockIndex* pindex = (*mi).second;
LogPrintf("ReprocessBlocks -- %s\n", (*it).first.ToString());
LogPrintf("ResetBlockFailureFlags -- %s\n", (*it).first.ToString());
Copy link

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);
Copy link

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.
Copy link

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));
Copy link

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

Benchmarking
============

Bitcoin Core has an internal benchmarking framework, with benchmarks
Copy link

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.
Copy link

@UdjinM6 UdjinM6 Dec 22, 2017

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)

@codablock
Copy link
Author

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:
#1805
#1806

@codablock codablock force-pushed the pr_backport_bitcoin_0.13-4 branch 4 times, most recently from a684455 to ef90ac1 Compare December 22, 2017 07:19
For some reason, subprocess.STDOUT is completely ignored when run on
Travis. Using sys.stdout however works as expected.
@codablock codablock force-pushed the pr_backport_bitcoin_0.13-4 branch from 8e23840 to 475dbd4 Compare December 22, 2017 07:52
Copy link

@UdjinM6 UdjinM6 left a 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 👍

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`
Copy link

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 👍

@UdjinM6
Copy link

UdjinM6 commented Dec 22, 2017

Slightly tested, ACK

@UdjinM6 UdjinM6 added this to the 12.3 milestone Dec 22, 2017
@UdjinM6 UdjinM6 merged commit af1233c into dashpay:develop Dec 22, 2017
@codablock codablock deleted the pr_backport_bitcoin_0.13-4 branch December 22, 2017 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants