Skip to content

Instantly share code, notes, and snippets.

View vincenzopalazzo's full-sized avatar
:octocat:
The commit can contain poetry

Vincenzo Palazzo vincenzopalazzo

:octocat:
The commit can contain poetry
View GitHub Profile
➜ ~ lightning-cli listclosedchannels 03db10aa09ff04d3568b0621750794063df401e6853c79a21a83e1a3f3b5bfb0c8
{
"closedchannels": [
{
"peer_id": "03db10aa09ff04d3568b0621750794063df401e6853c79a21a83e1a3f3b5bfb0c8",
"channel_id": "55723d2fced081b834c118c8fe0281a6b8a1bf662dcf8fc38975ee13ad4841d7",
"short_channel_id": "870026x2631x0",
"alias": {
"local": "13876233x16241684x55225",
"remote": "574853x2274x7"
➜ ~ lightning-cli listpeerchannels 027cb24c3c92387cba9a35ea145e2c41ab1849b4601b94b3fa27b2ffb429ebaf98
{
"channels": [
{
"peer_id": "027cb24c3c92387cba9a35ea145e2c41ab1849b4601b94b3fa27b2ffb429ebaf98",
"peer_connected": true,
"reestablished": true,
"channel_type": {
"bits": [
12,
diff --git a/vls-core/src/channel.rs b/vls-core/src/channel.rs
index 99825743..7aa2c398 100644
--- a/vls-core/src/channel.rs
+++ b/vls-core/src/channel.rs
@@ -2537,6 +2537,7 @@ impl Channel {
pub fn sign_holder_htlc_tx_phase2(
&self,
tx: &Transaction,
+ witness_script: &ScriptBuf,
commitment_number: u64,
➜ ~ sudo fwupdtool get-devices --plugins flashrom --verbose
09:56:46.952 FuDebug verbose to info (on console 1)
09:56:46.952 FuEngine starting fwupd 2.0.1…
Loading… [ - ]09:56:46.957 FuRemoteList loading remote from /etc/fwupd/remotes.d/lvfs-testing.conf
09:56:46.957 FuRemoteList auto-fixing remote lvfs-testing MetadataURI from https://cdn.fwupd.org/downloads/firmware-testing.xml.xz to https://cdn.fwupd.org/downloads/firmware-testing.xml.zst
09:56:46.957 FuRemoteList loading remote from /etc/fwupd/remotes.d/lvfs.conf
09:56:46.957 FuRemoteList loading remote from /etc/fwupd/remotes.d/vendor-directory.conf
09:56:46.957 FuRemoteList enabled remotes: vendor-directory[1000], lvfs-testing[1], lvfs[0]
Loading… [* ]09:56:46.963 FuQuirks loading quirks from /usr/share/fwupd/quirks.d
09:56:46.963 FuQuirks loading quirks from /v
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
Compiling spl-associated-token-account v2.3.0
Compiling solana-account-decoder v1.18.23
Compiling lava-config v0.1.0 (/home/vincent/github/work/lava/lava-mono/lava-config)
Compiling loans-core v0.1.0 (/home/vincent/github/work/lava/lava-mono/loans-core/core)
error[E0277]: the trait bound `MultiOracleTrieWithDiff: _::_serde::Serialize` is not satisfied
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:24:42
|
24 | #[cfg_attr(feature = "use-serde", derive(Serialize, Deserialize))]
| ^^^^^^^^^ the trait `_::_serde::Serialize` is not implemented for `MultiOracleTrieWithDiff`, which is required by `Vec<MultiOracleTrieWithDiff>: _::_serde::Serialize`
This file has been truncated, but you can view the full file.
2024-08-20 15:45:51 INFO [ldk_node::builder:925] Successfully migrated OutputSweeper data.
2024-08-20 15:45:51 INFO [ldk_node:238] Starting up LDK Node with node ID 02e78d2a8dd545f4eb2f48d90aa06207eb4001cd4efd1d282aff3a9babcfd1a1a9 on network: bitcoin
2024-08-20 15:45:56 ERROR [ldk_node::fee_estimator:46] Updating fee rate estimates timed out: deadline has elapsed
2024-08-20 15:45:56 ERROR [ldk_node:267] Initial fee rate cache update failed: Updating fee rate estimates timed out.
2024-08-20 15:46:35 INFO [ldk_node::builder:925] Successfully migrated OutputSweeper data.
2024-08-20 15:46:35 INFO [ldk_node:238] Starting up LDK Node with node ID 02e78d2a8dd545f4eb2f48d90aa06207eb4001cd4efd1d282aff3a9babcfd1a1a9 on network: bitcoin
2024-08-20 15:46:40 ERROR [ldk_node::fee_estimator:46] Updating fee rate estimates timed out: deadline has elapsed
2024-08-20 15:46:40 ERROR [ldk_node:267] Initial fee rate cache update failed: Updating fee rate estimates timed out.
2024-08-20 15:46:53 INFO [ldk_node::builder:925]
2024-08-19 17:27:20 INFO [ldk_node::builder:925] Successfully migrated OutputSweeper data.
2024-08-19 17:27:20 INFO [ldk_node:238] Starting up LDK Node with node ID 03f10e1b18a6d3e034ff4cec935ef24fe8410960302043d304aa72916e9d1c9111 on network: bitcoin
2024-08-19 17:27:22 TRACE [ldk_node::fee_estimator:109] Fee rate estimation updated for OnChainSweep: 1053 sats/kwu
2024-08-19 17:27:22 TRACE [ldk_node::fee_estimator:109] Fee rate estimation updated for MinAllowedAnchorChannelRemoteFee: 622 sats/kwu
2024-08-19 17:27:22 TRACE [ldk_node::fee_estimator:109] Fee rate estimation updated for MinAllowedNonAnchorChannelRemoteFee: 372 sats/kwu
2024-08-19 17:27:22 TRACE [ldk_node::fee_estimator:109] Fee rate estimation updated for AnchorChannelFee: 622 sats/kwu
2024-08-19 17:27:22 TRACE [ldk_node::fee_estimator:109] Fee rate estimation updated for NonAnchorChannelFee: 962 sats/kwu
2024-08-19 17:27:22 TRACE [ldk_node::fee_estimator:109] Fee rate estimation updated for ChannelCloseMinimum: 622 sats/kwu
2024-08-19 17:27:2
➜ VincentSSD clightning decode lno1qsgxeghagrrs3fygrz74wxpskwfpsyxvqttftvqu0f5sneckep3lkwdut7mmhhpcyjmlmnjn4hze8ed7pq88xqs35u5wdnnnhpw53ntuems6qs8hggqac250urm6dl9vlpq9f2q2ucpq9kpa4r734cduc7lkt7gl0dcqn0ku648u9q9v643jsl6ec2kkgge4qqemsc8plk5hd96ljealz9cs9d3exlxw8jg876k2sv25kyk2dgyw7r3ry7fnn4f32d4g5lqy8n3qtqfr7zcecqm4ur8msqhfkuw0a3t75njaksj22ch9zhr43j6fjfntzqmgyacl6gqpq5lxewmaz5v5ktqww0qlv7m25kckyyp5zf4cqk35j2mfa23t9c8ukmtpu66vjca5d8xvp6zu3wuup7y28ss
{
"type": "bolt12 offer",
"offer_id": "bb68a56239383eeb06f1301fc6e6102486fcb4bf2fac05b2d22c67d7b2e9e2c0",
"offer_metadata": "6ca2fd40c708a48818bd571830b39218",
"warning_missing_offer_description": "offers without a description are invalid",
"offer_paths": [
{
"first_node_id": "02d695b01c7a6909e716c863fb39bc5fb7bbdc3824b7fdce53adc593e5be080e73",
"blinding": "0211a728e6ce73b85d48cd7ccee1a040f74201dc2a8fe0f7a6fcacf84054a80ae6",
➜ sdk-cli git:(main) ✗ cargo run
Compiling gl-client v0.2.0 (https://github.com/Blockstream/greenlight.git?rev=e38a37613da7558c853f24be700c193f194a6bc9#e38a3761)
error[E0412]: cannot find type `DelexpiredinvoiceRequest` in module `cln`
--> /home/vincent/.cargo/git/checkouts/greenlight-e41cf58dbd255ee0/e38a376/libs/gl-client/src/signer/model/mod.rs:41:28
|
41 | DelExpiredInvoice(cln::DelexpiredinvoiceRequest),
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `DelinvoiceRequest`
|
::: /home/vincent/github/work/breez-sdk/tools/sdk-cli/target/debug/build/cln-grpc-7a25774ebd2ceb74/out/cln.rs:1800:1
|
@vincenzopalazzo
vincenzopalazzo / lampo_sdk.rs
Last active June 11, 2024 15:14
A example of the lampo SDK usage
let mut lampo_conf = LampoConf::new(/* path */, /* network */, /* port */)?;
/* Creating the wallet */
let (wallet, mnemonic) = CoreWalletManager::new(Arc::new(lampo_conf.clone()))?;
let wallet = Arc::new(wallet);
/* Create the deamon */
let mut lampo = LampoDaemon::new(lampo_conf.clone(), wallet.clone());
/* Create the bitcoin backend */
let node = BitcoinCore::new(
&format!("127.0.0.1:{}", btc.port),