HomePhabricator

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

Description

[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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
tobias_ruckAuthored on Sep 11 2024, 14:15
teamcityPushed on Sep 11 2024, 15:18
Parents
rSTAGINGc764ae7c1e3f: [ecash-agora] Partial Agora offers: Add approximation logic
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/49601, tag: phabricator/base/49596

Event Timeline