Commit Graph

316 Commits (53aae5cf5fa402068449a656426658c3d7e985b6)
 

Author SHA1 Message Date
Franck Royer 53aae5cf5f
Use anyhow macro as intended 4 years ago
Franck Royer 51cc44484b
Remove unneeded pub qualifiers 4 years ago
rishflab 9ba89194b0 Rename swarm driver to event loop 4 years ago
rishflab f5d3d54b13 Prevent premature Bob t1 timeout
Bob was hitting the t1 timeout and entering cancel
instead of redeem. This was resolved by increasing
the timeouts to 50.
4 years ago
rishflab 27d1334726 Init Alice behaviour with state0
Previously state0 had to be set after creating Alice's behaviour.
With the event loop we no longer has access to the swarm so
set_state0() has to be called indirectly through a channel. This
means it is difficult to guarantee state0 is being set due to the
asynchronous nature of channels. This was solved by initialising
Alice with state0.
4 years ago
rishflab 3d8866f1a0 Convert event loop to use fused futures select
Co-authored-by: Daniel Karzel <daniel@comit.network>
4 years ago
rishflab 58da1df9dc Create SwarmDriverHandle to resolve ownership issues 4 years ago
rishflab 6f7408ecce Drive swarm in seperate async task
Previously the libp2p swarm had to be manually polled within the
protocol execution code to execute actions such as sending a
message. The swarm is now wrapped in SwarmDriver which polls the
swarm in a seperate task
4 years ago
rishflab f88ed9183b
Merge pull request #54 from comit-network/bob-unhappy-paths
Punish Test
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
Tracing should be initialized by test and the `_guard` kept alive within the test.
Re-using this code in different tests does not really have any additional value.

Instead of specifying what messages we want to include, I went for a filter that excludes noise.
That way we get more useful logging.
4 years ago
rishflab 883a913f30 Remove nonsensical monero * monero multiplication 4 years ago
Franck Royer b47c6cad37
Merge pull request #64 from comit-network/bitcoin-harness-rpc-client
Upgrade bitcoin-harness
4 years ago
rishflab 627b1a9f00 Remove unnecessary execution restart 4 years ago
rishflab 8592ef5f79 Address PR feedback
Add context to logging statements. Use amount type for monero in tests. Remove stale
code and comments.
4 years ago
rishflab 282997c105 Make monero finality calculation clearer 4 years ago
Franck Royer 78674818c2
Upgrade bitcoin-harness 4 years ago
Daniel Karzel 84ce9cd27d
Merge pull request #58 from comit-network/feature-anonymity
Add potential feature section on improving anonymity
4 years ago
Franck Royer 5a1fff5ee3
Merge pull request #62 from D4nte/clean-up-versions
Clean-up dep versions
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
Use reusable test init functions for happy path test

Extract tracing setup to reusable function

Move test initialization to seperate functions

Increase stack size in CI

Fix monero max finality time

Force Bob swarm polling to send message 2

Run Bob state to xmr_locked in punish test to force the sending of
message2. Previously Bob state was run until btc_locked. Although
this was the right thing to do, message2 was not being sent as the
swarm was not polled in btc_locked. Alice punish test passes.

Add info logging to executor
4 years ago
rishflab 5fef68322a Allow Alice to exit execution at a specified state 4 years ago
rishflab 584cc22024 Allow Bob to exit execution at a specified state 4 years ago
Franck Royer cfcd1e7170
Clean-up dep versions
- Use bitcoin-harness 0.2
- Use cross-curve-dleq latest master commit
4 years ago
Daniel Karzel 150e5f2aba
Merge pull request #50 from comit-network/b-prototypes
Add B (multi-maker) prototypes to validation doc
4 years ago
Franck Royer 0ce3c54f13
Merge pull request #60 from D4nte/rust-bitcoin-0.25 4 years ago
Franck Royer 247a993b55
Increase regtest timeout values for Linux CI 4 years ago
Franck Royer 624716d8a7
Upgrade rust-bitcoin to 0.25 4 years ago
Franck Royer fa6b696c45
Merge pull request #53 from D4nte/rishflab-automated 4 years ago
Daniel Karzel ca74166cc7 Add potential feature section on improving anonymity
Lists Dandelion++ and I2P (community guide) besides Tor.
4 years ago
Franck Royer c3e43f50aa
Update bitcoin-harness to specific revision 4 years ago
Franck Royer 765482b0aa
Implement `wait_for_transaction_finality` 4 years ago
Daniel Karzel 65e910e1c1
Merge pull request #46 from comit-network/update-ux-validation-add-peers-manually
Adding peers manually could enhance privacy
4 years ago
Daniel Karzel dc8421fef7
Merge pull request #47 from comit-network/feedback-feature-list
Add a list of potential features proposed by the community
4 years ago
rishflab a9bb4e6bed
Merge pull request #41 from rishflab/automated
Simplify swap and recovery execution
4 years ago
Daniel Karzel df9768293e Add the multi-maker prototype links and table columns 4 years ago
rishflab 1c401aad31 Fix clippy warnings and formatting 4 years ago
rishflab cdffb619dc
Merge pull request #48 from comit-network/revert-35-no-transfer-proof
Revert "No need to send Monero transfer proof from Alice to Bob"
4 years ago
Daniel Karzel 7a30555aa9 Clarify what manual check for tainted coins could mean 4 years ago
Daniel Karzel 5246eece9e Add link to track where and when this feature was mentioned 4 years ago
Daniel Karzel 958c80c262 Add a list of potential features proposed by the community
To help us track what is possible and should be added.
4 years ago
Daniel Karzel 406ddc6b15 Work in review comments 4 years ago
Daniel Karzel 83b6b78d17 Adding peers manually could enhance privacy
This opens up different use cases and might preserve more privacy.
Validate if it is important for users to be able to control who to add (and how).
4 years ago
rishflab fcec465bdb Revert "No need to send Monero transfer proof from Alice to Bob" 4 years ago
rishflab b06321a40f WIP: cleanup 4 years ago
rishflab 47c3ddc6f7 Fix happy path test
Poll bob swarm to send encsig after calling send message3. Comment
out unimplmented wait for transaction finality trait. Dial alice.
4 years ago
rishflab 729e65da5b
Merge pull request #49 from comit-network/cargo-lock
Push cargo lock to git as we are building a binary
4 years ago
rishflab fa243e2fd7
Merge pull request #5 from D4nte/rishflab-automated
Save state0 in the swarm to process message0
4 years ago
Franck Royer 2abeba17f9
Save state0 in the swarm to process message0 4 years ago