I am trying to send ethers using the following code:
//check if confirmed by both the owners
if(tr.confirmedByUbuntu && tr.confirmedByWindows) {
bool withdrawal = tr.to.send(tr.value); //Send the ethers
if(withdrawal) {
ConfirmedTransaction(_confirmationHash, tr.to, tr.value, tr.data);
delete pendingTransactions[_confirmationHash]; //Free up the storage on EVM
} else {
TransactionConfirmationFailed(_confirmationHash, tr.to, tr.value, tr.data);
}
}
The line where I am sending ethers, does withdraw ethers from the source contract but does not deposit in target account. I am doing it on a private network. In what scenarios can this happen? In case of send failure we should we would get the withdrawal result as false but I get that as true.
Full source code is at: https://gist.github.com/anonymous/e4fdac24643c7146a04bd9b3d96fbb4c