Skip to content

Conversation

@codablock
Copy link

Continuation of #1691

This PR contains the required backports from Bitcoin 0.15, excluding the actual per-utxo changes (bitcoin#10195).

The next batch will then actually include the per-utxo backport and fixes which came after the original PR.

laanwj and others added 7 commits October 24, 2017 13:53
cfce581 [LevelDB] Plug leveldb logs to bitcoin logs (NicolasDorier)

Tree-SHA512: e40a2c2644c269bb2da7be04aec39ff64ad350d508391750a757955ed3f9d96998775d01e04b282a75b36d776c3960a345cc7b6f1466e6ae167d27518bf4baee
7228ce8 Compensate for memory peak at flush time (Pieter Wuille)

Tree-SHA512: 97e9848410fab061402c85d8440c54a50dd8a0203b2ea194013ea116700a6dc1b4b26b8c5f9c9c68c1f5c6b935c5d6c737437c1911b003d9ff5445c570cd449d
1b55e07 Make threshold for flushing more conservative. (Alex Morcos)
f33afd3 Lower default memory footprint slightly (Alex Morcos)
5b95a19 Make pcoinsTip memory calculations consistent (Alex Morcos)

Tree-SHA512: d0061138596cf89008397b8729d9b25293938b1ad454cc99a6fe2f6210e94f76dfa78a8f0fce4c1ba3efec4e742a9c1a3ab26676a4a8346d3e7c3055d032669b
db994b2 Simplify DisconnectBlock arguments/return value (Pieter Wuille)

Tree-SHA512: 62ce1a85bde2a5baffb9173ed28f2d8008200ecf8b09332122f1516fe68b33b9d7223cc1c2fffe804e38f767874c6353b76bd483e8ad7d48c4a5e80d6b683039
…or gettxoutsetinfo.

513da90 Add test for empty chain and reorg consistency for gettxoutsetinfo. (Gregory Maxwell)
822755a Fix: make CCoinsViewDbCursor::Seek work for missing keys (Pieter Wuille)

Tree-SHA512: e549921e8b8f599bf61ebe0ee7ef1d2f474043723d633e24665fe434b996a98e039612de8a1c2cd16b63f154943ff5ea1c1935e9561cfb813a00d47d926d0b22
@UdjinM6
Copy link

UdjinM6 commented Oct 24, 2017

Tests failed: https://travis-ci.org/dashpay/dash/jobs/292038819#L3208
Looks like bitcoin#9768 is missing

@OlegGirko
Copy link

The Bitcoin PR bitcoin#9768 is quite intrusive.
Maybe, it would be better to just replace two instances of self.log.info with print for now.
Like this:

--- a/qa/rpc-tests/blockchain.py
+++ b/qa/rpc-tests/blockchain.py
@@ -59,7 +59,7 @@ class BlockchainTest(BitcoinTestFramework):
         assert_equal(len(res[u'bestblock']), 64)
         assert_equal(len(res[u'hash_serialized']), 64)
 
-        self.log.info("Test that gettxoutsetinfo() works for blockchain with just the genesis block")
+        print("Test that gettxoutsetinfo() works for blockchain with just the genesis block")
         b1hash = node.getblockhash(1)
         node.invalidateblock(b1hash)
 
@@ -71,7 +71,7 @@ class BlockchainTest(BitcoinTestFramework):
         assert_equal(res2['bestblock'], node.getblockhash(0))
         assert_equal(len(res2['hash_serialized']), 64)
 
-        self.log.info("Test that gettxoutsetinfo() returns the same result after invalidate/reconsider block")
+        print("Test that gettxoutsetinfo() returns the same result after invalidate/reconsider block")
         node.reconsiderblock(b1hash)
 
         res3 = node.gettxoutsetinfo()

I've tested build with this change on Fedora 26 with GCC 7.2.1 using depends. All functional tests pass successfully, including extended ones (except maxuploadtarget that doesn't work anyway).

@UdjinM6 UdjinM6 added this to the 12.2.1 milestone Oct 26, 2017
self.log will only be available in later backports. Use print until these
are backported.
@codablock
Copy link
Author

Applied the fix suggested by Oleg.

I was wondering why this was not failing when running tests locally...Simply because I only ran them with all per-utxo patches applied, including a similar fix I did in the later backports :D

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.

utACK

@UdjinM6 UdjinM6 merged commit ffbe92b into dashpay:develop Oct 26, 2017
@codablock codablock deleted the backport_bitcoin_perutxo_0.15_1 branch September 14, 2018 12:48
@codablock codablock mentioned this pull request May 27, 2019
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