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
{{ message }}
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
In an early close scenario both participants submit the final close transaction. This is done so that neither party is relying on the other party doing the right thing.
In an early close scenario both participants submit the final close transaction. This is done so that neither party is relying on the other party doing the right thing.
The relevant code is here:
The client that lead the charge on the early close agreement gets the response from the other client and submits it:
https://github.com/stellar/starlight/blob/919096552e44eec5ec3fd6278922396926239874/sdk/agent/agent.go#L713-L728
The client that is asked to close early submits the transaction immediately after they sign the request:
https://github.com/stellar/starlight/blob/919096552e44eec5ec3fd6278922396926239874/sdk/agent/agent.go#L676-L691
This results in an error being passed back up to the application using the agent, which is not ideal.
The agent should inspect the error, and if the error indicates that the fee was insufficient it should take some smarter actions such as:
Related Discord discussion: https://discord.com/channels/897514728459468821/910623239292739585/1017480647373230110
The text was updated successfully, but these errors were encountered: