Remove IP transaction check #8546

pull ghost wants to merge 1 commits into bitcoin:master from changing 1 files +13 −39
  1. ghost commented at 10:34 AM on August 19, 2016: none

    The old Pull Request was junk and it's moved.

  2. 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.

  3. MarcoFalke added the label GUI on Aug 19, 2016
  4. ghost commented at 3:11 PM on August 19, 2016: none

    @MarcoFalke Done.

  5. MarcoFalke renamed this:
    Remove IP transaction check [CLEAN]
    Remove IP transaction check
    on Aug 19, 2016
  6. ghost commented at 3:41 PM on August 19, 2016: none

    Did I remove the wrong one?

    I removed two tr("From") lines. The first one I deleted was this.

  7. Remove IP transaction check 8fd27c66dc
  8. 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).

  9. 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.

  10. 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...

  11. 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

    https://en.bitcoin.it/wiki/IP_transaction

  12. sipa commented at 6:42 PM on August 19, 2016: member

    Removed, yes. But I think it was disabled long before.

  13. 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.

  14. 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.

  15. MarcoFalke commented at 1:38 PM on August 23, 2016: member

    Regardless of testing this pull, an old wallet.dat would be helpful for general compatibility testing, too.

  16. 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.

  17. MarcoFalke commented at 3:19 PM on August 24, 2016: member

    Does it include IP-transactions? I could assume you need at least two nodes to create such.

  18. ghost commented at 3:24 PM on August 24, 2016: none

    Nope, not yet. I couldn't find 0.3.24's compiled version, and I'll compile it by myself after I install wxWidgets.

  19. laanwj commented at 10:05 AM on August 26, 2016: member

    Nope, 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.

  20. laanwj commented at 2:00 PM on September 1, 2016: member

    If 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.

  21. sipa commented at 4:20 PM on September 1, 2016: member

    I 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.

  22. laanwj commented at 4:40 PM on September 1, 2016: member

    I agree, the only thing to check here is that it doesn't crash.

  23. ghost commented at 11:37 AM on September 2, 2016: none

    This 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.
    
    
  24. sipa commented at 12:10 PM on September 2, 2016: member

    You're missing libdb++.

  25. luke-jr commented at 9:27 AM on September 10, 2016: member

    Try make -f makefile.unix bitcoind DEBUGFLAGS="-I/usr/include/db4.8"

  26. ghost commented at 10:00 AM on September 10, 2016: none

    Does bitcoind have IP transaction support? Also what's wrong here? (Both make -f makefile.unix and make -f makefile.unix bitcoind DEBUGFLAGS="-I/usr/include/db4.81 is 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.
    
    
  27. luke-jr commented at 10:25 AM on September 10, 2016: member

    miniupnpc 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...)

  28. luke-jr commented at 10:30 AM on September 10, 2016: member

    Reviewing 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...

  29. luke-jr commented at 10:35 AM on September 10, 2016: member

    Oh, 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. :(

  30. ghost commented at 5:17 PM on September 10, 2016: none

    https://gist.github.com/mcccs/5b43d4638e303a6b0556b865cfd1f264

    Maybe we should close this Pull Request, because it needs too much work for non-important feature.

  31. luke-jr commented at 6:30 PM on September 10, 2016: member

    Simulating 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...

  32. ghost commented at 5:03 PM on September 13, 2016: none
    Assembler messages:
    Fatal error: can't create obj/nogui/util.o: No such file or directory
    makefile.unix:69: recipe for target 'obj/nogui/util.o' failed
    make: *** [obj/nogui/util.o] Error 1
    

    @luke-jr What am I missing now?

  33. jonasschnelli commented at 7:38 PM on October 18, 2016: contributor

    What'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.

  34. laanwj commented at 8:28 PM on October 18, 2016: member

    I'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.

  35. laanwj closed this on Oct 18, 2016

  36. MarcoFalke locked this on Sep 8, 2021

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-14 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me