Block Synchronization Contract
blksync.xsat
Actions
Quickstart
# initbucket @synchronizer
$ cleos push action blksync.xsat initbucket '{"synchronizer": "alice", "height": 840000, "hash": "0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5", "block_size": 2325617, "num_chunks": 11}' -p alice
# pushchunk @synchronizer
$ cleos push action blksync.xsat pushchunk '{"synchronizer": "alice", "height": 840000, "hash": "0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5", "chunk_id": 0, "data": "<data>"}' -p alice
# delchunk @synchronizer
$ cleos push action blksync.xsat delchunk '{"synchronizer": "alice", "height": 840000, "hash": "0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5", "chunk_id": 0}' -p alice
# delbucket @synchronizer
$ cleos push action blksync.xsat delbucket '{"synchronizer": "alice", "height": 840000, "hash": "0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5"}' -p alice
# verify @synchronizer
$ cleos push action blksync.xsat verify '{"synchronizer": "alice", "height": 840000, "hash": "0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5", "nonce": 1}' -p aliceTable Information
ENUM block_status
block_statusTABLE globalid
globalidscope
params
example
STRUCT verify_info_data
verify_info_dataparams
example
TABLE blockbuckets
blockbucketsscope validator
validatorparams
example
TABLE passedindexs
passedindexsscope height
heightparams
example
TABLE blockminer
blockminerscope height
heightparams
example
TABLE block.chunk
block.chunkscope bucket_id
bucket_idparams
example
STRUCT verify_block_result
verify_block_resultparams
example
ACTION consensus
consensusparams
example
ACTION delchunks
delchunksparams
example
ACTION initbucket
initbucketparams
example
ACTION pushchunk
pushchunkparams
example
ACTION delchunk
delchunkparams
example
ACTION delbucket
delbucketparams
example
ACTION verify
verifyparams
example
Last updated