Page MenuHomePhabricator

[Chronik] Require at least Protobuf 3.0.0 for Chronik functional tests
ClosedPublic

Authored by tobias_ruck on Mar 14 2023, 14:06.

Details

Summary

Chronik uses the proto3 syntax, which isn't supported in older protobuf compilers. proto3 was introduced in 3.0.0, so this is the minimal possible version.

Test Plan

cmake .. -GNinja -DBUILD_BITCOIN_CHRONIK=on

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested changes to this revision.Mar 14 2023, 14:17
Fabien added inline comments.
test/CMakeLists.txt
60 ↗(On Diff #38565)

There is a missed opportunity here.
See src/qt/CMakeLists,txt: there is a check for protobuf > 3.1.0 that defines some preprocessor macro for compatibility reasons.

We should rather consistently enforce 3.1.0 minimum version:

  • Here
  • In dependencies.md
  • In src/qt/CMakeLists,txt

And clean the compatibility branch alltogether.

This revision now requires changes to proceed.Mar 14 2023, 14:17

The version here does not relate to qt, and chronik is not built by default for now. Let's do the remaining part in another diff

This revision is now accepted and ready to land.Mar 14 2023, 14:26