HomePhabricator

[electrum] support newer protobuf library versions

Description

[electrum] support newer protobuf library versions

Summary:
The protobuf API changed in recent version of the library. This causes fusion failures when the fusion round is about to start.
Support both the old and new API.

At the moment the protobuf version in the releases (3.20.3) works. To notice the issue you need to run from sources on a recent linux version with a newer protobuf (e.g. Ubuntu 24.04 has 5.28.2 which fails).

This fix is loosely based on https://github.com/Electron-Cash/Electron-Cash/commit/4e59c7e18dbd21aa210473ac48c7aba5e0fe1162

Test Plan: Active Cash Fusion and wait for a succesfull fusion on Ubuntu 24.04

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D17670

Details

Provenance
PiRKAuthored on Mon, Feb 17, 15:06
PiRKPushed on Tue, Feb 18, 12:12
Reviewer
Restricted Project
Differential Revision
D17670: [electrum] support newer protobuf library versions
Parents
rABC206472007eb6: Re-enable the getavaaddr_interval_test
Branches
Unknown
Tags
Unknown