Commit Graph

  • 6040f2ae63 Re-export event loops rishflab 2021-01-15 10:31:25 +11:00
  • e8fdf62623 Re-export swap function rishflab 2021-01-15 10:20:18 +11:00
  • f5cfe014be Fix imports rishflab 2021-01-15 09:45:00 +11:00
  • 9e6b56564d WIP: Tried to final state outliving the actor test-refactor rishflab 2021-01-14 14:40:49 +11:00
  • a4cd75d394
    Merge #141 bors[bot] 2021-01-14 02:10:10 +00:00
  • 39d95e141d
    Merge pull request #140 from comit-network/revamp-network Franck Royer 2021-01-14 13:09:21 +11:00
  • 6003f87301
    In phase A, message can be send simultaneously so calling them both 0. Franck Royer 2021-01-14 11:52:16 +11:00
  • c5bfbf8da9
    Clarify who is user/SP Franck Royer 2021-01-14 11:48:49 +11:00
  • 31c63f0c4d
    Remove dead code Franck Royer 2021-01-14 11:35:10 +11:00
  • 0fe1f7e173 Create BobActor rishflab 2021-01-14 11:38:28 +11:00
  • 0852f90473
    Remove unused variant Franck Royer 2021-01-14 11:12:27 +11:00
  • 8708d27603 WIP - Add highter order function for test init to solve lifetime issues of cli Daniel Karzel 2021-01-14 11:02:19 +11:00
  • eecee30d99
    Use exact xmr amount, Remove ACK Franck Royer 2021-01-14 10:46:50 +11:00
  • 8ff33bd386
    Use exact xmr amount Franck Royer 2021-01-14 10:45:29 +11:00
  • 6b4a02427a
    Use global counter to name messages Franck Royer 2021-01-14 10:27:33 +11:00
  • 9a260df97d WIP - Working on understanding why the docker cli lifetime is a problem Daniel Karzel 2021-01-14 10:13:33 +11:00
  • 923ab85a86 WIP: Refactor test setup to make it easier to write new tests rishflab 2021-01-13 13:31:36 +11:00
  • c55f3e3403
    Remove Req-Res and update for single market maker use case Franck Royer 2021-01-13 11:47:02 +11:00
  • 9d307a4bea
    Merge #138 bors[bot] 2021-01-13 03:43:11 +00:00
  • 1e08a17bd9
    Last message is also request response Franck Royer 2021-01-13 14:42:38 +11:00
  • 07270df12a Clarify diagram Lucas Soriano del Pino 2021-01-13 11:36:02 +11:00
  • c53d54ddab
    Add sequence diagram Franck Royer 2021-01-13 11:12:57 +11:00
  • 7248af9498 Print each monero confirmation for Bob demo Daniel Karzel 2021-01-12 16:59:59 +11:00
  • f8848aca55 Describe additional state for ToDo that might cause trouble Daniel Karzel 2021-01-11 19:08:24 +11:00
  • 59f01ad680 Remove Todo that was already actioned Daniel Karzel 2021-01-11 19:06:14 +11:00
  • 60f3923a63 Set tracing level to Info in production code Daniel Karzel 2021-01-11 17:38:59 +11:00
  • 00b4f3110f Remove ToDo that is already actioned Daniel Karzel 2021-01-11 16:59:22 +11:00
  • ab9117aa4c Log Alice's lock tx proof receive on Bob's side Daniel Karzel 2021-01-11 16:58:31 +11:00
  • 2790dec6dc
    Merge #119 bors[bot] 2021-01-12 02:20:41 +00:00
  • af45206fde Remember the block-height before XMR lock for generated monero wallet restore height Daniel Karzel 2021-01-06 16:31:47 +11:00
  • 05cb355698 Fix rebase issues rishflab 2021-01-12 10:57:17 +11:00
  • 76d6cf0f2e Re-export swap executor function. rishflab 2021-01-08 12:55:46 +11:00
  • 6358b0c1a9 Fix imports rishflab 2021-01-08 12:36:54 +11:00
  • 7d8fe742e8 Remove lib rishflab 2021-01-08 11:30:33 +11:00
  • ca6ba78862
    Merge #123 bors[bot] 2021-01-11 04:25:26 +00:00
  • 485220929e
    Merge #127 bors[bot] 2021-01-11 03:07:11 +00:00
  • bfc388d264 Enable tracing in monero-harness Daniel Karzel 2021-01-11 12:55:19 +11:00
  • 664958939d Create network::Seed from swap::Seed instead of abstracting over byte array Daniel Karzel 2021-01-08 14:52:29 +11:00
  • f18d01dfaf Deterministic peer id from seed for bob Daniel Karzel 2021-01-08 13:27:56 +11:00
  • 0a21040e08 Deterministic peer id from seed for alice Daniel Karzel 2021-01-08 12:04:48 +11:00
  • 6ffc66867c
    Typo Franck Royer 2021-01-08 11:31:21 +11:00
  • 047f990d05
    Improve error reporting on signature verification Franck Royer 2021-01-07 14:44:31 +11:00
  • ef906876a0
    Increase timelocks on testnet Franck Royer 2021-01-07 13:19:22 +11:00
  • 17356eaff9
    Do not guard waiting for encrypted signature with arbitrary timeout Franck Royer 2021-01-07 11:53:07 +11:00
  • 95ecb02e7a
    Small changes to make debugging easier and tests Franck Royer 2021-01-07 11:46:58 +11:00
  • 9d8f8b0a1f
    P2p socket should be listening for external connections Franck Royer 2021-01-07 11:45:55 +11:00
  • 64ba8d6a87
    Merge pull request #125 from comit-network/reorganise-modules-2 rishflab 2021-01-10 10:07:24 +11:00
  • 1c644cb377 Rename message behaviours rishflab 2021-01-08 12:33:23 +11:00
  • 5d7d72c826 Remove unused import rishflab 2021-01-09 10:10:48 +11:00
  • d8550f9b4f
    Subtract confirmations to current height to get tx height Franck Royer 2021-01-08 15:26:19 +11:00
  • 387a4da2f6 Make modules private rishflab 2021-01-08 11:04:32 +11:00
  • a3e896684c Delete leftover xmr_btc crate rishflab 2021-01-08 10:55:15 +11:00
  • dcea54dbf1 Move protocol parent states into appropriate module rishflab 2021-01-08 10:52:07 +11:00
  • f64eede5d8 Move monero ser/deser to monero module rishflab 2021-01-08 10:44:31 +11:00
  • e7c00d742e Re-export bitcoin and monero types rishflab 2021-01-08 10:41:25 +11:00
  • c900d12593 Merge xmr_btc crate rishflab 2021-01-05 14:08:36 +11:00
  • d80cc393cf Deterministic peer id from seed for bob Daniel Karzel 2021-01-08 12:13:07 +11:00
  • 0e09c08af5 Deterministic peer id from seed for alice Daniel Karzel 2021-01-08 12:04:48 +11:00
  • a0d859147a
    Merge #124 bors[bot] 2021-01-07 23:04:31 +00:00
  • 487b880371 Cleanup unused config param that was accidentally introduced Daniel Karzel 2021-01-07 12:23:29 +11:00
  • 903469f62a
    Merge #118 bors[bot] 2021-01-06 06:19:47 +00:00
  • e031681369 Add minimum monero confirmations to config use it for Bob Daniel Karzel 2021-01-05 17:09:55 +11:00
  • 45b5af4375 WIP - use get_transfer_by_txid to extract the exact block height of tx_lock Daniel Karzel 2021-01-06 16:12:35 +11:00
  • 184f179044
    Merge #115 bors[bot] 2021-01-05 03:42:51 +00:00
  • c6bc45e7a0 Wait for bitcoin tx finality before locking XMR Daniel Karzel 2021-01-05 14:31:10 +11:00
  • 30dd15774e Log Bitcoin and Monero transaction IDs on info instead of debug Daniel Karzel 2021-01-05 14:11:26 +11:00
  • 0977d36703 Set log level to info instead of trace Daniel Karzel 2021-01-05 14:00:07 +11:00
  • 72aa517af8 Work in review comments Daniel Karzel 2021-01-05 11:26:00 +11:00
  • 8a2128e93a Correct monero-wallet-rpc parameter name Daniel Karzel 2021-01-05 11:00:15 +11:00
  • 4d9559fc2e Monero network settings and testnet Daniel Karzel 2021-01-04 20:29:11 +11:00
  • 1f7e72b230 Log bitcoin harness and monero harness Daniel Karzel 2021-01-04 19:23:05 +11:00
  • dd10e68db4
    Merge pull request #113 from comit-network/clippy Franck Royer 2021-01-04 10:10:19 +11:00
  • 97eb24a26c
    Merge #114 bors[bot] 2021-01-03 21:41:55 +00:00
  • bcbc54b569
    Type timelock and block height Franck Royer 2020-12-23 16:04:06 +11:00
  • 81cbc24c46
    Use action to name trait Franck Royer 2020-12-23 15:40:56 +11:00
  • e1e8533862
    Embed state mod in database mod Franck Royer 2020-12-23 15:30:23 +11:00
  • 59708c57e6
    Move Alice and Bob db states in separate modules Franck Royer 2020-12-23 15:26:08 +11:00
  • b410de01df
    Move state.rs under database module Franck Royer 2020-12-23 15:20:24 +11:00
  • 8c7964bfee
    Rename storage.rs to database.rs to reduce terminology variants Franck Royer 2020-12-23 15:17:27 +11:00
  • 5ed18469e4
    Move db state conversion with db type definition Franck Royer 2020-12-23 15:11:09 +11:00
  • 2a778f5644
    Remove overzealous clippy overrides Franck Royer 2020-12-23 15:06:43 +11:00
  • cdf2800fa5
    Align clippy lints Franck Royer 2020-12-23 14:33:29 +11:00
  • ece689f5ca
    There is only one binary, we should use main.rs naming convention Franck Royer 2020-12-23 14:22:04 +11:00
  • 4e91ac467b
    Merge #112 bors[bot] 2020-12-23 03:20:42 +00:00
  • 4150e75488
    Replace Try_From state conversion with From for Bob Franck Royer 2020-12-23 12:14:36 +11:00
  • 5d1b10cc58
    Align Bob DB states with swap states Franck Royer 2020-12-23 12:08:51 +11:00
  • e541f7b83d
    Replace TryFrom with From for Alice states Franck Royer 2020-12-22 16:36:27 +11:00
  • 69e1c2bb27
    Align Alice DB states with swap states Franck Royer 2020-12-22 16:28:14 +11:00
  • a31db63e54
    Improve state names and display Franck Royer 2020-12-22 15:49:30 +11:00
  • f0736d0906
    Remove Refund timelock and T0/T1/T2 Franck Royer 2020-12-22 15:47:09 +11:00
  • 405e377f79
    Rename EncSign to EncSig Franck Royer 2020-12-22 14:53:21 +11:00
  • 1cb0c4fc83 Change warning to error when Bob's refund after t2 failed Daniel Karzel 2020-12-23 12:36:33 +11:00
  • 9c83ca52ad
    Merge #107 bors[bot] 2020-12-23 01:16:42 +00:00
  • cb9d599c25 Change monero blocktime config to match monero harness blocktime rishflab 2020-12-23 10:01:51 +11:00
  • a2fc93e582 Avoid code duplication and nested returns Franck Royer 2020-12-21 16:02:49 +11:00
  • 9d6525c0ae Rename variable for consistency rishflab 2020-12-21 14:35:41 +11:00
  • 9014cb9a13 Fix tx_cancel building and signing rishflab 2020-12-21 11:17:54 +11:00
  • cedc56a160 Return original error in case downcasting to JsonRpcError fails Daniel Karzel 2020-12-18 13:53:24 +11:00
  • 298fbbe6cb Upgrade to bitcoin_harness version that exports jsonrpc_client Daniel Karzel 2020-12-18 13:48:29 +11:00
  • 4903169f4c Check error to determine if tx_cancel has already been published Daniel Karzel 2020-12-17 18:32:06 +11:00