Skip to content

Openchannel and bcli unneeded code - #9418

Open
rustyrussell wants to merge 2 commits into
ElementsProject:masterfrom
rustyrussell:openchannel-unneeded-code
Open

Openchannel and bcli unneeded code#9418
rustyrussell wants to merge 2 commits into
ElementsProject:masterfrom
rustyrussell:openchannel-unneeded-code

Conversation

@rustyrussell

Copy link
Copy Markdown
Collaborator
  1. Increase minimum acceptable bitcoind to 23.0, remove "do we support getblockfrompeer" check which confused Red Team.
  2. Remove never-ran loop which is unnecessary from openchannel which confused Red Team.

The minimum BTC according to CI is 25.0, but elements is still 23, so we can't bump this version further. And 25.0 is out of support anyway!

Changelog-None

…gate for getblockfrompeer.

Minimum version for bitcoind in CI is 25.0, but elements is older.

Bump hard reject version to 23.0 (which elements will still pass, just).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This triggered a false positive use-after-free issue from Red Team.

In fact, the children of new_node_copy are deliberately owned by clone already
(see f246896) so this cleanup attempt
(which was wrong, since size_t is never "> -1") was unnecessary anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant