Update block-tester #5422
pull TheBlueMatt wants to merge 3 commits into bitcoin:master from TheBlueMatt:mempoolfix4 changing 5 files +33 −12-
TheBlueMatt commented at 11:23 am on December 4, 2014: memberBuilt on top of #5267.
-
TheBlueMatt renamed this:
Remove useless removed-tx tracking from mempool remove calls
Update block-tester and Remove useless removed-tx tracking from mempool remove calls
on Dec 4, 2014 -
TheBlueMatt commented at 9:59 pm on December 4, 2014: member#5267 no longer contains the pull-tester update, which is still a part of this.
-
morcos commented at 10:38 pm on December 4, 2014: memberI tried out a variation of @dgenr8’s comments in regtest by creating 2 coinbases and using them as inputs for a transaction, but then creating a block with a different tx which double spends one of those inputs. The qt client correctly shows that the original transaction is conflicted, but what it doesn’t do is realize that one of the inputs spent by the original transaction is now available again and therefore it shows the wrong balance. This is a result of MarkDirty() not getting called on the inputs for the previous transaction anymore.
-
TheBlueMatt force-pushed on Dec 5, 2014
-
dgenr8 commented at 1:52 am on December 5, 2014: contributor
The visible status update problem I saw may be an existing wallet problem. The wallet gui accesses the mempool directly to set the transaction status icon, so it will notice the removed transaction next time it checks for it in the mempool. But it tries to do this only when it thinks the transaction is actually showing in the gui, and there is also logic that presumes status changes will only happen when a block has been added since the last gui update.
What I want to test is the tx not showing visually when the block arrives, then being exposed later by user action such as switching to the history tab. I won’t be able to do this for several days though.
The report of @morcos is consistent, because the isDirty update only happens on explicit SyncWithWallets (it does not directly access the mempool).
-
TheBlueMatt force-pushed on Dec 5, 2014
-
TheBlueMatt force-pushed on Dec 5, 2014
-
laanwj added the label Tests on Dec 5, 2014
-
TheBlueMatt force-pushed on Dec 5, 2014
-
TheBlueMatt force-pushed on Dec 5, 2014
-
TheBlueMatt force-pushed on Dec 5, 2014
-
TheBlueMatt force-pushed on Dec 5, 2014
-
morcos commented at 8:20 pm on December 5, 2014: memberI think you might be in the middle of changing this around, but here is the little test I put together. I don’t know the code well enough to understand what’s happening, but not only does the GUI show an incorrect balance in this test, but the rpc getbalance returns the wrong value and fails the assertion. However, if you change node0 in my test to a bitcoind instead of a bitcoin-qt, then the rpc getbalance works properly. That seems odd to me.
-
TheBlueMatt commented at 10:48 pm on December 5, 2014: member
-
TheBlueMatt commented at 10:48 pm on December 5, 2014: memberI’m still working on the test changes, which maybe should just be a separate pull request, but..oh well.
-
TheBlueMatt commented at 10:50 pm on December 5, 2014: member@morcos Thanks, I’ll try to take a look later today and merge that in…might be a bit before I can, though.
-
TheBlueMatt force-pushed on Dec 5, 2014
-
TheBlueMatt force-pushed on Dec 6, 2014
-
TheBlueMatt commented at 8:35 am on December 6, 2014: member
-
TheBlueMatt renamed this:
Update block-tester and Remove useless removed-tx tracking from mempool remove calls
Update block-tester
on Dec 6, 2014 -
TheBlueMatt force-pushed on Dec 20, 2014
-
TheBlueMatt force-pushed on Dec 20, 2014
-
TheBlueMatt force-pushed on Dec 20, 2014
-
TheBlueMatt commented at 8:34 am on December 20, 2014: memberI apologize this took so long, (see the various fixes commit to see why it took so many travis round-trips…), but this should now be good to go…
-
TheBlueMatt commented at 8:34 am on December 20, 2014: memberNote that this will delay travis results somewhat, I’d think but hopefully not too much.
-
fanquake commented at 12:25 pm on January 23, 2015: memberNeeds rebase.
-
New pull tester which adds a rather simple large-reorg test 1129bed867
-
Various fixes to make travis work with the larger blocktester
Travis needed a number of things, including disabling the new tests if we're running with DEBUG_LOCKORDER (to prevent timeout), logging output to a file instead of stderr to avoid running travis over its max-log limit, disabling the new tests entirely on Windows (wine), and reducing dbcache for the new tests (to avoid Travis OOMing us).
-
TRAVIS: Run dmesg on signal 137 (prints basic OOM kill info) ebe3e4cb3d
-
TheBlueMatt force-pushed on Jan 27, 2015
-
TheBlueMatt commented at 3:41 pm on January 27, 2015: memberRebased, thanks.
-
jgarzik commented at 6:42 pm on July 23, 2015: contributorStatus?
-
laanwj commented at 10:07 pm on October 1, 2015: memberClosing due to inactivity
-
laanwj closed this on Oct 1, 2015
-
MarcoFalke locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 06:12 UTC
More mirrored repositories can be found on mirror.b10c.me