bee
bee copied to clipboard
feat: add last synced block to status endpoint result
Checklist
- [ ] I have read the coding guide.
- [ ] My change requires a documentation update, and I have done it.
- [ ] I have added tests to cover my changes.
- [ ] I have filled out the description and linked the related issues.
Description
A new field, called lastSyncedBlock should be added to the status report that shows the last synced block of the postage worker. It is the same value as the block field under the /chainstate endpoint.
This will make it easier to detect if the node or it's peer are lagging behind in syncing batches from the contract.