negative value in the tx fix

This commit is contained in:
romanman 2014-05-21 01:27:43 +03:00
parent 2fcb00d3b5
commit a16728d6a2
2 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,8 @@ public class Wallet {
if (balance != null){
// todo: validate the transaction and decrypt the sender
setBalance(receiveAddress, balance.add(new BigInteger(tx.getValue())));
setBalance(receiveAddress, balance.add(new BigInteger(1, tx.getValue())));
walletUpdated = true;
}
}

View File

@ -71,13 +71,14 @@ public class ConnectionConsoleWindow extends JFrame implements PeerListener{
// new ClientPeer(thisConsole).connect("54.201.28.117", 30303); // peer discovery
// new ClientPeer(thisConsole).connect("82.217.72.169", 30303); // Nick
new ClientPeer(thisConsole).connect("82.217.72.169", 30303); // Nick
// new ClientPeer(thisConsole).connect("54.204.10.41", 30303);
// new ClientPeer(thisConsole).connect("54.211.14.10", 30303);
// new ClientPeer(thisConsole).connect("54.204.10.41", 30303); // CPP: ZeroGox Poc5
new ClientPeer(thisConsole).connect("54.211.14.10", 30303); // CPP: ver16
// new ClientPeer(thisConsole).connect("54.211.14.10", 30303); // CPP: ver16
// new ClientPeer(thisConsole).connect("192.168.1.102", 30303);
}