5. A transfers BTC to Temp_BTC and B transfers LTC to Temp_LTC.
If the transfer will stuck in temp addresses?
7. If the amounts are exactly the same as inputed in step2, the A will send A_codes again to B client and B client will make the transfer from Temp_LTC to A_LTC. B will send B_codes again to A Client and A client will make the transfer from Temp_BTC to B_BTC.
If the amount is not the same?
if the transfer is stuck in temp addresses, it means that one party has closed the client. The other party's client will broadcast the info the network and everyone will know the address owner is not trustable.
if the amount is not the same, then after the expire time (maybe 1H), the fund will be returned to the original addresses.