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.44k stars 338 forks source link

refactor: localstore transaction #4626

Closed istae closed 2 months ago

istae commented 3 months ago

Checklist

Description

An extensive cleanup of the db transaction. Every localstore write operation now utilizes a transaction. Calls to the chunkstore are also part of the transaction.

also tackled: evict just enough chunks of a batch to fall below the reserve capacity

TODO: revert reserve size change revert reserve wake up duration

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

closes #4341 #4538 #4636 #4633

Screenshots (if appropriate):