Commit Graph

256 Commits (daa572e5bf7fd1f42c26adaecff08e0b4989a32a)

Author SHA1 Message Date
Daniel Karzel f18d01dfaf Deterministic peer id from seed for bob
3 years ago
Daniel Karzel 0a21040e08 Deterministic peer id from seed for alice
3 years ago
rishflab dcea54dbf1 Move protocol parent states into appropriate module
3 years ago
rishflab c900d12593 Merge xmr_btc crate
3 years ago
Daniel Karzel 487b880371 Cleanup unused config param that was accidentally introduced
3 years ago
Daniel Karzel e031681369 Add minimum monero confirmations to config use it for Bob
3 years ago
Daniel Karzel 4d9559fc2e Monero network settings and testnet
3 years ago
Franck Royer e1e8533862
Embed state mod in database mod
3 years ago
Franck Royer 59708c57e6
Move Alice and Bob db states in separate modules
3 years ago
Franck Royer b410de01df
Move state.rs under database module
3 years ago
Franck Royer 8c7964bfee
Rename storage.rs to database.rs to reduce terminology variants
3 years ago
Franck Royer 4150e75488
Replace `Try_From` state conversion with `From` for Bob
3 years ago
Franck Royer e541f7b83d
Replace `TryFrom` with `From` for Alice states
3 years ago
Franck Royer a31db63e54
Improve state names and display
3 years ago
Franck Royer f0736d0906
Remove Refund timelock and T0/T1/T2
3 years ago
Franck Royer 405e377f79
Rename `EncSign` to `EncSig`
3 years ago
Franck Royer 297b15e3ce
Remove async block when it is not needed
3 years ago
Franck Royer e079b84500
Ensure we wait for other party to complete
3 years ago
Daniel Karzel 8296490764
Merge pull request #111 from comit-network/trace-xmr-btc
3 years ago
Daniel Karzel 5f8b7f2624 Fix tracing subscribe filter for xmr-btc`
3 years ago
Franck Royer 49b84d84b9
Add address at the start
3 years ago
Franck Royer 1e4b115556
Separate Bob restart tests
3 years ago
Franck Royer e366d3a73b
Join all futures to avoid hanging tests
3 years ago
Franck Royer 1a4bd0e2b4
Bob refunds swap after restart that requires communication
3 years ago
Franck Royer d9ea7ab605
Only carry the tx_lock_id instead of the full state
3 years ago
Franck Royer edfab58246
Scope alice db
3 years ago
Franck Royer dc96b3d1e9
Stop running first event loop after Alice restarts
3 years ago
Franck Royer 638143a10d
Replace hard coded port by dynamic available one
3 years ago
Franck Royer 2212758d17
Rename refund test as it is alice specific
3 years ago
bors[bot] 3db71997d3
Merge #99
4 years ago
Daniel Karzel 773eebc723 Cleanup resume_from_database functions only used in tests
4 years ago
Daniel Karzel 43d05935e7 Remove tor module
4 years ago
rishflab 9d266fc648 Add balance assertions to restart tests
4 years ago
Franck Royer 5ba830f3bf
Replace swap `recover` terminology with `resume`
4 years ago
Daniel Karzel b83ab71669
Split up tests into separate files to overcome CI failure
4 years ago
Daniel Karzel 7cae6a9e4d
Add Bob restart test
4 years ago
Daniel Karzel 4ec2da29a0
Modularize Bob's test setup (separate init for state, event_loop)
4 years ago
Daniel Karzel 9a930af33f
Remove duplicated restart+refund test, move tests into separate files
4 years ago
Daniel Karzel 91d4d5da25
Cleanup swap execution to not return EventLoopHandle, refactor both_refund test
4 years ago
Daniel Karzel bf39c34ada
Alice restart and refund test if restarted before encsig learner
4 years ago
Daniel Karzel 8c929564ef
Refactor container initialization
4 years ago
rishflab 143d8bc07d
Move message0 response handler out of NB
4 years ago
Daniel Karzel 4143394767
Add recovery function for Alice
4 years ago
rishflab 4b00141c29
Fix happy path test
4 years ago
Franck Royer 7092af457a
Introduced DB for Alice & Bob
4 years ago
Franck Royer 4ce8695dfc
Align with origin/database
4 years ago
Franck Royer 1a5b9f9fa9
Update tests after rebase
4 years ago
Franck Royer caf903acda
wip: Add test for when bob restarts
4 years ago
Franck Royer 7e0a1ffe84
Remove generator for bob
4 years ago
Franck Royer c6af5eb9ac
Introduce test where alice restarts before all communications are done
4 years ago
Franck Royer 3580b7ed2c
Add test where Alice restart after encsign is learned
4 years ago
Franck Royer a22efaa7bc
Remove unneeded peer id argument
4 years ago
Franck Royer 9323f22009
Reorder calls
4 years ago
Franck Royer a24d1a49b9
Remove unneeded `as_ref_calls`
4 years ago
Franck Royer 1c7cc7ee46
Scope futures' instanciation
4 years ago
Franck Royer 6226e5789f
Introduce test where alice restart mid-swap
4 years ago
Franck Royer 71a0832ef4
Add zero const to monero::Amount
4 years ago
Franck Royer 64b021daf4
Save Alice states in db
4 years ago
Franck Royer 11cea9ba69
Remove passing alice peer id
4 years ago
rishflab 082f4eb005 Use unused port in refund test
4 years ago
rishflab 7af4b6980a Test Alice refunds after Bob refund
4 years ago
rishflab 773390886b Test that Bob refunds if Alice fails to act
4 years ago
rishflab f806ad7231 Assert balances after punish
4 years ago
bors[bot] 9fecf7008e
Merge #61
4 years ago
Daniel Karzel 03b8e5f52e Upgrade CLI for mainnet test
4 years ago
Daniel Karzel aad7a22f81 Utility function for initializing tracing for tests
4 years ago
Franck Royer c0478d7191
Move expiries to config
4 years ago
rishflab 9ba89194b0 Rename swarm driver to event loop
4 years ago
rishflab f5d3d54b13 Prevent premature Bob t1 timeout
4 years ago
rishflab 27d1334726 Init Alice behaviour with state0
4 years ago
rishflab 3d8866f1a0 Convert event loop to use fused futures select
4 years ago
rishflab 58da1df9dc Create SwarmDriverHandle to resolve ownership issues
4 years ago
rishflab 6f7408ecce Drive swarm in seperate async task
4 years ago
rishflab bd8e6e36e0 Fix monero blocktime config
4 years ago
Daniel Karzel 1a2857af29 Properly init tracing per test and reverse the filter to be exclusive
4 years ago
rishflab 883a913f30 Remove nonsensical monero * monero multiplication
4 years ago
rishflab 627b1a9f00 Remove unnecessary execution restart
4 years ago
rishflab 8592ef5f79 Address PR feedback
4 years ago
rishflab b4ac69fa9c Reduce stack size to prevent CI resource issues
4 years ago
rishflab e4eed7b1a5 Change multiaddr for test runs
4 years ago
rishflab c91e9652aa Add alice punish test
4 years ago
Franck Royer 765482b0aa
Implement `wait_for_transaction_finality`
4 years ago
rishflab 1c401aad31 Fix clippy warnings and formatting
4 years ago
rishflab 47c3ddc6f7 Fix happy path test
4 years ago
Franck Royer 9e13034e54 Extract execution details from driving loop
4 years ago
rishflab 24631d464d Add test for recursive executor
4 years ago
Franck Royer c4cd64d134 Implemented Alice transition from `Started` to `Negotiated`
4 years ago
rishflab ff7daf16f3 WIP: Test simplified swap execution
4 years ago
Lucas Soriano del Pino 483c819e17 Correctly re-export types from bitcoin and monero modules
4 years ago
Lucas Soriano del Pino f5ff50157e Some more fixes and comments after testing Alice's recovery
4 years ago
Lucas Soriano del Pino 28225f8643 Implement swap recover function for Alice
4 years ago
Lucas Soriano del Pino 33a111d879 Move Swap state out of storage
4 years ago
Lucas Soriano del Pino ac2cfd7f65 Print swap history on --history flag
4 years ago
Lucas Soriano del Pino 823add218e Remove temporary test tracing guards
4 years ago
Lucas Soriano del Pino a26890001b Fix swap e2e test
4 years ago
Philipp Hoenisch 981fcacc95
Make swap e2e test work with new monerod lib
4 years ago
rishflab a44303f839 Add monerod to config
4 years ago
Lucas Soriano del Pino 92c7e8e84f Run swap e2e test without tor feature
4 years ago
Lucas Soriano del Pino a37f43a1ba wip: Provide enough funds to both parties
4 years ago
Lucas Soriano del Pino 62c4501926 wip: Add xmr_btc tracing filter
4 years ago
Lucas Soriano del Pino ae87c10cae wip: fixed message0
4 years ago
Tobin C. Harding b8ab4b4eee wip: add env filter
4 years ago
Tobin C. Harding 3e2f0b74a2 Do not trace events meant for other NBs
4 years ago
Tobin C. Harding c464555f5e Enable trace output
4 years ago
Lucas Soriano del Pino 9384b0cf3c [WIP] Swap app e2e test
4 years ago
Philipp Hoenisch 17b32fed90
Moving tor into swap
4 years ago