Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[r2r] Update rust-lightning to latest version, 0_confs channels, complete btc spv, multiple fixes #1452

Merged
merged 38 commits into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d06391d
use async_blocking wip
shamardy Jul 27, 2022
b74f4de
use async_blocking where it's needed completed
shamardy Jul 29, 2022
a51e1df
get default fee from rpc when starting lightning + update when a new …
shamardy Aug 1, 2022
14d37d7
wip: upgrade rust-lightning to v0.0.108
shamardy Aug 3, 2022
cce603c
Merge remote-tracking branch 'origin/dev' into lightning-wallet-final…
shamardy Aug 3, 2022
ab5887b
fix wasm compilation
shamardy Aug 4, 2022
0d80394
wip: upgrade rust-lightning to v0.0.108, update persister code
shamardy Aug 4, 2022
8ef776f
Merge remote-tracking branch 'origin/dev' into lightning-wallet-final…
shamardy Aug 5, 2022
a3974eb
fix clippy and udep errors
shamardy Aug 5, 2022
6e66860
Implement trusted nodes for inbound 0-conf channels, release htlcs im…
shamardy Aug 5, 2022
4ffe1eb
Update to V0.0.108 complete, added more features: list_trusted_node R…
shamardy Aug 8, 2022
b806a43
fix wasm compilation
shamardy Aug 8, 2022
37efa37
update rust-lightning to v0.0.110 wip
shamardy Aug 9, 2022
c366a33
update rust-lightning to v0.0.110 wip, remove InvoiceForRPC now that …
shamardy Aug 10, 2022
ac0a87b
Merge remote-tracking branch 'origin/dev' into lightning-wallet-final…
shamardy Aug 10, 2022
5552dda
update rust-lightning to v0.0.110 wip: refactor some code due to update
shamardy Aug 10, 2022
2dfb499
update rust-lightning to v0.0.110 complete: add update_channel RPC
shamardy Aug 10, 2022
00d2af2
move lightning background processor to MmCtx, so it can be dropped wh…
shamardy Aug 12, 2022
eff1370
validating headers WIP
shamardy Aug 15, 2022
165d6a2
headers validation wip: make block headers storage non-optional
shamardy Aug 17, 2022
e85eddf
fix validate spv proof to use a validated header from storage + other…
shamardy Aug 18, 2022
e0d6738
get_last_block_height from storage return 0 if db is empty
shamardy Aug 18, 2022
858c8fd
wip: add block headers synchronization to utxo activation v2
shamardy Aug 23, 2022
59d1d91
fix tests
shamardy Aug 23, 2022
2a95fa3
wip: add block headers synchronization to utxo activation v2 + test t…
shamardy Aug 25, 2022
f9c1274
Merge remote-tracking branch 'origin/dev' into lightning-wallet-final…
shamardy Aug 25, 2022
c3aa951
fix wasm
shamardy Aug 25, 2022
c6efe5a
get confirmed lightning tx from rpc if spv is not enabled
shamardy Aug 26, 2022
9283e01
fix todo comments
shamardy Aug 26, 2022
6d6ab4e
fix typo
shamardy Aug 26, 2022
36fe8e5
First review fixes
shamardy Aug 30, 2022
a7e95e9
fix check tests
shamardy Aug 30, 2022
ded9078
second review fixes wip
shamardy Sep 1, 2022
64efb72
second review fixes wip: fix default fees
shamardy Sep 2, 2022
f092279
second review fixes complete
shamardy Sep 2, 2022
632401c
review fixes wip: invalid_data_err, fix ordering
shamardy Sep 5, 2022
83d34f3
review fixes: block_headers_status_notifier, block_headers_status_wat…
shamardy Sep 6, 2022
87a223e
Merge remote-tracking branch 'origin/dev' into lightning-wallet-final…
shamardy Sep 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
184 changes: 133 additions & 51 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ skip = [
{ name = "rustls-pemfile", version = "*" },
{ name = "scopeguard", version = "*" },
{ name = "sct", version = "*" },
{ name = "secp256k1", version = "*" },
{ name = "secp256k1-sys", version = "*" },
{ name = "semver", version = "*" },
{ name = "send_wrapper", version = "*" },
{ name = "sha2", version = "*" },
Expand Down
24 changes: 13 additions & 11 deletions mm2src/coins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ async-trait = "0.1.52"
base64 = "0.10.0"
base58 = "0.2.0"
bip32 = { version = "0.2.2", default-features = false, features = ["alloc", "secp256k1-ffi"] }
bitcoin = "0.27.1"
bitcoin_hashes = "0.10.0"
bitcrypto = { path = "../mm2_bitcoin/crypto" }
bincode = "1.3.3"
Expand Down Expand Up @@ -49,8 +48,7 @@ jsonrpc-core = "8.0.1"
keys = { path = "../mm2_bitcoin/keys" }
lazy_static = "1.4"
libc = "0.2"
lightning = { git = "https://github.com/shamardy/rust-lightning", branch = "0.0.106" }
lightning-invoice = { git = "https://github.com/shamardy/rust-lightning", branch = "0.0.106" }
metrics = "0.12"
sergeyboyko0791 marked this conversation as resolved.
Show resolved Hide resolved
mm2_core = { path = "../mm2_core" }
mm2_err_handle = { path = "../mm2_err_handle" }
mm2_io = { path = "../mm2_io" }
Expand Down Expand Up @@ -102,20 +100,24 @@ web-sys = { version = "0.3.55", features = ["console", "Headers", "Request", "Re
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
cosmrs = { version = "0.7", features = ["rpc"] }
dirs = { version = "1" }
lightning-background-processor = { git = "https://github.com/shamardy/rust-lightning", branch = "0.0.106" }
lightning-persister = { git = "https://github.com/shamardy/rust-lightning", branch = "0.0.106" }
lightning-net-tokio = { git = "https://github.com/shamardy/rust-lightning", branch = "0.0.106" }
bitcoin = "0.28.1"
lightning = "0.0.110"
lightning-background-processor = "0.0.110"
lightning-invoice = { version = "0.18.0", features = ["serde"] }
lightning-net-tokio = "0.0.110"
lightning-rapid-gossip-sync = "0.0.110"
rust-ini = { version = "0.13" }
rustls = { version = "0.20", features = ["dangerous_configuration"] }
tokio = { version = "1.7" }
tokio-rustls = { version = "0.23" }
tonic = { version = "0.7", features = ["tls", "tls-webpki-roots", "compression"] }
webpki-roots = { version = "0.22" }
secp256k1v22 = { version = "0.22", package = "secp256k1" }
solana-client = { version = "1", default-features = false }
solana-sdk = { version = "1", default-features = false }
solana-transaction-status = "1"
spl-token = { version = "3" }
spl-associated-token-account = "1"
spl-token = { version = "3" }
tokio = { version = "1.7" }
tokio-rustls = { version = "0.23" }
tonic = { version = "0.7", features = ["tls", "tls-webpki-roots", "compression"] }
webpki-roots = { version = "0.22" }
zcash_client_backend = { git = "https://github.com/KomodoPlatform/librustzcash.git" }
zcash_client_sqlite = { git = "https://github.com/KomodoPlatform/librustzcash.git" }
zcash_primitives = { features = ["transparent-inputs"], git = "https://github.com/KomodoPlatform/librustzcash.git" }
Expand Down
Loading