Right now, the EDS does not have any guarantees regarding thread safety for read and write operations. Users like celestia-node end up implementing custom synchronization solutions around EDS, while the best practice for Go is to have thread safety provided by the library.
The proposal is to add an additional SyncEDS wrapping the existing EDS structure extracted from the celestia-node. Alternatively, we can make the existing EDS synchronized by default.
Right now, the EDS does not have any guarantees regarding thread safety for read and write operations. Users like celestia-node end up implementing custom synchronization solutions around EDS, while the best practice for Go is to have thread safety provided by the library.
The proposal is to add an additional
SyncEDS
wrapping the existingEDS
structure extracted from the celestia-node. Alternatively, we can make the existingEDS
synchronized by default.