<<  >> (p.16)
    Author Topic: MultiBit  (Read 336628 times)
    jim618 (OP)
    Legendary
    *
    Offline Offline

    Activity: 1708
    Merit: 1069



    View Profile WWW
    March 29, 2012, 04:37:03 PM
     #301

    Hi phr33,

    I just checked the code for the singleNodeConnection, it is this if-else:

    Code:
         String singleNodeConnection = controller.getModel().getUserPreference(MultiBitModel.SINGLE_NODE_CONNECTION);
            if (singleNodeConnection != null && !singleNodeConnection.equals("")) {
                try {
                    peerGroup.addAddress(new PeerAddress(InetAddress.getByName(singleNodeConnection)));
                    peerGroup.setMaxConnections(1);
                } catch (UnknownHostException e) {
                    log.error(e.getMessage(), e);
                }
            } else {
                // use DNS for production, IRC for test
                if (useTestNet) {
                    peerGroup.addPeerDiscovery(new IrcDiscovery(IRC_CHANNEL_TEST));
                } else {
                    peerGroup.addPeerDiscovery(new DnsDiscovery(networkParameters));
                }
            }

    where MultiBitModel.SINGLE_NODE_CONNECTION="singleNodeConnection"

    Maybe I did not make it clear that the node does not have 'less than' and 'more than' characters, i.e. if the node is, say, 12.34.56.78 you would put:
    singleNodeConnection=12.34.56.78

    It should not fall back to normal node lookup no, it should just sit there unable to connect to the one node you specified if you do not have a bitcoind on that node.

    The only other thing I can think of is that it is not reading the multibit.properties you are editing.   It should be the one in your username's <application data>/MultiBit directory (unless you are running in 'portable mode' on a USB).

    Oh, and the 'singleNodeConnection' is case sensitive.



    MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
Page 15
Viewing Page: 16