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 Wed, Sep 11, 14:15
tobias_ruckPushed on Wed, Sep 11, 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