Move util upload-state to a service #1495

Open
opened 2025-12-28 17:16:38 +00:00 by sami · 0 comments
Owner

Originally created by @AnnaShaleva on GitHub (Mar 10, 2025).

It's hard to use util upload-state on production nodes because it requires permanent node's restarts, and we can't allow our public nodes to be out-of-service for a long time.

Describe the solution you'd like

Move util upload-state to the node's service. Bind the uploader routine to PostPersist blockchain's callback, start the uploading process every time when suitable block is persisted, but be careful in order not to block the blockchain's main routine. Make a separate config section for this service.

It will be a nice base of StateValidator's service extension.

Describe alternatives you've considered

No.

Originally created by @AnnaShaleva on GitHub (Mar 10, 2025). ## Is your feature request related to a problem? Please describe. It's hard to use `util upload-state` on production nodes because it requires permanent node's restarts, and we can't allow our public nodes to be out-of-service for a long time. ## Describe the solution you'd like Move `util upload-state` to the node's service. Bind the uploader routine to `PostPersist` blockchain's callback, start the uploading process every time when suitable block is persisted, but be careful in order not to block the blockchain's main routine. Make a separate config section for this service. It will be a nice base of StateValidator's service extension. ## Describe alternatives you've considered No.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-go#1495
No description provided.