Comments (4)
OK sth different then, we'll go and test #7365
from lightning.
So looks like #7365 didn't fix anything for you...
from lightning.
This is more of a medium-sized node and wasn't running into the CPU usage that PR addresses, so I'm not sure. Also the other machine I tested on has a single signet channel and was experiencing the issue described above.
from lightning.
I can reproduce that problem on a fresh, new node:
- Create a new node with latest master
- Connect to some peers
- Watch connectd spike to 100% CPU
For convenience to reproduce this I created a little script.
Run lightning-cli listnodes > nodes.json
and then this python script to connect to some nodes and you'll see connectd go wild:
#!/usr/bin/env python3
import json
import subprocess
with open('nodes.json') as f:
nodes = json.load(f)["nodes"]
print(f"Got {len(nodes)} nodes")
with_address = []
for node in nodes:
if "addresses" not in node or len(node["addresses"]) == 0:
continue
with_address.append(node)
print(f"{len(with_address)} with address")
ipv4 = []
for node in with_address:
for address in node["addresses"]:
if address["type"] != "ipv4":
continue
ipv4.append(f"{node['nodeid']}@{address['address']}:{address['port']}")
print(f"{len(ipv4)} with IPV4 address")
for (i, address) in enumerate(ipv4):
print(f"Connecting to {i+1}/{len(ipv4)}: {address}")
res = subprocess.Popen(
f"timeout 10 lightning-cli connect {address}",
shell=True,
stdout=subprocess.PIPE,
).stdout.read()
try:
print(json.dumps(
json.loads(res),
indent=4,
))
except:
print("Connect timed out")
Edit:
This is definitely a regression since v24.05
. I created a new node with v24.05
and ran the script; it was just fine. Updated to master, ran it again and connectd jumped to 100% CPU before it even connected to the first peer.
from lightning.
Related Issues (20)
- Deleted document is not removed from Readme.com
- Include detailed information on close outputs in `listpeerchannels`
- sendpay_failure notifications missing important fields HOT 2
- 'package-mode' was unexpected
- Remove requirements.txt from python plugins
- Update an existing private channel into a public channel and vise versa
- Add new rpc `listaddresses` to list all addresses issued by the wallet
- Disabling change of directory based on network
- Plugin-sql: Plugin marked as important, shutting down lightningd! HOT 1
- `autoclean.c` build error in master
- Como recupero un nodo soy nuevo casi en todo? Como empezar esto ? Necesito una cerveza.. Agradezco todo Gracias
- Cannot install prerequisite for clnrest plugin
- rfc: give plugins a budget
- ONCHAIN: 1 outputs unresolved: waiting confirmation that we spent DELAYED_OUTPUT_TO_US using OUR_DELAYED_RETURN_TO_WALLET
- Cannot compile with rust HOT 2
- Too many active HTLC, lost most of channels #CLN24.05 #bitcoind27.1 #RPi4
- Unilateral channel close, unrecovered funds
- Como voy chavos ?
- No se no se pero siempre se
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning.