Skip to content
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.14 - Part 6 #1852

Merged
merged 48 commits into from
Jan 16, 2018

Conversation

codablock
Copy link

Continuation of #1770

laanwj and others added 30 commits January 15, 2018 06:13
…able

ff6639b Do not shadow local variable (Pavel Janík)
…th datadir

e760b30 qt: Use correct conversion function for boost::path datadir (Wladimir J. van der Laan)
e89614b [qa] Add more helpful RPC timeout message (Russell Yanofsky)
8463aaa [qa] Increase wallet-dump RPC timeout (Russell Yanofsky)
… at process-time

fe1dc62 Hash P2P messages as they are received instead of at process-time (Matt Corallo)
fa8278e test: Fix test_random includes (MarcoFalke)
fab0f07 [qa] rpc-tests: Apply random offset to portseed (MarcoFalke)
fae19aa [qa] test_framework: Exit when tmpdir exists (MarcoFalke)
…tions

d59a518 Use fixed preallocation instead of costly GetSerializeSize (Pieter Wuille)
25a211a Add optimized CSizeComputer serializers (Pieter Wuille)
a2929a2 Make CSerAction's ForRead() constexpr (Pieter Wuille)
a603925 Avoid -Wshadow errors (Pieter Wuille)
5284721 Get rid of nType and nVersion (Pieter Wuille)
657e05a Make GetSerializeSize a wrapper on top of CSizeComputer (Pieter Wuille)
fad9b66 Make nType and nVersion private and sometimes const (Pieter Wuille)
c2c5d42 Make streams' read and write return void (Pieter Wuille)
50e8a9c Remove unused ReadVersion and WriteVersion (Pieter Wuille)
Also remove bogus "nVersion = this->nVersion" assignments. These were
leftovers from old times.
359bac7 Add notes about variable names and shadowing (Pavel Janík)
fd5654c Check and enable -Wshadow by default. (Pavel Janík)
This reverts commit fd5654c.

This is still causing too many warnings for some compiler combinations,
forget it for now.
d8edf03 Remove unused var UNLIKELY_PCT from fees.h (fanquake)
…ages

e5d682f Fix mininode version message format (jnewbery)
bdcba6d Initialize variable to prevent compiler warning (Pavel Janík)
a79f864 fix getnettotals RPC description about timemillis. (Masahiko Hyuga)
fa97ccb [qa] util: Rework sync_*() (MarcoFalke)
fac1141 [qa] preciousblock: Use assert_equal and BitcoinTestFramework.__init__ (MarcoFalke)
…eckTransaction

e2b3fb3 Optimize vInOutPoints insertion a bit (Matt Corallo)
eecffe5 Remove redundant duplicate-input check from CheckTransaction (Matt Corallo)
b2e178a Add deserialize + CheckBlock benchmarks, and a full block hex (Matt Corallo)
7d1de30 Mention reporting security issues responsibly (Pavel Janík)
…hadow compiler warning

bf49f10 Use better name for local variable to prevent -Wshadow compiler warning (Pavel Janík)
fa42e4a [qt] Make network disabled icon 50% opaque (MarcoFalke)
7943b13 [qa] Avoid 2 list comprehensions in sync_blocks (Russell Yanofsky)
05e57cc [qa] Fix sync_blocks timeout argument (Russell Yanofsky)
fd6bb70 [qa] Improve sync_blocks error messages. (Russell Yanofsky)
…ail cleanly

b74ff5c Bugfix: Correctly replace generated headers and fail cleanly (Luke Dashjr)
20c3215 credit values are CAmount (Gregory Sanders)
fa80ef8 [qa] proxy_test: Calculate hardcoded port numbers instead (MarcoFalke)
… atomic

079142b fNetworkActive is not protected by a lock, use an atomic (Jonas Schnelli)
79f755d Unset fImporting for loading mempool (Alex Morcos)
…error message

307acdd [qa] add assert_raises_message to check specific error message (mrbandrews)
d8274bc Add compile and link options echo to configure (Jonas Schnelli)
12519bf test: Fix use-after-free in scheduler tests (Wladimir J. van der Laan)
b4e4ba4 Introduce convenience type CTransactionRef (Pieter Wuille)
1662b43 Make CBlock::vtx a vector of shared_ptr<CTransaction> (Pieter Wuille)
da60506 Add deserializing constructors to CTransaction and CMutableTransaction (Pieter Wuille)
0e85204 Add serialization for unique_ptr and shared_ptr (Pieter Wuille)
laanwj and others added 15 commits January 15, 2018 06:14
…sion handshake is complete

4662553 net: don't send feefilter messages before the version handshake is complete (Cory Fields)
fa7cc5a Set DEFAULT_LIMITFREERELAY = 0 kB/minute (MarcoFalke)
…ssing

037159c Remove block-request logic from INV message processing (Matt Corallo)
3451203 [qa] Respond to getheaders and do not assume a getdata on inv (Matt Corallo)
d768f15 [qa] Make comptool push blocks instead of relying on inv-fetch (mrbandrews)
4231032 [Qt] Clean up and fix coincontrol tree widget handling (Wladimir J. van der Laan)
76af4eb [Qt] fix coincontrol sort issue (Jonas Schnelli)
…teration count

e0a9cb2 bench: Fix subtle counting issue when rescaling iteration count (Wladimir J. van der Laan)
240189b add testcases for getrawtransaction (John Newbery)
ce2bb23 getrawtransaction should take a bool for verbose (jnewbery)
2e44893 Move -salvagewallet, -zap(wtx) to where they belong (Jonas Schnelli)
4512550 Remove unnecessary calls to CheckFinalTx (Jonas Schnelli)
a33b169 Do not fully sort all nodes for addr relay (Pieter Wuille)
918b126 fix CreateTransaction error messages (instagibbs)
69bc8e7 [Doc] Move comments above bash command (Amir Abrams)
Bitcoin bitcoin#9145 made the icon 50% opaque, copy that to all themes.
1. Missing TX fees in some tests. No-fee transactions stopped working because
   the free TX relay was set to 0
2. rawtransaction tests used "hash" instead of "txid". "hash" is only valid
   if SegWit changes are included.
@@ -255,14 +255,18 @@ def __init__(self, num_tests_parallel, test_list=None, flags=None):
self.test_list = test_list
self.flags = flags
self.num_running = 0
# In case there is a graveyard of zombie bitcoinds, we can apply a
Copy link

Choose a reason for hiding this comment

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

Should we dashify bitcoinds here?

Copy link
Author

@codablock codablock Jan 15, 2018

Choose a reason for hiding this comment

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

We normally don't Dashify source comments. Only user facing strings and documentation is Dashified.

@gladcow
Copy link

gladcow commented Jan 15, 2018

utACK

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.

See inline comments.

Also, it looks like we missed few PRs for wallet-dump.py, including its creation. Was this intentional (i.e. they are coming in future PRs) or by a mistake?

@@ -8,7 +8,9 @@
#include "chain.h"
#include "chainparams.h"
#include "clientversion.h"
namespace alert_tests {
Copy link

Choose a reason for hiding this comment

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

This looks a bit awkward imo, it's probably better to just remove alert_tests:: in code below.

Copy link
Author

Choose a reason for hiding this comment

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

Agree. It's this way because I aligned it with https://github.com/bitcoin/bitcoin/blob/master/src/bench/checkblock.cpp#L12
But I'll remove the namespace now.

@@ -57,7 +57,7 @@ static CBlock CreateDevNetGenesisBlock(const uint256 &prevBlockHash, const std::
genesis.nBits = nBits;
genesis.nNonce = nNonce;
genesis.nVersion = nVersion;
genesis.vtx.push_back(txNew);
genesis.vtx.push_back(MakeTransactionRef(txNew));
Copy link

Choose a reason for hiding this comment

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

nit: add std::move for consistency


General bitcoin questions and/or support requests and are best directed to the [Bitcoin StackExchange](https://bitcoin.stackexchange.com).
General bitcoin questions and/or support requests and are best directed to the [Dashpay Reddit](https://www.reddit.com/r/dashpay/).
Copy link

Choose a reason for hiding this comment

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

s/bitcoin/Dash/

@@ -1,10 +1,10 @@
<!--- Remove sections that do not apply -->

This issue tracker is only for technical issues related to bitcoin-core.
This issue tracker is only for technical issues related to dash-core.
Copy link

Choose a reason for hiding this comment

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

s/dash-core/Dash Core/

@@ -23,7 +23,7 @@ Tell us what happens instead
### Screenshots.
If the issue is related to the GUI, screenshots can be added to this issue via drag & drop.

### What version of bitcoin-core are you using?
### What version of dash-core are you using?
Copy link

Choose a reason for hiding this comment

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

s/dash-core/Dash Core/

@UdjinM6 UdjinM6 added this to the 12.3 milestone Jan 15, 2018
@codablock
Copy link
Author

wallet-dump.py is on my extra list for HD wallet related PRs. I still have to figure out where our HD implementation came from and why it differs so much from what we have in Bitcoin. It looks like it had the same origins at some point but then diverged quite a lot.

@codablock
Copy link
Author

Pushed review fixes

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.

👍

slightly tested ACK

@UdjinM6 UdjinM6 merged commit 18cd148 into dashpay:develop Jan 16, 2018
@codablock codablock deleted the pr_backport_bitcoin_0.14-6 branch January 16, 2018 13:37
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