The old Pull Request was junk and it's moved.
Remove IP transaction check #8546
pull ghost wants to merge 1 commits into bitcoin:master from changing 1 files +13 −39-
ghost commented at 10:34 AM on August 19, 2016: none
-
MarcoFalke commented at 12:00 PM on August 19, 2016: member
Please also get rid of the other
tr("From"). No need to keep useless information/code around. - MarcoFalke added the label GUI on Aug 19, 2016
-
ghost commented at 3:11 PM on August 19, 2016: none
@MarcoFalke Done.
-
MarcoFalke commented at 3:38 PM on August 19, 2016: member
Looks like it is still here: https://github.com/mcccs/bitcoin/blob/e05969720213c4b7c7db2115fe0cf96d5ae73e21/src/qt/transactiondesc.cpp#L93
- MarcoFalke renamed this:
Remove IP transaction check [CLEAN]
Remove IP transaction check
on Aug 19, 2016 -
Remove IP transaction check 8fd27c66dc
-
MarcoFalke commented at 3:47 PM on August 19, 2016: member
Concept ACK, but this needs review and tests with actual "online" transactions (IP transactions).
-
ghost commented at 6:32 PM on August 19, 2016: none
@MarcoFalke I cannot find the binaries for v0.7.2 and compiling is difficult. If you give me its link, I can test the Pull Request.
-
sipa commented at 6:34 PM on August 19, 2016: member
I think IP transaction support was disable way before that. You probably need 0.3.something...
-
ghost commented at 6:35 PM on August 19, 2016: none
Status
This feature has been removed from Bitcoin Core as-of v0.8.0
-
sipa commented at 6:42 PM on August 19, 2016: member
Removed, yes. But I think it was disabled long before.
-
ghost commented at 6:59 PM on August 19, 2016: none
Yes, you were right. The last version it exists is 4.0rc2, thanks for reminding me.
-
jonasschnelli commented at 9:34 AM on August 20, 2016: contributor
-
in src/qt/transactiondesc.cpp:None in 8fd27c66dc
145 | @@ -167,9 +146,6 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco 146 | 147 | if (fAllFromMe) 148 | { 149 | - if(fAllFromMe & ISMINE_WATCH_ONLY) 150 | - strHTML += "<b>" + tr("From") + ":</b> " + tr("watch-only") + "<br>";
laanwj commented at 4:01 PM on August 22, 2016:Now that this no longer uses From:, do we still have a way to indicate in the transation details that a transaction is watch-only?
MarcoFalke commented at 4:08 PM on August 22, 2016:Is the icon for watch-only different?
laanwj commented at 5:32 PM on August 22, 2016:There's an eye-icon, but that is shown in the transaction list, not in the transaction details.
sipa commented at 11:52 AM on August 23, 2016:Please leave a "Watch-only" notice in the transaction details.
unknown commented at 12:00 PM on August 23, 2016:Should I bring back these lines?
laanwj commented at 12:03 PM on August 24, 2016:Yes, but word it differently please. There is no need to display this as
From: watch-only. But it needs to be visible that the transaction is watch-only.
unknown commented at 2:47 PM on August 24, 2016:Also isn't this part of code inefficient?
if (fAllFromMe) { if(fAllFromMe & ISMINE_WATCH_ONLY)I am going to replace this with this:
if (fAllFromMe) { if(ISMINE_WATCH_ONLY)Am I right or should I keep this?
laanwj commented at 9:03 AM on August 25, 2016:Eh, no don't do that. Firstly, don't optimize things which are not a bottleneck - one comparison is negligible to all the bit blitting and pixel pushing happening in Qt itself. It's also far from equivalent:
&is a bitwise AND operator, its matching a bit field.MarcoFalke commented at 1:38 PM on August 23, 2016: memberRegardless of testing this pull, an old wallet.dat would be helpful for general compatibility testing, too.
ghost commented at 3:07 PM on August 24, 2016: none@MarcoFalke If you need, you can use this wallet.dat.zip which I just created (created by v0.8.6).
EDIT: Wait for a newer wallet.dat. This old one has no transactions.
MarcoFalke commented at 3:19 PM on August 24, 2016: memberDoes it include IP-transactions? I could assume you need at least two nodes to create such.
ghost commented at 3:24 PM on August 24, 2016: noneNope, not yet. I couldn't find 0.3.24's compiled version, and I'll compile it by myself after I install wxWidgets.
laanwj commented at 10:05 AM on August 26, 2016: memberNope, not yet. I couldn't find 0.3.24's compiled version, and I'll compile it by myself after I install wxWidgets.
Do you really need the GUI? was there no way to do IP transactions through bitcoind? I don't remember, could well be true.
laanwj commented at 2:00 PM on September 1, 2016: memberIf actually testing with such an old version is a problem, maybe it would be possible to emulate such a transaction, e.g. take the code and artificially inject it into the wallet? That would make a good test.
sipa commented at 4:20 PM on September 1, 2016: memberI really don't know if we need to do that much effort for a feature that has been disabled by default since september 30th 2010 (almost 6 years ago). Sure, it shouldn't crash if anyone has records left from such transactions in their wallet, but I also don't think we should show anything useful about them.
laanwj commented at 4:40 PM on September 1, 2016: memberI agree, the only thing to check here is that it doesn't crash.
ghost commented at 11:37 AM on September 2, 2016: noneThis happened after I entered the command below. What might be causing it?
make -f makefile.unix g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=0 -I/usr/local/lib/wx/include/gtk2-unicode-static-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -DGUI -o obj/util.o util.cpp In file included from util.cpp:4:0: headers.h:43:20: fatal error: db_cxx.h: No such file or directory compilation terminated.sipa commented at 12:10 PM on September 2, 2016: memberYou're missing libdb++.
luke-jr commented at 9:27 AM on September 10, 2016: memberTry
make -f makefile.unix bitcoind DEBUGFLAGS="-I/usr/include/db4.8"ghost commented at 10:00 AM on September 10, 2016: noneDoes bitcoind have IP transaction support? Also what's wrong here? (Both
make -f makefile.unixandmake -f makefile.unix bitcoind DEBUGFLAGS="-I/usr/include/db4.81is causing this)net.cpp: In function ‘void ThreadMapPort2(void*)’: net.cpp:1076:63: error: too few arguments to function ‘UPNPDev* upnpDiscover(int, const char*, const char*, int, int, int*)’ devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0); (There's an ^ showing 0) In file included from net.cpp:23:0: /usr/include/miniupnpc/miniupnpc.h:58:1: note: declared here upnpDiscover(int delay, const char * multicastif, (There's an ^ showing upnpDiscovery) net.cpp:1090:58: error: too few arguments to function ‘int UPNP_AddPortMapping(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)’ port, port, lanaddr, 0, "TCP", 0); There's an ^ showing the last 0.luke-jr commented at 10:25 AM on September 10, 2016: memberminiupnpc breaks APIs often.
Try
make -f makefile.unix bitcoind USE_UPNP= DEBUGFLAGS="-I/usr/include/db4.8"Note that's a null value for USE_UPNP.
(I don't know anything about IP transactions...)
luke-jr commented at 10:30 AM on September 10, 2016: memberReviewing historical code, it looks like you need to go back to v0.3.20 to receive IP transactions.
Note also that "to" is still supported today by RPC sendtoaddress's comment-to...
luke-jr commented at 10:35 AM on September 10, 2016: memberOh, and the receiving IP txns looks like it's part of the GUI... I don't think I ever managed to build the wx GUI, so I can't help with that. :(
ghost commented at 5:17 PM on September 10, 2016: nonehttps://gist.github.com/mcccs/5b43d4638e303a6b0556b865cfd1f264
Maybe we should close this Pull Request, because it needs too much work for non-important feature.
luke-jr commented at 6:30 PM on September 10, 2016: memberSimulating an IP transaction may very well be easier. But if you've reduced it to link errors like those, it's probably just a matter of getting the LDFLAGS right now...
jonasschnelli commented at 7:38 PM on October 18, 2016: contributorWhat's the status here? IMO there is no need for the 0.14 GUI to support IP transactions. I think its acceptable if it breaks wallets used back in 0.3.x in conjunction with IP transactions.
laanwj commented at 8:28 PM on October 18, 2016: memberI'm closing this for now. I'm not convinced that this only removes code related to pay-to-IP transactions, and seems unfeasible to test. Doesn't hurt to leave this code around for a little longer.
laanwj closed this on Oct 18, 2016MarcoFalke locked this on Sep 8, 2021ContributorsLabels
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-14 21:15 UTC
More mirrored repositories can be found on mirror.b10c.me