I had deposited 1 eth in the Account A, and 1 BTC in account B
then I traded BTC/ETH and Exchange BTC/ETH.
Now I have 0 eth and 1 BTC in account A
1ETH and 0 BTC in account B
But I saw the Balance using Blockexplorers, there was no external transfers, which is not expected.
Then I tried to Withdraw 1 ETH from Account B
When i Tried to withdraw, I was unable to Withdraw eth, it failed. This is Because There is no Real ETH transferred in My Real ETH wallet(Transferred in Mysql Database, but now in geth wallet). Hence Eth withdrawal Failed.
Then I manually updated ETH balance of Account A from 0 to 1 Using Mysql, Then I tried to withdrew 1 ETH, It got successfull. Because there was enough ETH in the Original ETH wallet.
How can we avoid such issues?
How can we setup a function which sends all deposited ETH/ERC20 Tokens to only 1 Address after deposit confirmation(we will use that wallet as hot wallet, and all withdrawals will be sent from this address only)