Daniel Karzel
3593f5323a
Bob saves lock proof after received so he can resume swap
2021-01-21 23:35:54 +11:00
Daniel Karzel
433704e48c
Top to bottom pub mod
then mod
then pub use
then use
(incl. use crate
and use self
)
2021-01-21 19:10:51 +11:00
Daniel Karzel
44c4b5dcea
Remove newlines from import statements to avoid problems
...
Rust fmt automatically groups the imports (from top to bottom) as `pub use` `use crate` and `use`.
There is no need to introduce sections which cause annoyance when auto importing using the IDE.
2021-01-21 19:10:51 +11:00
Daniel Karzel
d4316f0cfe
Print each monero confirmation for Bob
...
This is to provide more context to the user.
2021-01-18 14:50:59 +11:00
Daniel Karzel
af45206fde
Remember the block-height before XMR lock for generated monero wallet restore height
...
Speeds up wallet creation, because only the blocks after the recorded height will be scanned.
2021-01-12 13:18:49 +11:00
Daniel Karzel
bfc388d264
Enable tracing in monero-harness
2021-01-11 12:55:19 +11:00
Franck Royer
989d9d08d3
Reduce verbosity of monero block generate trace
2020-12-10 13:39:12 +11:00
rishflab
fcec465bdb
Revert "No need to send Monero transfer proof from Alice to Bob"
2020-12-01 14:52:05 +11:00
Lucas Soriano del Pino
620216a596
Remove need to send Monero transfer proof from Alice to Bob
2020-11-13 13:15:02 +11:00
Lucas Soriano del Pino
7371dfb055
Test that a watch only wallet can be loaded from address + view key
2020-11-13 13:09:16 +11:00
Philipp Hoenisch
bca439ada5
Use random prefix
2020-11-03 16:52:00 +11:00
Philipp Hoenisch
1a38bf57f2
Rename inner to client
2020-11-03 16:51:26 +11:00
Philipp Hoenisch
f0fbe785c8
Remove Alice and Bob from utility struct
2020-11-03 16:51:26 +11:00
Philipp Hoenisch
306176b3e6
PR feedback:
...
Removed network prefix and use the same for container and network.
Add sentence explaining prefix
2020-11-03 16:51:26 +11:00
Philipp Hoenisch
a04f04f1a5
Fix failing test due to uninitialized miner
2020-11-03 16:51:26 +11:00
Philipp Hoenisch
0b9e8c145e
Update xmr-btc lib to use new monero-harness
2020-11-03 16:51:26 +11:00
Philipp Hoenisch
3cc32002b0
Refactor out some helper functions to generate blocks after funding
2020-11-03 16:51:26 +11:00
Philipp Hoenisch
3a34800311
Refactor into monero helper struct
2020-11-03 16:51:25 +11:00
Philipp Hoenisch
738c67a421
Simple fund and send in test
2020-11-03 16:51:25 +11:00
Philipp Hoenisch
f5643a4ea4
Miner working
2020-11-03 16:51:25 +11:00
Philipp Hoenisch
0dcb4e56be
Have monerod running in own container
2020-11-03 16:51:25 +11:00
Philipp Hoenisch
7b101a9c98
upgrade testcontainers
2020-11-03 16:51:25 +11:00
Tobin C. Harding
be37725303
monero-harness: Use tracing
2020-10-30 14:04:27 +11:00
Philipp Hoenisch
c0109d12cd
Use lib to ensure ports are free
2020-10-23 11:28:58 +11:00
Lucas Soriano del Pino
50ed74319f
Simplify xmr-btc/tests Monero wallet
...
- Make it the same for Alice and Bob.
- Make it contain a wallet client instead of the `Monero` struct.
Also:
Remove `Container` from inside `Monero` struct. The caller of `new`
can simply ensure that `Container` is not dropped to keep the
container alive.
This makes the `Monero` struct easier to work with, as it just holds
the data necessary to create the different clients created during
`init`, and does not have any lifetime restrictions.
2020-10-20 12:18:27 +11:00
Lucas Soriano del Pino
b9c202efc9
Remove redundant license
2020-09-28 17:18:02 +10:00
Lucas Soriano del Pino
1f99cf001c
Swap Monero for Bitcoin
...
Co-authored-by: rishflab <rishflab@hotmail.com>
Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
Co-authored-by: Tobin C. Harding <tobin@coblox.tech>
2020-09-28 17:15:57 +10:00