See here: http://www.bitcoin.org/smf/index.php?topic=3638.msg52145#msg52145
Monitor incoming transactions for spends by (a copy of) your own wallet #157
pull sipa wants to merge 1 commits into bitcoin:master from sipa:spendbycopy changing 1 files +11 −35-
sipa commented at 8:49 AM on April 14, 2011: member
-
Monitor incoming transactions for spends by (a copy of) your own wallet 4a97b66796
-
in main.cpp:None in 46bbf50dbe outdated
203 | @@ -204,6 +204,25 @@ bool AddToWalletIfFromMe(const CTransaction& tx, const CBlock* pblock) 204 | return true; 205 | } 206 | 207 | +bool AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock) 208 | +{ 209 | + uint256 hash = tx.GetHash(); 210 | + if (mapWallet.count(hash)) false;
gavinandresen commented at 3:22 PM on April 15, 2011:return false? Or is this dead code?
sipa commented at 5:08 PM on April 15, 2011:Return false indeed - nice catch. Fixed.
sipa commented at 8:08 PM on April 17, 2011: memberReworked a bit, AddToWalletIfMine() and AddToWalletIfFromMe() and now merged into AddToWalletIfInvolvingMe(), simplifying things further.
gavinandresen commented at 3:41 PM on April 20, 2011: contributorPulled via cherry-pick
gavinandresen closed this on Apr 20, 2011sipa referenced this in commit 94ca214e3d on Dec 18, 2014sipa referenced this in commit 855f50ab33 on Dec 23, 2014sipa referenced this in commit 7873633b57 on Jan 5, 2015glv2 referenced this in commit f603af292b on Apr 22, 2015TheBlueMatt referenced this in commit 582b2934e6 on Oct 20, 2015rebroad referenced this in commit fd4a7032e2 on Dec 7, 2016deadalnix referenced this in commit 2a5a3f44b7 on Dec 13, 2016deadalnix referenced this in commit 3c0f246e7e on Jan 19, 2017destenson referenced this in commit 0a5ef951b5 on Nov 18, 2017lateminer referenced this in commit 518aec79e5 on Dec 9, 2017classesjack referenced this in commit 47ec05df66 on Jan 2, 2018attilaaf referenced this in commit 85b2110e14 on Jan 13, 2020KolbyML referenced this in commit 0157bbc69e on Aug 1, 2020rajarshimaitra referenced this in commit d68aad5d7a on Mar 23, 2021cryptapus referenced this in commit 089c51d0c4 on May 3, 2021DrahtBot locked this on Sep 8, 2021Contributors
github-metadata-mirror
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: 2026-04-13 21:16 UTC
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: 2026-04-13 21:16 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me