You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue I have been encountering when two separate sessions are submitting the same transaction at the same time. What happens is that one transaction succeeds but the same hash is returned to both sessions. This is not what I thought would happen. What I think is going on is the same sequence number is being used in both transactions. I still don't understand why one doesn't fail though.
I resolved this issue by adding in a unique ID to the memo field of the transactions. So even if the sequence number is the same, the transactions are different, and one of the transactions will fail for being out of sequence.
I don't know if this is an issue or more of an FYI. I don't have more of a fix aside from using the memo field.
The text was updated successfully, but these errors were encountered:
bmilleker
changed the title
Multiple sessions creating the same payment
Multiple sessions creating the same payment result in the same hash returned
Jan 29, 2019
There is an issue I have been encountering when two separate sessions are submitting the same transaction at the same time. What happens is that one transaction succeeds but the same hash is returned to both sessions. This is not what I thought would happen. What I think is going on is the same sequence number is being used in both transactions. I still don't understand why one doesn't fail though.
I resolved this issue by adding in a unique ID to the memo field of the transactions. So even if the sequence number is the same, the transactions are different, and one of the transactions will fail for being out of sequence.
I don't know if this is an issue or more of an FYI. I don't have more of a fix aside from using the memo field.
The text was updated successfully, but these errors were encountered: