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
tobias_ruckPushed on Sep 11 2024, 15:16
Reviewer
Restricted Project
Differential Revision
D16747: [Chronik] Make `ffi::CBlockIndex` `Sync`
Parents
rABCc764ae7c1e3f: [ecash-agora] Partial Agora offers: Add approximation logic
Branches
Unknown
Tags
Unknown