[go: nahoru, domu]

Skip to content

Commit

Permalink
Lightning Network Channels #1045 (#1133)
Browse files Browse the repository at this point in the history
* WIP restarting node/read channel_manager from file

* WIP: LN Registry for register_tx & register_output

* update transactions confirmations on node restart

* reconnect to channel peers on node restart

* connect to LN node RPC + WIP lightning ctx

* continued lightning ctx impl for multiple coins

* open_channel RPC

* withdraw to p2wsh addresses + funding tx WIP

* fix zhtlc build

* extract_destinations for p2wsh

* generate/broadcast funding tx (channel opening tx)

* update rust-lightning to v0.0.102

* update rust-lightning to v0.0.103

* fix reconnection to open channels nodes on restart

* save nodes to file fix + order txs to confirm

* add fee param to open_channel RPC + refactors

* use scripthash_get_history to get tx block height

* remove unneeded comments

* WIP:Review fixes, ChannelOpenAmount, UtxoTxBuilder

* WIP: Review fixes, use get_tx_fee for funding tx

* remove WithdrawFee, fix unit test

* WIP: review fixes, use find_output_spend fn

* WIP: review fixes, separate dirs for tickers

* WIP: Review fixes, request_id fix on restart

* WIP: review fixes, LightningCoin

* final fixes: move ln_registry, fix fee with max

* second review fixes

* WIP: review fixes, OpenChannelRequest fix, others

* Review fixes: enable_l2, enable_lightning

* remove lightning from lp_coininit

* use virtual bytes to calculate tx fees

* WIP: more review fixes

* WIP: review fixes, remove block_on

* WIP: review fixes, impl EventHandler trait

* WIP: add validation methods to L2ActivationOps

* Review fixes, add unsigned_funding_txs mutex

* review fixes: NO_SUCH_TRANSACTION_ERROR

* use 'code': -5 to check for tx unconfirmation

* add get_merkle method, use tx index to confirm it
  • Loading branch information
shamardy authored Dec 14, 2021
1 parent 639bc59 commit 9cd082d
Show file tree
Hide file tree
Showing 45 changed files with 2,524 additions and 604 deletions.
19 changes: 10 additions & 9 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions mm2src/coins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jsonrpc-core = "8.0.1"
keys = { path = "../mm2_bitcoin/keys" }
lazy_static = "1.4"
libc = "0.2"
lightning = "0.0.101"
lightning = "0.0.103"
metrics = "0.12"
mocktopus = "0.7.0"
num-traits = "0.2"
Expand Down Expand Up @@ -78,9 +78,9 @@ web-sys = { version = "0.3.4", features = ["console", "Headers", "Request", "Req

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
dirs = { version = "1" }
lightning-background-processor = "0.0.101"
lightning-persister = "0.0.101"
lightning-net-tokio = "0.0.101"
lightning-background-processor = "0.0.103"
lightning-persister = "0.0.103"
lightning-net-tokio = "0.0.103"
rusqlite = { version = "0.24.2", features = ["bundled"], optional = true }
rust-ini = { version = "0.13" }
rustls = { version = "0.19", features = ["dangerous_configuration"] }
Expand Down
Loading

0 comments on commit 9cd082d

Please sign in to comment.