Daniel Karzel
02f8eb7f18
Add test for cancel/refund before timelock expired
2021-02-08 21:18:37 +11:00
Daniel Karzel
2d5d70d856
Timeout for Alice waiting for ack for sending transfer proof
...
If dialing Bob fails Alice waits for the acknowledgement of the transfer proof indefinitely.
The timout prevents her execution from hanging.
Added a ToDo to re-visit the ack receivers. They don't add value at the moment and should be removed.
2021-02-08 21:18:37 +11:00
Daniel Karzel
c9adbde5d5
Add test for Bob's manual cancel and refund
2021-02-08 21:17:56 +11:00
Daniel Karzel
ad2aefc2a5
Refund Command
2021-02-08 21:16:32 +11:00
Daniel Karzel
0600a7048e
Cancel command
2021-02-08 21:11:39 +11:00
Franck Royer
dee8c1e335
Remove scopes
2021-02-08 09:16:31 +11:00
Franck Royer
a48823a665
Re-organise Alice state to be more coherent with the msg sequence
2021-02-08 09:16:31 +11:00
Franck Royer
eefb1b3b16
Use event_process = false for Bob
...
As we do not process the event, we can just implement the needed `From`
traits.
2021-02-08 09:16:31 +11:00
Franck Royer
a7b89e2fe4
Use event_process = false for Alice
...
As we do not process the event, we can just implement the needed `From`
traits.
2021-02-08 09:16:29 +11:00
Franck Royer
554ae6c00e
Remove Request Response types
...
These are actually not needed and forces us to cater for variants when
processing requests and responses.
2021-02-08 09:15:21 +11:00
Franck Royer
5a5a1c05f7
Set appropriate name to codec
2021-02-08 09:15:21 +11:00
Franck Royer
a11e894b31
Prepend all libp2p protocols with "comit"
2021-02-08 09:15:21 +11:00
Franck Royer
cfc5cb5206
Remove dead code and combine swap request & one shot codecs
2021-02-08 09:15:20 +11:00
Franck Royer
fc2d8d3861
Rename alice::Message0 to Message0
...
There is now only one message0
2021-02-08 09:15:20 +11:00
Franck Royer
88bf080dc0
rename alice::Message0 to Message1
2021-02-08 09:15:20 +11:00
Franck Royer
18f326ddd1
Rename bob::Message1 to Message2
...
As per sequence diagram.
2021-02-08 09:15:20 +11:00
Franck Royer
0d1be52966
Rename alice::Message1 to Message3
...
As per sequence diagram.
2021-02-08 09:15:20 +11:00
Franck Royer
e74efd38b5
Rename bob::Message2 to Message4
...
As per sequence diagram.
2021-02-08 09:15:20 +11:00
Franck Royer
081237bb6f
Remove unused behaviours
2021-02-08 09:15:20 +11:00
Franck Royer
ecb54958ee
Preemptively Box few messages
2021-02-08 09:15:19 +11:00
Franck Royer
3fa4ffa82c
Implement new behaviour for execution setup
2021-02-05 16:42:46 +11:00
Franck Royer
9ae050abf8
Use correct variable name
2021-02-05 16:42:33 +11:00
Franck Royer
c316ea5244
Upgrade toolchain
...
Needed to use libp2p-async-await
2021-02-04 15:18:33 +11:00
Franck Royer
e82383bcf6
Avoid carrying rng
2021-02-04 15:18:33 +11:00
Philipp Hoenisch
25bf5df122
Merge pull request #172 from comit-network/dead-code
...
Remove dead code
2021-02-04 13:55:02 +11:00
Philipp Hoenisch
8743527df9
Remove dead code
2021-02-03 14:26:36 +11:00
Daniel Karzel
b27363e386
Use correct default data directory
2021-02-02 20:36:58 +11:00
Daniel Karzel
5cb4f3c99d
rename configuration to config
2021-01-29 17:31:18 +11:00
Daniel Karzel
89b3775e05
Rename config to execution_params
2021-01-29 17:27:50 +11:00
Daniel Karzel
802dc61e7e
Configuration for RPC urls and Bitcoin wallet name
2021-01-29 17:21:19 +11:00
Franck Royer
f1c07fbb6d
Remove incorrect todo
2021-01-29 16:13:25 +11:00
Franck Royer
c25d5ff07e
Improve network logging
2021-01-29 16:13:25 +11:00
Franck Royer
f9f17b0e23
Do not consider transfer proof sent until it's ack'd
2021-01-29 15:41:50 +11:00
Franck Royer
b968c98805
remove unnecessary logs
2021-01-29 15:41:50 +11:00
Franck Royer
cc76b201b5
Do not consider encrypted signature sent until it's ack'd
2021-01-29 15:41:50 +11:00
Franck Royer
5af3532cbf
Fix log messages
2021-01-29 15:41:50 +11:00
Franck Royer
108cc1e6cc
Use trait instead of passing struct
2021-01-29 15:41:49 +11:00
Franck Royer
704a8e7b01
Add swap id to tracing context
2021-01-29 13:29:24 +11:00
Franck Royer
b8a9356d1b
Change expiries depending on the test goal
2021-01-29 13:29:24 +11:00
Franck Royer
49b8d19e41
test: Log state on failure
2021-01-29 11:36:13 +11:00
rishflab
0b69573129
Run tests on one thread, increase T1
2021-01-29 11:36:13 +11:00
rishflab
1597f5336b
Restart event loop in tests
...
Alice was attempting to create a new event loop using the same listen addr as the old one which was still running. This commit aborts the event loop before creating a new one.
2021-01-29 11:36:13 +11:00
rishflab
77fc5743a2
Upgrade tokio to 1.0
...
Upgrade bitcoin harness dependency to latest commit
Upgrade backoff to fix failing tests. The previous version of backoff had a broken version of the retry function. Upgraded to a newer comit which fixes this problem.
Upgrade hyper to 0.14 as the 0.13 was bringing in tokio 0.2.24
Upgraded bitcoin harness to version that uses tokio 1.0 and reqwest 0.11
Upgrade reqwest to 0.11. Reqwest 0.11 uses tokio 1.0
Upgrade libp2p to 0.34 in preparation for tokio 1.0 upgrade
2021-01-29 11:36:10 +11:00
Franck Royer
2073e88683
Remove wrapping if ReadOneError
when unnecessary
2021-01-27 14:33:43 +11:00
Franck Royer
2929a8f101
Use the correct protocol support
2021-01-27 14:27:59 +11:00
Franck Royer
b62ef9c2d9
Harmonizing naming
2021-01-27 14:25:45 +11:00
Franck Royer
8fd2620b83
Improve names for messages 4 and 5
2021-01-27 14:16:31 +11:00
Franck Royer
33db688e3a
Bob peer id can be retrieved from the DB
...
This remove branches where Alice resumes from the DB but cannot contact
Bob.
2021-01-22 17:19:20 +11:00
Franck Royer
a910bc2046
Box all messages in enum
...
The messages are very different, best to box them and save size on the
stack as an enum takes as much space on the stack than its bigger
variant.
2021-01-22 17:19:20 +11:00
Franck Royer
d2a1937f51
Use Message4
2021-01-22 17:19:20 +11:00