negative value in the tx fix
This commit is contained in:
parent
2fcb00d3b5
commit
a16728d6a2
|
@ -88,7 +88,8 @@ public class Wallet {
|
||||||
if (balance != null){
|
if (balance != null){
|
||||||
|
|
||||||
// todo: validate the transaction and decrypt the sender
|
// 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;
|
walletUpdated = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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("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("82.217.72.169", 30303); // Nick
|
||||||
|
|
||||||
|
|
||||||
// new ClientPeer(thisConsole).connect("54.204.10.41", 30303);
|
// new ClientPeer(thisConsole).connect("54.204.10.41", 30303);
|
||||||
// new ClientPeer(thisConsole).connect("54.211.14.10", 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.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);
|
// new ClientPeer(thisConsole).connect("192.168.1.102", 30303);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue