< fanquake> Has anyone benched #9039 ? Sipa posted a 1% speedup, but I'm seeing nearly 10%. Wondering if I'm missing something..
< gribble> https://github.com/bitcoin/bitcoin/issues/9039 | Various serialization simplifcations and optimizations by sipa · Pull Request #9039 · bitcoin/bitcoin · GitHub
< sipa> fanquake: highly dependent on your system
< sipa> i saw 5% in cpu reduction in the disk flushing code
< fanquake> Ok, I'll post some numbers shortly.
< sipa> i would estimate that this effect is most visible if you havr fast disk, slow cou, and low dbcache
< sipa> *slow cpu
< sipa> but yes, please post numbers
< sipa> and thank you
< fanquake> If anyone want's to chime in on #8639 with any minimum required versions/more info it would be appreciated. When I get a chance I'll turn the tables into some proper documentation. Which will partially fix #8923
< gribble> https://github.com/bitcoin/bitcoin/issues/8639 | CVEs in depends packages · Issue #8639 · bitcoin/bitcoin · GitHub
< gribble> https://github.com/bitcoin/bitcoin/issues/8923 | Need documentation on minimum supported dependency versions · Issue #8923 · bitcoin/bitcoin · GitHub
< fanquake> #8844 Could use some concept ACK/NACKs, been open for > a month now.
< gribble> https://github.com/bitcoin/bitcoin/issues/8844 | Change sigops cost to sigops weight by jnewbery · Pull Request #8844 · bitcoin/bitcoin · GitHub
< GitHub70> [bitcoin] laanwj pushed 4 new commits to master: https://github.com/bitcoin/bitcoin/compare/05009935f9ac...7b22e5001a3d
< GitHub70> bitcoin/master 21b8f3d Kaz Wesley: LockedPool: test handling of invalid allocations...
< GitHub70> bitcoin/master 0b59f80 Kaz Wesley: LockedPool: fix explosion for illegal-sized alloc...
< GitHub70> bitcoin/master b3ddc5e Kaz Wesley: LockedPool: avoid quadratic-time allocation...
< GitHub111> [bitcoin] laanwj closed pull request #9070: Lockedpool fixes (master...lockedpool) https://github.com/bitcoin/bitcoin/pull/9070
< GitHub190> [bitcoin] laanwj pushed 8 new commits to master: https://github.com/bitcoin/bitcoin/compare/7b22e5001a3d...c8c572f8f1ea
< GitHub190> bitcoin/master b98c14c Cory Fields: serialization: teach serializers variadics...
< GitHub190> bitcoin/master 3e32cd0 Cory Fields: connman is in charge of pushing messages...
< GitHub190> bitcoin/master ea33268 Cory Fields: net: switch all callers to connman for pushing messages...
< GitHub0> [bitcoin] laanwj closed pull request #8708: net: have CConnman handle message sending (master...connman-send) https://github.com/bitcoin/bitcoin/pull/8708
< MarcoFalke> I feel like we should change the releases to only contain a link to the release notes and not the full release notes copied: https://github.com/bitcoin/bitcoin/releases
<@wumpus> why? redundancy is pretty good for distributed projects? :-)
< MarcoFalke> There is no redundancy when the link point to github as well.
<@wumpus> ah you mean linking to the release notes on github - yes that'd make sense
<@wumpus> true
< MarcoFalke> It takes 10 minutes to scroll though the releases page
<@wumpus> I'm ok with replacing them with a link, on the other hand sipa did all this work to put them in in the first place, I'm not sure it's worth the trouble re-doing it another way
< MarcoFalke> Also, no one will notice if they are changed by someone. They are not signed and can not be verified
< MarcoFalke> Should be a matter of less than 10 minutes. I am happy to do it if sipa is ok with it.
<@wumpus> also updating that page should probably be part of the release process
< GitHub68> [bitcoin] MarcoFalke opened pull request #9093: [doc] release-process: Mention GitHub release and archived release notes (master...Mf1611-docRel) https://github.com/bitcoin/bitcoin/pull/9093
< GitHub89> [bitcoin] laanwj pushed 3 new commits to master: https://github.com/bitcoin/bitcoin/compare/c8c572f8f1ea...5fa7b07565d2
< GitHub89> bitcoin/master 159ed95 Jiaxing Wang: base58: Improve DecodeBase58 performance....
< GitHub89> bitcoin/master e892dc1 Jiaxing Wang: Use prefix operator in for loop of DecodeBase58.
< GitHub89> bitcoin/master 5fa7b07 Wladimir J. van der Laan: Merge #8736: base58: Improve DecodeBase58 performance....
< GitHub141> [bitcoin] laanwj closed pull request #8736: base58: Improve DecodeBase58 performance. (master...speedup-decodebase58) https://github.com/bitcoin/bitcoin/pull/8736
< GitHub10> [bitcoin] laanwj opened pull request #9094: qt: Use correct conversion function for boost::path datadir (master...2016_11_datadir_in_console) https://github.com/bitcoin/bitcoin/pull/9094
< btcdrak> luke-jr: I think Andreas has a point https://github.com/bitcoin/bips/pull/472#issuecomment-258794458
< GitHub154> [bitcoin] laanwj closed pull request #8158: Simplify calls to retrieve credit and balance (master...enhancement/unification-wallet-balance) https://github.com/bitcoin/bitcoin/pull/8158
< GitHub181> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/5fa7b07565d2...44f2df613f23
< GitHub181> bitcoin/master 4b04e32 isle2983: [copyright] copyright header style uniform...
< GitHub181> bitcoin/master 44f2df6 Wladimir J. van der Laan: Merge #8675: Make copyright header lines uniform...
< GitHub151> [bitcoin] laanwj closed pull request #8675: Make copyright header lines uniform (master...copyright-made-uniform) https://github.com/bitcoin/bitcoin/pull/8675
< GitHub23> [bitcoin] MarcoFalke pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/44f2df613f23...2b799ae9e1e0
< GitHub23> bitcoin/master 66ca6cd S. Matthew English: Enforcing consistency, 'gitian' to 'Gitian'...
< GitHub23> bitcoin/master 2b799ae MarcoFalke: Merge #9083: Enforcing consistency, 'gitian' to 'Gitian'...
< GitHub179> [bitcoin] MarcoFalke closed pull request #9083: Enforcing consistency, 'gitian' to 'Gitian' (master...patch-9) https://github.com/bitcoin/bitcoin/pull/9083
< GitHub3> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/2b799ae9e1e0...2fae5b93468c
< GitHub3> bitcoin/master faead5e MarcoFalke: [doc] release-process: Mention GitHub release and archived release notes
< GitHub3> bitcoin/master 2fae5b9 Wladimir J. van der Laan: Merge #9093: [doc] release-process: Mention GitHub release and archived release notes...
< GitHub31> [bitcoin] laanwj closed pull request #9093: [doc] release-process: Mention GitHub release and archived release notes (master...Mf1611-docRel) https://github.com/bitcoin/bitcoin/pull/9093
< GitHub126> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/2fae5b93468c...078900df75f1
< GitHub126> bitcoin/master 1ee6f91 nomnombtc: new var DIST_CONTRIB adds useful things for packagers from contrib/ to EXTRA_DIST
< GitHub126> bitcoin/master 078900d Wladimir J. van der Laan: Merge #8568: new var DIST_CONTRIB adds useful things for packagers from contrib...
< bitcoin-git> [bitcoin] laanwj closed pull request #8568: new var DIST_CONTRIB adds useful things for packagers from contrib (master...DIST_CONTRIB) https://github.com/bitcoin/bitcoin/pull/8568
< gribble> https://github.com/bitcoin/bitcoin/issues/8568 | new var DIST_CONTRIB adds useful things for packagers from contrib by nomnombtc · Pull Request #8568 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/078900df75f1...c113a651f1f5
< bitcoin-git> bitcoin/master d32036a Gregory Maxwell: Use RelevantServices instead of node_network in AttemptToEvict....
< bitcoin-git> bitcoin/master c113a65 Wladimir J. van der Laan: Merge #9052: Use RelevantServices instead of node_network in AttemptToEvict....
< gribble> https://github.com/bitcoin/bitcoin/issues/9052 | Use RelevantServices instead of node_network in AttemptToEvict. by gmaxwell · Pull Request #9052 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj closed pull request #9052: Use RelevantServices instead of node_network in AttemptToEvict. (master...prefer_relevant2) https://github.com/bitcoin/bitcoin/pull/9052
< gribble> https://github.com/bitcoin/bitcoin/issues/9052 | Use RelevantServices instead of node_network in AttemptToEvict. by gmaxwell · Pull Request #9052 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/c113a651f1f5...1e50d22ed2df
< bitcoin-git> bitcoin/master 1f951c6 R E Broadley: Allow filterclear messages for enabling TX relay only....
< bitcoin-git> bitcoin/master 1e50d22 Wladimir J. van der Laan: Merge #8709: Allow filterclear messages for enabling TX relay only....
< gribble> https://github.com/bitcoin/bitcoin/issues/8709 | Allow filterclear messages for enabling TX relay only. by rebroad · Pull Request #8709 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj closed pull request #8709: Allow filterclear messages for enabling TX relay only. (master...AllowFilterclear) https://github.com/bitcoin/bitcoin/pull/8709
< gribble> https://github.com/bitcoin/bitcoin/issues/8709 | Allow filterclear messages for enabling TX relay only. by rebroad · Pull Request #8709 · bitcoin/bitcoin · GitHub
<@wumpus> can whoever is in charge of gribble please make it ignore user 'bitcoin-git'?
<@wumpus> nanotube ^^
< bitcoin-git> [bitcoin] laanwj pushed 3 new commits to master: https://github.com/bitcoin/bitcoin/compare/1e50d22ed2df...3c03dc2cfc07
< bitcoin-git> bitcoin/master b2322e0 Alex Morcos: Remove priority estimation
< bitcoin-git> bitcoin/master 0bd581a Alex Morcos: add release notes for removal of priority estimation
< bitcoin-git> bitcoin/master 3c03dc2 Wladimir J. van der Laan: Merge #7730: Remove priority estimation...
< gribble> https://github.com/bitcoin/bitcoin/issues/7730 | Remove priority estimation by morcos · Pull Request #7730 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj closed pull request #7730: Remove priority estimation (master...removePriEst) https://github.com/bitcoin/bitcoin/pull/7730
< gribble> https://github.com/bitcoin/bitcoin/issues/7730 | Remove priority estimation by morcos · Pull Request #7730 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/3c03dc2cfc07...8c6218a28ae8
< bitcoin-git> bitcoin/master 5ca8ef2 Wladimir J. van der Laan: libconsensus: Add input validation of flags...
< bitcoin-git> bitcoin/master 8c6218a Wladimir J. van der Laan: Merge #8976: libconsensus: Add input validation of flags...
< gribble> https://github.com/bitcoin/bitcoin/issues/8976 | libconsensus: Add input validation of flags by laanwj · Pull Request #8976 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj closed pull request #8976: libconsensus: Add input validation of flags (master...2016_10_bitcoinconsensus_input_checking) https://github.com/bitcoin/bitcoin/pull/8976
< gribble> https://github.com/bitcoin/bitcoin/issues/8976 | libconsensus: Add input validation of flags by laanwj · Pull Request #8976 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/8c6218a28ae8...0b2322b144a0
< bitcoin-git> bitcoin/master ff6639b Pavel Janík: Do not shadow local variable
< bitcoin-git> bitcoin/master 0b2322b Wladimir J. van der Laan: Merge #8981: Wshadow: Do not shadow argument with a local variable...
< gribble> https://github.com/bitcoin/bitcoin/issues/8981 | Wshadow: Do not shadow argument with a local variable by paveljanik · Pull Request #8981 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] laanwj closed pull request #8981: Wshadow: Do not shadow argument with a local variable (master...20161020_Wshadow_rpcdump) https://github.com/bitcoin/bitcoin/pull/8981
< gribble> https://github.com/bitcoin/bitcoin/issues/8981 | Wshadow: Do not shadow argument with a local variable by paveljanik · Pull Request #8981 · bitcoin/bitcoin · GitHub
< nanotube> wumpus: done
< bitcoin-git> [bitcoin] jonasschnelli pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/0b2322b144a0...78cdd643d317
< bitcoin-git> bitcoin/master e760b30 Wladimir J. van der Laan: qt: Use correct conversion function for boost::path datadir...
< bitcoin-git> bitcoin/master 78cdd64 Jonas Schnelli: Merge #9094: qt: Use correct conversion function for boost::path datadir...
< bitcoin-git> [bitcoin] jonasschnelli closed pull request #9094: qt: Use correct conversion function for boost::path datadir (master...2016_11_datadir_in_console) https://github.com/bitcoin/bitcoin/pull/9094
< MarcoFalke> jonasschnelli: Can you check if test_random.h is on your gitian machine?
< jonasschnelli> MarcoFalke: the first errored build was on 19th of october https://bitcoin.jonasschnelli.ch/nightlybuilds/2016-10-19/
< jonasschnelli> Matches ~PR8914
< MarcoFalke> Jup, I am assuming the file is locally corrupted on your machine
< jonasschnelli> MarcoFalke: hmm... rm inputs/bitcoin and do a fresh local heckout?
< jonasschnelli> File looks good:
< jonasschnelli> openssl dgst -sha256 src/test/test_random.h
< jonasschnelli> SHA256(src/test/test_random.h)= a118ebaa4c62ee05eddd516a819d8311613140abd8fda70fa9ec62e20b2bd83b
< sipa> wumpus, MarcoFalke: it wasn't much work, and i was a bit surprised there was no way to collapse the notes in the releases page, so of anyone cares, i'm fine with changing it to links (but i hope it doesn't cause mass mails again)
< bitcoin-git> [bitcoin] MarcoFalke opened pull request #9095: test: Fix test_random includes (master...Mf1611-testRand) https://github.com/bitcoin/bitcoin/pull/9095
< MarcoFalke> Did anyone receive a email for the edit of https://github.com/bitcoin/bitcoin/releases/tag/v0.13.1?
<@wumpus> I didn't
< jonasschnelli> No email
<@wumpus> looks like you're safe, or maybe gh is queing them all up to send them at once once you finish editing all the tags :)
< jonasschnelli> MarcoFalke: compiling 9095 over gitian still gives me: test/coins_tests.cpp:10:30: fatal error: test/test_random.h: No such file or directory
< MarcoFalke> :/
< MarcoFalke> Trying local gitian build
< jonasschnelli> I don't understand why we don't have the test headers in the Makefile.test.include
< jonasschnelli> I know it can't be the reason.. but still
<@wumpus> I don't understand it either
<@wumpus> the .h files should be in SOURCES too
<@wumpus> maybe just try adding them?
< sdaftuar> MarcoFalke: regarding the wallet-dump.py test issues i've been seeing, here's an example of a test failure on the machine in question: https://0bin.net/paste/iL+SYGPlmsW0E4DH#
< sdaftuar> MarcoFalke: and the associated debug.log: https://0bin.net/paste/MB8ipmBEQ9WgjMYS#
< sdaftuar> i don't really have any idea why it's so slow on this machine that i use to run all the tests. i agree with your observation that on other hardware, like the machine i do most of my work on, the test is very fast.
< jonasschnelli> jtimon: Yes. Why not. But I think there are more important global stuff to get rid of first.
< jonasschnelli> But your change makes sense
< jonasschnelli> But stuff like "nTxConfirmTarget" and "payTxFee" should be removed from the global scope
< jtimon> yeah, besides I didn't noticed the use of SoftSetBoolArg() when I wrote it though, I would like to do something about that first
< jonasschnelli> Also, there is no reason for declaring fWalletRbf in the header IMO.
< jtimon> just wanted to hear about the const versions of GetArg in general,
< jtimon> thanks
< jonasschnelli> SetSoft is kinda magical. :)
< jtimon> mhmm, more kind of cheating :p
< MarcoFalke> sdaftuar: Can't decrypt the content in the link
< MarcoFalke> Is there a password after the hash#
< MarcoFalke> missing
<@wumpus> overhauling argument handling is kind of a project in itself, I wouldn't confound it with other refactors
< sdaftuar> MarcoFalke: oops. here are the links again: https://0bin.net/paste/iL+SYGPlmsW0E4DH#mK-4hZ5Lc535os5rJ7Cr6MtHsqRaIOt7PIXpHN82qcX
< MarcoFalke> Maybe you are out of randomness
< MarcoFalke> Hmm, iirc we are using urandom, so it should not be the cause...
< MarcoFalke> Basically the refill key pool method "sleeps" for 8-9 seconds after generating a couple of keys
< sdaftuar> yeah i see that
< MarcoFalke> Would you mind benchmarking around that?
< MarcoFalke> jonasschnelli: gitian fails locally
< MarcoFalke> for me as well
< jonasschnelli> MarcoFalke: Okay. Thats good.
< sdaftuar> sure, i'll give it a shot.
< MarcoFalke> jtimon: Wouldn't it make sense to create a separate class for parsing instead.
< MarcoFalke> I mean not passing the global is a trivial improvement, but it won't help us in the long term goal
< jtimon> not sure, maybe, so far it would be just those 3 getarg methods, maybe getAmountArg too
< jtimon> I don't really see much diferrence on passing the map as it is as const or pass it as a class (also as const)
< MarcoFalke> I mean why would the wallet need to know that mapArgs is of such type? Why would the wallet need to know mapArgs exists at all?
< jtimon> why would it need to know about the new class? it's the same, no?
< MarcoFalke> Imo you are exposing too much internal details with the new interface.
< MarcoFalke> It is similar, but not the same. I think a new class could help to rework the arg handling.
< MarcoFalke> First, you instanciate CArgParse with the args provided by each module. Then you can parse the args and finally each module can ask the instance for the value of each arg...
< MarcoFalke> If there are args present in the map which are not provided by any module you can warn the user
< * jtimon> notes MANDATORY_SCRIPT_VERIFY_FLAGS is outdated
< jtimon> MarcoFalke: oh, I see, yeah I guess for extra checks it may make sense, not sure it's worth it to parse a different mapArgs for each module and sounds like nasty work
< jtimon> regarding "exposing too much details" maybe a typedef for the map will help? or you just want to encapsulate the map? in that case you will definitely need more methods, like getAmountArg
< MarcoFalke> It is a single mapArgs internally and each module provides all valid parameter names to the arg parse class somwehere in init.cpp
< MarcoFalke> In a second step you actually parse. And thereafter, the modules can query their values by providing a the corresponding parameter name
< MarcoFalke> jonasschnelli: amended your suggestion. #9095 should pass now
< gribble> https://github.com/bitcoin/bitcoin/issues/9095 | test: Fix test_random includes by MarcoFalke · Pull Request #9095 · bitcoin/bitcoin · GitHub
< jonasschnelli> MarcoFalke: okay. Building again
< jonasschnelli> MarcoFalke: still got: test/coins_tests.cpp:10:30: fatal error: test/test_random.h: No such file or directory
< jonasschnelli> Do i need to flush/remove something?
< jonasschnelli> Ah.. shit..
< jonasschnelli> checked wrong log... still compiling. False alarm.
< MarcoFalke> Heh, the fact that it didn't fail until now probably means it will pass.
< jonasschnelli> Yes. Seems to be passing... qt stuff is now compiling
< * jtimon> doesn't like BlockAssembler::CreateNewBlock uses global chainActive, could just take CBlockIndex* pindexPrev = chainActive.Tip() as param...
< sdaftuar> MarcoFalke: i tried adding some instrumentation to GenerateNewKey. It looks like the disk-related calls (WriteHDChain, AddKeyPubKey) are what can be slow, but aren't always
< sdaftuar> MarcoFalke: i'm guessing it's just an issue with my disk being a bottleneck when the machine gets loaded. it's a spinning disk, and i have a lot of jobs running on this machine potentially at the same time
< sdaftuar> MarcoFalke: i'll probably migrate my test-running to a new machine that's less loaded but i think bumping timeouts to avoid transient errors is still something we might as well do, not really any downside right?
< MarcoFalke> Yeah, a minute should do it, though. No need to wait for a quarter hour to see something timed out.
< sdaftuar> yeah
< andytoshi> is there a simple or linkable reason that segwit blocks need to commit to witness data at all? this is hard to google for, seems like this is always a background assumption, but it's coming up in context of mimblewimble..
< sipa> the most important reason is DoS protection
< sipa> usually, we can assume that a high frequency of incoming blocks (which pass PoW) is impossible, because PoW prevents that
< sipa> but if witness data is not committed to, you cannot distinguish between the case where a miner simply created an invalid block, or your relay peer damaged the witness in flight, and thus you can no longer make validation failure result in the block being marked permanently invalid
< andytoshi> ok, cool, that's what i had thought
< andytoshi> there is a related DoS vector with in-flight transactions though, and they don't have PoW
< andytoshi> i guess that is dealt with by just banning peers?
< sipa> right
< sipa> the issue does exist for transactions
< sipa> but the cost of a transaction for validation is much lower
< andytoshi> ok, great, thanks
< sipa> and failure to process a transaction in a short time does not result in network convergence being hurt
< andytoshi> yeah, that just occured to me
< sipa> ... though after compact blocks, they sort of do, in a weaker way
< andytoshi> well, peer banning on bad blocks (that aren't actually bad) could lead to a sybil attack being amplified to a permanent fork i suspect
< andytoshi> the risk with CB is that things will be slower
< bitcoin-git> [bitcoin] MarcoFalke pushed 3 new commits to master: https://github.com/bitcoin/bitcoin/compare/78cdd643d317...1253f8692fc3
< bitcoin-git> bitcoin/master 8463aaa Russell Yanofsky: [qa] Increase wallet-dump RPC timeout...
< bitcoin-git> bitcoin/master e89614b Russell Yanofsky: [qa] Add more helpful RPC timeout message...
< bitcoin-git> bitcoin/master 1253f86 MarcoFalke: Merge #9077: [qa] Increase wallet-dump RPC timeout...
< bitcoin-git> [bitcoin] MarcoFalke closed pull request #9077: [qa] Increase wallet-dump RPC timeout (master...fix-wallet-dump-timeout) https://github.com/bitcoin/bitcoin/pull/9077
< instagibbs> So I noticed that AcceptBlock attempts to validate various amounts of the genesisblock upon reindexing. Is this desired behavior? For example, it checks for height in coinbase if bip34height is set to <= 0
< instagibbs> I don't know the validation flow very well, so perhaps this is ok, but I've been told Core doesn't validate the genesis block.
< BlueMatt> reminder: the first round of public 33c3 tickets go on sale in ~40 minutes
< BlueMatt> wumpus: ^ :p
< instagibbs> I now understand that this won't fork anyone off, but it might make sense to special case the genesis block again for this case.
< instagibbs> (this meaning current behavior)
< sipa> instagibbs: imho, we should not apply any tests to genssis
< instagibbs> Ok, I can PR something
< instagibbs> sipa, ConnectBlock calls CheckBlock on genesis right before it short-circuits the rest of the logic. Comment above said CheckBlock is "// Check it again in case a previous version let a bad block in"
< sipa> instagibbs: that's a very old comment
< instagibbs> Could you elaborate on what a newer comment explaining the line would entail :)
< instagibbs> From a naive reviewer I'd say it's a bunch of cheap checks to run before loading coins, validating everything else.
< cfields> sipa / wumpus: thanks for helping out on #8708. Just catching up after being out of town for the weekend. I was expecting to fix it up today, but finding it already merged is even better :)
< gribble> https://github.com/bitcoin/bitcoin/issues/8708 | net: have CConnman handle message sending by theuni · Pull Request #8708 · bitcoin/bitcoin · GitHub
< bitcoin-git> [bitcoin] MarcoFalke opened pull request #9097: [qa] Rework sync_* and preciousblock.py (master...Mf1611-qaSyncAndPrecious) https://github.com/bitcoin/bitcoin/pull/9097
< jtimon> how can the same test pass when make check but not with test_bitcoin --run_test=MyTest ?
< sipa> it means you're leaving some state around and not cleaning it up
< jtimon> within the test?
< MarcoFalke> In a previous test. So MyTest depends on a previous test, which it should not.
< jtimon> oh, I see
< jtimon> may be, let me comment the previous test
< jtimon> thanks
< sipa> or _any_ previous test
< jtimon> yes, it is my own previous test in the same file, but I still don't understand why, thanks again
< satosh-777-xl_> I asked this on bitcoin-dev and was told to check the developer notes and then post on here if I couldn't find anything.. Anyways as core is moving away from boost and BOOST_FOREACH loops in favor of standard C++ (11), is the following for loop syntax acceptable?
< satosh-777-xl_> for (Class c : vClass) { c.nonce++ }
< sipa> that won't work. that syntax will make c into a copy of the item being iterator over
< satosh-777-xl_> I'm sorry, that loop is broken. I was just wondering if that code style (if it didn't have the error of copying c) is okay or if for (size_t i = 0; i < 10; i++) should be the only style used
< sipa> (Class c& : vClass) {
< sipa> for (Class c& : vClass) {
< satosh-777-xl_> Okay, so if used correctly that style of for loop is okay to use in a new pull request?
< sipa> yes
< satosh-777-xl_> Thanks you I was curious, thats all :)
< satosh-777-xl_> *thank you
< cfields> morcos: re yesterday's ping, it should be fixed in master now. The fix (8708) was PR'd a long time ago, it just took a while to get merged.
< morcos> cfields: thanks! i did try scanning open PR's but not thoroughly enough I guess and missed it.
< btcdrak> wumpus: looks like jgarzik merged that JSON whitespace issue upstream, what is the next step - once that is merged into core we'll need to remove the white space from a couple of fixtures in src/test/data/*.json files.
< bitcoin-git> [bitcoin] MarcoFalke opened pull request #9098: [qa] Handle zombies and cluttered tmpdirs (master...Mf1611-qaZombies) https://github.com/bitcoin/bitcoin/pull/9098
< bitcoin-git> [bitcoin] sipa pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/1253f8692fc3...9f554e03ebe5
< bitcoin-git> bitcoin/master fe1dc62 Matt Corallo: Hash P2P messages as they are received instead of at process-time
< bitcoin-git> bitcoin/master 9f554e0 Pieter Wuille: Merge #9045: Hash P2P messages as they are received instead of at process-time...
< bitcoin-git> [bitcoin] sipa closed pull request #9045: Hash P2P messages as they are received instead of at process-time (master...2016-10-p2p-hash) https://github.com/bitcoin/bitcoin/pull/9045
< BlueMatt> lol, sipa, did you go through all my pulls just to tell me that i need to rebase all of them? :p
< BlueMatt> fucking cfields and his refactors....
< cfields> BlueMatt: i could say the same about you :)
< BlueMatt> heh, true
< sipa> BlueMatt: yes
< sipa> BlueMatt: i didn't expect they'd all need rebasing
< BlueMatt> heh, all good
< cfields> BlueMatt: I'm getting ready to PR the layer violation fix you requested (avoiding having CConnman do the serializing). It'll touch all PushMessage one last time. Would you like me to hold off until some of yours go in?
< cfields> not sure if that disrupts you at all
< BlueMatt> naa, all good, those are trivial rebaes
< BlueMatt> rebases
< cfields> ok
< gmaxwell> sipa: "an unintentionally strong preference for witness peers" < well it was as strong as I intend it to be, after SW activates I was planning on merging the NODE_WITNESS preference into the node-network one and making it absolute and not a preference. In releases post sw I think we shouldn't connect out at all to non sw peers.
< cfields> sipa: i think i've decided against the refcounted messages altogether. I just can't see a clean way to make it happen. And you pretty much convinced me it wouldn't be effective anyway.
< cfields> gmaxwell: heh, sorry, apparently i type too slowly :)
< sipa> gmaxwell: it seems arbitrary to base it on the number of connections, and not the number of witness connections
< sipa> maybe it was what you intended, but then i misunderstood the intention
< gmaxwell> sipa: the intention was "don't leave ourselves totally disconnected because we're insisting on witness peers"-- which is a reasonable thing to do before segwit is activated and when the number of witness peers is low.
< gmaxwell> I would much rather prefer that all of a node's outbound were witness peers, even now. But that was unrealistic in 0.13.1 due to the chicken/egg problem. :)
< sipa> gmaxwell: i see
< phantomcircuit> rebased #8831
< gribble> https://github.com/bitcoin/bitcoin/issues/8831 | Replace CWalletDB::ReadKeyValue with CWallet::LoadKeyValue by pstratem · Pull Request #8831 · bitcoin/bitcoin · GitHub
< BlueMatt> rebased all the things
< phantomcircuit> BlueMatt: indeed
< phantomcircuit> this one is my own fault though
< phantomcircuit> so i dont get to blame anybody else
< jtimon> BlueMatt: btw I read the last commit of TheBlueMatt/net_processing_file and I like the movement at the end