Sync
The Sync method group contains methods for interacting with and observing the lotus sync service.
SyncCheckBad
SyncCheckBad checks if a block was marked as bad, and if it was, returns the reason.
Perms: read
Inputs:
[
{
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
}
]Response: "string value"
SyncCheckpoint
SyncCheckpoint marks a blocks as checkpointed, meaning that it won't ever fork away from it.
Perms: admin
Inputs:
[
[
{
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
},
{
"/": "bafy2bzacebp3shtrn43k7g3unredz7fxn4gj533d3o43tqn2p2ipxxhrvchve"
}
]
]Response: {}
SyncIncomingBlocks
SyncIncomingBlocks returns a channel streaming incoming, potentially not yet synced block headers.
Perms: read
Inputs: null
Response:
SyncMarkBad
SyncMarkBad marks a blocks as bad, meaning that it won't ever by synced. Use with extreme caution.
Perms: admin
Inputs:
Response: {}
SyncState
SyncState returns the current status of the lotus sync system.
Perms: read
Inputs: null
Response:
SyncSubmitBlock
SyncSubmitBlock can be used to submit a newly created block to the. network through this node
Perms: write
Inputs:
Response: {}
SyncUnmarkAllBad
SyncUnmarkAllBad purges bad block cache, making it possible to sync to chains previously marked as bad
Perms: admin
Inputs: null
Response: {}
SyncUnmarkBad
SyncUnmarkBad unmarks a blocks as bad, making it possible to be validated and synced again.
Perms: admin
Inputs:
Response: {}
SyncValidateTipset
SyncValidateTipset indicates whether the provided tipset is valid or not
Perms: read
Inputs:
Response: true
Last updated
Was this helpful?