Commit Graph

  • 33db688e3a
    Bob peer id can be retrieved from the DB Franck Royer 2021-01-22 14:56:11 +11:00
  • a910bc2046
    Box all messages in enum Franck Royer 2021-01-22 14:38:16 +11:00
  • d2a1937f51
    Use Message4 Franck Royer 2021-01-22 14:21:27 +11:00
  • 024d21d66a Restart event loop in tests rishflab 2021-01-22 13:33:31 +11:00
  • 124d6f1ebb
    Introduced Message 4 sent by Alice to replace message 2 response Franck Royer 2021-01-22 11:13:28 +11:00
  • 761fd7959f Improve/fix error handling/logging rishflab 2021-01-22 16:58:54 +11:00
  • edb93624f3
    Introduce one shot code Franck Royer 2021-01-22 11:05:46 +11:00
  • 9a5e35c1bd
    Rename bob::Message2 to Message5 Franck Royer 2021-01-22 10:12:36 +11:00
  • 07e1456b56
    Move test job env to command line Franck Royer 2021-01-22 16:26:27 +11:00
  • a76482a50c
    Build tests first to reduce output on the test step Franck Royer 2021-01-22 16:25:44 +11:00
  • 0b8e2a069f
    Remove usage of rust nightly in CI Franck Royer 2021-01-22 16:24:59 +11:00
  • f574787700
    test: Increase time to act for Bob Franck Royer 2021-01-21 19:16:11 +11:00
  • a5af3e22ac Upgrade tokio to 1.0 rishflab 2021-01-15 16:58:16 +11:00
  • f24f77fcd1
    Move tests under src Franck Royer 2021-01-21 14:15:19 +11:00
  • 91fe18a796
    Merge #154 bors[bot] 2021-01-21 22:01:22 +00:00
  • 10eeecfe54
    Remove dependency of main.rs on lib.rs Franck Royer 2021-01-21 14:00:37 +11:00
  • f2a25ee49b
    Move definitions out of lib.rs Franck Royer 2021-01-21 13:43:25 +11:00
  • b88a777bae
    Remove dead code Franck Royer 2021-01-21 13:40:54 +11:00
  • e2170e60a7
    Merge #155 bors[bot] 2021-01-21 12:48:41 +00:00
  • 33a9057b1f Move run_until is_target_state comparison functions into testutils Daniel Karzel 2021-01-21 19:37:52 +11:00
  • 3593f5323a Bob saves lock proof after received so he can resume swap Daniel Karzel 2021-01-21 16:39:30 +11:00
  • c5cfc2ce20
    Merge #153 bors[bot] 2021-01-21 08:11:41 +00:00
  • 433704e48c Top to bottom pub mod then mod then pub use then use (incl. use crate and use self) Daniel Karzel 2021-01-21 17:09:53 +11:00
  • 44c4b5dcea Remove newlines from import statements to avoid problems Daniel Karzel 2021-01-21 11:20:57 +11:00
  • 4e858197c9
    Merge #149 bors[bot] 2021-01-21 06:27:38 +00:00
  • fbfc17c489
    Merge #142 bors[bot] 2021-01-21 02:18:26 +00:00
  • 8c76abcd37
    Remove TODO Franck Royer 2021-01-14 13:45:49 +11:00
  • 898b8bf8b0
    Remove dead code Franck Royer 2021-01-14 13:43:02 +11:00
  • ae8134f04e
    Replace amounts messages with swap res/req Franck Royer 2021-01-14 13:23:03 +11:00
  • 6a75c840b5 Fix Alice redeem scenario Daniel Karzel 2021-01-19 14:44:54 +11:00
  • 9fa900dce8
    Merge pull request #148 from comit-network/properly-wait-for-tx-finality-for-assertion-on-bitcoin-balance Daniel Karzel 2021-01-21 12:06:12 +11:00
  • 8a7d746e96 Wait for Bob's refund finality Daniel Karzel 2021-01-19 12:43:20 +11:00
  • d6bf66c1f4
    Merge #150 bors[bot] 2021-01-20 11:30:35 +00:00
  • 94045b9a69
    Use builder in tests Franck Royer 2021-01-20 21:42:35 +11:00
  • c44b867d01
    Delay the wrapping in Arc Franck Royer 2021-01-20 13:36:38 +11:00
  • 83b72c0a45
    Make make_init_state and init_loop associated to alice::SwapFactory Franck Royer 2021-01-20 13:06:10 +11:00
  • c11042ff0d
    Use builder terminology instead of factory Franck Royer 2021-01-19 15:21:40 +11:00
  • 9148af2dbe
    bob::SwapFactory should be consumed once a swap is returned Franck Royer 2021-01-19 15:09:05 +11:00
  • 652bfa14a9
    Remove unnecessary pub qualifiers Franck Royer 2021-01-19 15:05:13 +11:00
  • b21dc03ed0
    alice::SwapFactory should be consumed once a swap is returned Franck Royer 2021-01-19 15:03:30 +11:00
  • 9b32409b8d
    Remove unnecessary allow(clippy) Franck Royer 2021-01-19 14:50:00 +11:00
  • 9e3ef7ea24
    Remove StartingBalances from release code Franck Royer 2021-01-19 14:48:07 +11:00
  • 181999e04f
    Remove unnecessary alice qualifiers in alice::SwapFactor Franck Royer 2021-01-19 14:40:48 +11:00
  • 3bc76a91c6
    Make init_state associated to bob::SwapFactory Franck Royer 2021-01-19 14:39:30 +11:00
  • f0e6e45d56
    Remove unecessary bob qualifier Franck Royer 2021-01-19 14:37:49 +11:00
  • dbc633ea06
    Remove unecessary connect qualifier Franck Royer 2021-01-19 14:37:15 +11:00
  • e26629b593
    Remove unecessary fields from bob::SwapFactory Franck Royer 2021-01-19 14:36:24 +11:00
  • 3c68026cfe
    Move init event loop in bob::SwapFactory Franck Royer 2021-01-19 14:22:09 +11:00
  • 96b1b18037
    Keep terminology consistent Franck Royer 2021-01-19 14:16:56 +11:00
  • 05669c749c
    Merge #147 bors[bot] 2021-01-20 02:41:27 +00:00
  • 28429fa9fe Revert log statement Daniel Karzel 2021-01-20 13:30:35 +11:00
  • 37f619dbfc Move StartingBalances into protocol module Daniel Karzel 2021-01-20 13:29:46 +11:00
  • 41e335fc2d Error messages instead of unreachable Daniel Karzel 2021-01-20 10:50:25 +11:00
  • 2dceab28a4 Derive Default Daniel Karzel 2021-01-20 10:44:24 +11:00
  • acfd43ee79 Rename Test to TestContext and argument to ctx Daniel Karzel 2021-01-20 10:40:40 +11:00
  • e91987e23f Fix rand import Daniel Karzel 2021-01-20 10:38:28 +11:00
  • 170e90ffed Rename do_run_until to _run_until_internal Daniel Karzel 2021-01-20 10:37:16 +11:00
  • 1429cd7802
    Add note on simultanous execution of the protocol Franck Royer 2021-01-19 12:15:29 +11:00
  • a8fe340a02
    Rename crate to libp2p-async-await Franck Royer 2021-01-19 12:11:12 +11:00
  • efa0257ea2
    Move tests to library test folder Franck Royer 2021-01-19 11:59:14 +11:00
  • 8f3c22f1d5
    Provide write/read message abstraction on subtreams Franck Royer 2021-01-19 11:54:51 +11:00
  • e0b49758f0
    Log error on dial upgrade failure Franck Royer 2021-01-19 11:38:50 +11:00
  • c44aa3e035
    Reduce number of variants in out events by using Result Franck Royer 2021-01-19 11:32:12 +11:00
  • 827fe5d39e
    Handle clippy warnings Franck Royer 2021-01-19 11:26:57 +11:00
  • cdcfc575d0
    Handle substream request as part of outbound protocol state Franck Royer 2021-01-19 11:24:20 +11:00
  • 20152a926d
    Express how complementary the pending states are Franck Royer 2021-01-19 10:54:17 +11:00
  • c166dd5a63
    Improve protocol state variant names Franck Royer 2021-01-19 10:50:23 +11:00
  • a8595e5a12
    Move separate inbound/outbound options to one enum Franck Royer 2021-01-19 10:45:47 +11:00
  • 4b71739dc9
    Move protocol states in an enum Franck Royer 2021-01-19 10:25:29 +11:00
  • 19f11697fb
    Differentiate inbound and outbound negotiated subtreams Franck Royer 2021-01-19 09:50:59 +11:00
  • 82974412b2 Remove roles from SwapFactory name as implied by module and cleanup Daniel Karzel 2021-01-19 09:43:50 +11:00
  • 75f89f3b25 Use Bob swap factory in production Daniel Karzel 2021-01-18 21:57:17 +11:00
  • e56c48ee23 Remove unused type Daniel Karzel 2021-01-18 21:27:59 +11:00
  • 3398ef8236 Use Alice swap factory in production Daniel Karzel 2021-01-18 21:24:13 +11:00
  • 67e925fe1f Refactor Bob's peer-id and identity to be handled on the outside Daniel Karzel 2021-01-18 20:41:58 +11:00
  • 0c19af9090 Refactor Alice's peer-id and identity to be handled on the outside Daniel Karzel 2021-01-18 20:33:10 +11:00
  • 8bf467b550 Make the factory code usable in production Daniel Karzel 2021-01-18 19:56:43 +11:00
  • e4795fa4ee Fix recursive call to swap by using run_until Daniel Karzel 2021-01-18 18:08:13 +11:00
  • 35c42263df
    Merge #145 bors[bot] 2021-01-18 11:07:36 +00:00
  • f2c14c10c0
    Merge #146 bors[bot] 2021-01-18 05:47:24 +00:00
  • a7f68e4aa1
    Merge #144 bors[bot] 2021-01-18 04:49:52 +00:00
  • 9a823dca4c
    Do not introduced State6 Franck Royer 2021-01-18 15:26:06 +11:00
  • d5d7389d25
    Initial working version Thomas Eizinger 2021-01-18 15:24:09 +11:00
  • 974b6ebf6f
    Merge #136 bors[bot] 2021-01-18 03:51:45 +00:00
  • d4316f0cfe Print each monero confirmation for Bob Daniel Karzel 2021-01-12 16:59:59 +11:00
  • 8615aaed6e Make lock-tx id available in redeem/punish state to be able to assert exact fees Daniel Karzel 2021-01-18 14:45:47 +11:00
  • 317b251302 Re-arrange order of structs/functions in testutils Daniel Karzel 2021-01-18 13:03:56 +11:00
  • 7832ee94f3 Remove unused code and only expose necessary functionality Daniel Karzel 2021-01-18 12:57:27 +11:00
  • 8ef8240771 Refactor refund test Daniel Karzel 2021-01-18 12:50:49 +11:00
  • 55024572ae Refactor punish test and punish assertions Daniel Karzel 2021-01-18 10:57:52 +11:00
  • 73a2841ec5 Refactor happy path bob restart tests Daniel Karzel 2021-01-18 10:16:46 +11:00
  • 6877ae4d6f
    Initial draft Thomas Eizinger 2021-01-15 19:37:36 +11:00
  • 8a2eb07928 Harmonize names and structure Daniel Karzel 2021-01-15 19:34:51 +11:00
  • bede1c13dd Refactor Bob's side (happy path + alice restart) Daniel Karzel 2021-01-15 19:29:26 +11:00
  • 59f9a1c286 Fix usage of StartingBalance in Alice and Bob Daniel Karzel 2021-01-15 19:03:11 +11:00
  • 87edec0d50 Rename Alice's factory to harness and include redeem assertions Daniel Karzel 2021-01-15 18:34:46 +11:00
  • 152c8d7eba Refactor Alice restart test by introducing factory for creating Alices Daniel Karzel 2021-01-15 12:44:15 +11:00
  • b031bc5e42 Re-export run_until Daniel Karzel 2021-01-15 11:49:47 +11:00
  • 537d05e01e Add reusable test function rishflab 2021-01-15 11:26:32 +11:00
  • 9cbf6e9774 Re-export event loop handles rishflab 2021-01-15 10:42:49 +11:00