Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify swap and recovery execution #41

Merged
merged 28 commits into from
Dec 1, 2020

Conversation

rishflab
Copy link
Member

Consolidate and simplify swap execution. Generators are no longer
needed. Consolidate recovery and swap data structures. The
recursive calls can be replaced with a loop if returning prior to
completion is desired for testing purposes.

rishflab and others added 17 commits November 27, 2020 09:21
Consolidate and simplify swap execution. Generators are no longer
needed. Consolidate recovery and swap data structures. The
recursive calls can be replaced with a loop if returning prior to
completion is desired for testing purposes.

Fill out alice abort path

Move state machine executors into seperate files

Not compiling due to recursion/async issues

Fix async recursion compilation errors

Fix Bob swap execution

Remove check for ack message from Alice. Seems like a bad idea to
rely on an acknowledgement message instead of looking at the
blockchain.

Fix Bob abort

Fix warnings

Xmr lock complete

Add TxCancel submit to XmrLocked

Bob swap completed

Remove alice
Move state machine executors into seperate files

Remove check for ack message from Alice. Seems like a bad idea to
rely on an acknowledgement message instead of looking at the
blockchain.

Fix warnings
Tealised that the whole point is for them to be idempotent to be useful
@rishflab rishflab force-pushed the automated branch 2 times, most recently from 2043f36 to f54075e Compare November 27, 2020 02:16
rishflab and others added 5 commits November 30, 2020 15:16
Save state0 in the swarm to process message0
Poll bob swarm to send encsig after calling send message3. Comment
out unimplmented wait for transaction finality trait. Dial alice.
@rishflab rishflab marked this pull request as ready for review December 1, 2020 04:33
@rishflab rishflab changed the title WIP: Simplify swap and recovery execution Simplify swap and recovery execution Dec 1, 2020
}
}

// // State machine driver for recovery execution
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove this?

}

// State machine driver for recovery execution
pub async fn recover(state: AliceState, io: Io) -> Result<AliceState> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So recover actually mean refund, right?

Copy link
Member

@da-kami da-kami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get it in, totally fine to address the cleanup comments in follow ups :)

@rishflab rishflab merged commit a9bb4e6 into comit-network:master Dec 1, 2020
@D4nte D4nte mentioned this pull request Dec 9, 2020
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants