-
Notifications
You must be signed in to change notification settings - Fork 27
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
Upgraded greenlight core lightning version to 24.02.1. #408
Conversation
Also, an update of the signer version is needed to upgrade the node to v24.02. Can be found in |
917021c
to
2cc11b7
Compare
2cc11b7
to
3aefd95
Compare
Rebased on top of |
28c3511
to
90108a0
Compare
#libs/gl-testing/gltesting/utils.py
def version_to_int(nv: NodeVersion):
# Remove the initial 'v'
version_string = nv.name.lstrip('v')
# Split the version string into parts by '.' and strip any non-numeric suffix
parts = version_string.split('.')
numeric_parts = []
for part in parts:
numeric_part = ''.join(filter(str.isdigit, part))
numeric_parts.append(numeric_part.zfill(2)) # Zero-fill to ensure 2 digits per part
# Ensure there are exactly 3 parts, padding with '00' if necessary
while len(numeric_parts) < 3:
numeric_parts.append('00')
# Join the parts into a single string
parsed_version = ''.join(numeric_parts[:3])
return int(parsed_version) #libs/gl-testing/gltesting/node.py
class NodeVersion(TailableProcess):
...
self.cmd_line = [
str(self.executable),
f'--lightning-dir={self.directory}',
f'--network={network}',
'--log-level=debug',
'--bitcoin-rpcuser=rpcuser',
'--bitcoin-rpcpassword=rpcpass',
f'--bitcoin-rpcconnect=127.0.0.1:{self.bitcoind.rpcport}',
"--disable-plugin=commando",
'--rescan=1',
"--log-timestamps=false",
"--cltv-final=6",
f"--addr=127.0.0.1:{self.p2p_port}",
# Stock `cln-grpc` disabled in favor of `gl-plugin`
'--disable-plugin=cln-grpc',
f'--subdaemon=hsmd:{signerproxy_path}',
f'--important-plugin={plugin_path}',
'--dev-bitcoind-poll=5',
'--dev-fast-gossip',
'--offline',
'--experimental-anchors',
]
if version_to_int(self.version) >= 240200:
self.cmd_line.append('--developer');
... This reduces the checks that fail to
some signer errors:
Other tests are good! |
Ok, I'm going to try and fix this up asap, so we have the new version unlocked 👍 |
79ec640
to
c24ba09
Compare
c24ba09
to
111b1cf
Compare
The hook's amount has been changed from string to u64, so we need to support either.
Dropping the hotfix suffix since that is subsumed into the gl versions.
I was wondering why my signer was not reconnecting to the node, and found out that I was on the v24.02 branch, which isn't deployed on the servers yet. The problem was that we were calling the naked, fallible, future in `task::spawn()` and therefore dropping an eventual error. Maybe we should also move the upgrade out of the loop in the first place 🤔
Just patching this one over for now until we find the root cause.
We had missed this one place where the unit was not being parsed correctly from an amount with a unit attached at the end, resulting in incomplete parses. This fixes that.
0b19030
to
55ffaba
Compare
Rebased and made this branch into a draft pull request so it's ready to merge when we've upgraded the cln version on our servers
make: *** [Makefile:148: cln-versions/lightningd-v24.02.1gl1.tar.bz2] Error 8