Philipp Hoenisch
1a38bf57f2
Rename inner to client
4 years ago
Philipp Hoenisch
f0fbe785c8
Remove Alice and Bob from utility struct
4 years ago
Philipp Hoenisch
306176b3e6
PR feedback:
...
Removed network prefix and use the same for container and network.
Add sentence explaining prefix
4 years ago
Philipp Hoenisch
a04f04f1a5
Fix failing test due to uninitialized miner
4 years ago
Philipp Hoenisch
0b9e8c145e
Update xmr-btc lib to use new monero-harness
4 years ago
Philipp Hoenisch
2d064f305f
Re-enable other builds
4 years ago
Philipp Hoenisch
3cc32002b0
Refactor out some helper functions to generate blocks after funding
4 years ago
Philipp Hoenisch
3a34800311
Refactor into monero helper struct
4 years ago
Philipp Hoenisch
738c67a421
Simple fund and send in test
4 years ago
Philipp Hoenisch
f5643a4ea4
Miner working
4 years ago
Philipp Hoenisch
0dcb4e56be
Have monerod running in own container
4 years ago
Philipp Hoenisch
7b101a9c98
upgrade testcontainers
4 years ago
rishflab
d5c7afd7f8
Merge pull request #34 from comit-network/no-config
...
Add CLI config and remove conditional compile flags
4 years ago
rishflab
a44303f839
Add monerod to config
...
Fixed rebase issues
4 years ago
rishflab
7afd316210
Construct tor transport for Bob
4 years ago
rishflab
3b008c38a6
Remove redundant code and stale comments
4 years ago
rishflab
249f273d1b
Remove stale comments
4 years ago
rishflab
5971ef1f28
Fix clippy warnings
4 years ago
rishflab
606c48c752
Format swap crate Cargo.toml
4 years ago
rishflab
796d0b3439
Extract transport creation and remove tor conditional compile
...
The numerous tor conditional compile flags were removed by
extracting transport creation to the main statement. A tor
transport is created if Alice specifies a tor port using the CLI.
4 years ago
rishflab
0ca511bf8a
Remove hardcoded configuration
...
The hardcoded configuration was replaced with CLI
configuration options. CLI based config was chosen
over a config file as it does not access and clutter
the user's file system. By CLI options depend on whether
the program is run in Alice or Bob mode.
4 years ago
Lucas Soriano
62c9f22b64
Merge pull request #30 from comit-network/use-execution-in-swap
...
Execute on-chain protocol after handshake
4 years ago
Lucas Soriano del Pino
92c7e8e84f
Run swap e2e test without tor feature
...
Not worth automatically testing both `tor` and `not(tor)`, it should
not make a difference.
4 years ago
Lucas Soriano del Pino
792fa351c8
Upgrade bitcoin-harness dependency
...
From dev-branch to master.
4 years ago
Lucas Soriano del Pino
7fa7641feb
Clean up some logs and comments
4 years ago
Tobin C. Harding
4d4acde476
Bubble up an event when Bob receives message 3 response
...
Before this patch Bob is not sending message 3. This is because we are not
polling Bob's swarm correctly. To fix it we can just mimic the other NB's and
bubble up an event when Bob receives message 3 response from Alice, this way we
can `await` upon this event which triggers polling, making Bob's swarm send the
message.
4 years ago
Lucas Soriano del Pino
a37f43a1ba
wip: Provide enough funds to both parties
...
Also use cosntant backoff retry strategy as opposed to exponential
backoff. This is in case retrying several times quickly causes the
retry intervals to become large enough that the test is very slow
and/or the Bitcoin lock transaction expires.
The current problem occurs on the last message i.e. Bob sending
tx_redeem_encsig to Alice. The action is yielded for Bob to do it, but
Alice appears to never receive it (unconfirmed claim, requires more
logging).
4 years ago
Lucas Soriano del Pino
eb6bbe6180
wip: Fix bug where bob was sending two amount request
4 years ago
Lucas Soriano del Pino
9f32cd988e
wip: Use same timelock value for refund and punish
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
119f2a7c54
Add error logging to request_response
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
Tobin C. Harding
39f86154ce
Use serde_cbor instead of serde_json
...
We have serde trait implementations that use `serde_cbor` which is a superset of
josn. We cannot use `serder_json` to ser/deser these objects.
4 years ago
Tobin C. Harding
2bd4977fe4
Increase read buffer size
...
Our messages are quite big, increase the read buffer to 1 megabyte to
accommodate them.
4 years ago
Tobin C. Harding
be37725303
monero-harness: Use tracing
4 years ago
Lucas Soriano del Pino
9384b0cf3c
[WIP] Swap app e2e test
4 years ago
Lucas Soriano del Pino
9e30bd5151
Generate addresses as late as possible
4 years ago
Lucas Soriano del Pino
3f43581da7
Implement traits Receive{BitcoinRedeemEncsig, TransferProof}
...
Unfortunately, I had to put the wrap the swarm in Alice's `Network`
struct in an `Arc<Mutex<T>>` in order to be able to use `backoff` to
control the retry mechanism. This is because the stream of events
cannot be turned into a `SharedFuture` (unlike Bob's).
It would be good to find an alternative solution.
4 years ago
Lucas Soriano del Pino
a4e4c27bee
Execute Bob's on-chain protocol after handshake
...
Co-authored-by: Tobin C. Harding <tobin@coblox.tech>
4 years ago
Lucas Soriano del Pino
4ee82a5a2a
Execute Alice's on-chain protocol after handshake
...
Co-authored-by: Tobin C. Harding <tobin@coblox.tech>
4 years ago
Philipp Hoenisch
dbd7f2b0c9
Merge pull request #27 from comit-network/tor-swap
4 years ago
Philipp Hoenisch
b8fd9a734f
Use full path imports for dependencies to reduce cfg hell
4 years ago
Tobin C. Harding
a1351e5461
Do not declare 'port' variable
4 years ago
Tobin C. Harding
464b699426
Fail if user passes in local port for non-tor usage
...
Local port is only used when running behind tor. Fail if user passes a local
port number when running in non-tor mode.
4 years ago
Tobin C. Harding
42d194f758
Use fully qualified path for bail
4 years ago
Tobin C. Harding
5e35904101
Use an option for the local port
...
We can wrap the local port in an option and pass None when we are not using Tor.
This reduces code duplication.
4 years ago
Philipp Hoenisch
7f3aa644a0
Extre CI flag to run clippy for wihtout all features enabled
4 years ago