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] Lightning batch transactions confirmations, spv (wip), refactors #1339

Merged
merged 44 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
217bd14
remove ok_or_retry_after_sleep_sync! macro
shamardy Apr 25, 2022
e0e85dd
process_txs_confirmations independent from update_best_block
shamardy Apr 28, 2022
e979cf1
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy Apr 29, 2022
a926bf9
use get_tx_height in get_confirmed_registered_txs to prepare for batc…
shamardy Apr 29, 2022
2083da9
validate_spv_proof refactor wip, spv for lightning wip
shamardy May 3, 2022
1c0d251
fix test_spv_proof
shamardy May 3, 2022
37e8fb7
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy May 3, 2022
8ec9676
remove find_watched_output_spend_with_header
shamardy May 5, 2022
462c876
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy May 23, 2022
b03fc4a
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy Jun 4, 2022
b45665b
impl some features of rust-lightning v0.0.106 wip, import code from l…
shamardy Jun 6, 2022
06cba6b
add inbound channels details to sql db
shamardy Jun 7, 2022
4e0f3ed
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy Jun 7, 2022
0d7395a
remove lightning-persister and lightning-background-processor crates …
shamardy Jun 8, 2022
23c8639
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy Jun 13, 2022
a518fec
remove ok_or_continue macro, use join_all to check for transactions c…
shamardy Jun 15, 2022
8d9455d
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy Jun 17, 2022
0fbb90b
small fixes after testing
shamardy Jun 17, 2022
f9ce688
fix fmt
shamardy Jun 17, 2022
0676839
get confirmed transaction info from spv proof fn
shamardy Jun 22, 2022
56449c5
move get_tx_if_onchain, get_tx_height to rpc_clients
shamardy Jun 24, 2022
7205179
spv proof refactoring wip
shamardy Jun 27, 2022
d5b4494
fix fmt
shamardy Jun 27, 2022
5ef3203
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy Jun 27, 2022
c690199
spv proof refactor
shamardy Jun 28, 2022
bb74499
break ln_storage.rs to multiple files, break up persister struct into…
shamardy Jun 30, 2022
2f2a462
fixes for persisting monitors to back up dir
shamardy Jul 1, 2022
4cfb9bc
fix clippy for windows
shamardy Jul 1, 2022
dfad705
fix some todos
shamardy Jul 4, 2022
44b5715
btc difficulty calculations for spv validation wip
shamardy Jul 6, 2022
11e2cb7
continued: btc difficulty calculations for spv validation wip, added …
shamardy Jul 7, 2022
cb2f9ad
continued: btc difficulty calculations for spv validation wip, work.r…
shamardy Jul 8, 2022
86c0f92
fix wasm, tests
shamardy Jul 8, 2022
8833c1d
spv difficulty testnet
shamardy Jul 11, 2022
3ebecac
Merge remote-tracking branch 'origin/dev' into ln-platform-electrum-f…
shamardy Jul 11, 2022
be6c330
fix some todos
shamardy Jul 12, 2022
733ec06
fixes after merge
shamardy Jul 12, 2022
577fee5
add events abort handlers
shamardy Jul 12, 2022
9e5a659
Review fixes wip
shamardy Jul 14, 2022
5d9f04a
Review fixes wip, log db error in open_channel, workTestVectors.json
shamardy Jul 15, 2022
ff9e99f
Review fixes, save claiming tx to db after successful broadcasting
shamardy Jul 15, 2022
4437f44
Review fixes wip, use bool without casting, use i64 instead of u64 ca…
shamardy Jul 18, 2022
510578b
Review fixes wip, #[cfg(target_family = "windows")], refactors
shamardy Jul 18, 2022
3fd5e14
Review fixes, get tx height by block hash
shamardy Jul 18, 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
44 changes: 13 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[workspace]
members = [
"mm2src/coins",
"mm2src/coins/lightning_persister",
"mm2src/coins/lightning_background_processor",
"mm2src/coins/utxo_signer",
"mm2src/coins_activation",
"mm2src/common/shared_ref_counter",
Expand Down
4 changes: 2 additions & 2 deletions mm2src/coins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ 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-background-processor = { path = "lightning_background_processor" }
lightning-invoice = { git = "https://github.com/shamardy/rust-lightning", branch = "0.0.106" }
metrics = "0.12"
mm2_core = { path = "../mm2_core" }
Expand Down Expand Up @@ -99,7 +98,8 @@ web-sys = { version = "0.3.55", features = ["console", "Headers", "Request", "Re

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
dirs = { version = "1" }
lightning-persister = { path = "lightning_persister" }
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" }
rust-ini = { version = "0.13" }
rustls = { version = "0.20", features = ["dangerous_configuration"] }
Expand Down
Loading