ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 338 forks source link

fix: proof data race #4665

Closed nugaon closed 4 months ago

nugaon commented 4 months ago

Data race appeared by referencing some elements of the buffer of the bmt pool in the bmt.Prover.Proof method.

it may resolve inclusion proof related errors as well in the redistribution game.

Other corrections have been made in TestMakeInclusionProofsRegression which is not flaky anymore.

fixes: #4531

Checklist

Description

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):