Page MenuHomePhabricator

[Chronik] Make `ffi::CBlockIndex` `Sync`
ClosedPublic

Authored by tobias_ruck on Wed, Sep 11, 14:15.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC92143f7e31ff: [Chronik] Make `ffi::CBlockIndex` `Sync`
Summary

&CBlockIndex can be shared between threads safely, so it is sound to make CBlockIndex implement Sync.

Currently async code using CBlockIndex can't hold a & reference between await points, but actually this is fine, so we allow it.

There's no change in behavior.

Test Plan

cargo check

Diff Detail

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