-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design: Heavy blockchain #2
Comments
What is stored in HB runtime vs FB runtime? Where is the RAW/hashed that the HB uses for the Basically, where is |
I don't have any comments for |
|
Ok, but where is the "interface" reading the Remember that in the mature infrastructure (after the Grant PoC) the Raw will be directly communicated off-chain by the user and sent to off-chain storage (like IPFS). For the mature infrastructure both the user and the storage are off-chain (and using a worker to peak, I guess). Is the Are both Raw and Hashed data saved in the FB runtime? |
Ok, but where is the "interface" reading the math_data from (Raw problem and Hashed result)? From the FB runtime of FB or from data provided by a single FB node? Basically, a bridge has on-chain components and off-chain components. |
The Relayer so is off-chain? Do you have some quick docs explaining them? But where the Relayer is reading taking the Raw and Hashed data from? |
And where are we storing it, if it is off-chain? |
Required functions and storage items for the heavy blockchain
Storage
ComputationalWorkRecords
(get_computational_works)Mapping of FB node identifiers to the computational works performed by them
NodeDetails
(get_node_info)Mapping of FB node identifiers to their details
registered_at
: block number a node is registeredreliable
: Whether the node is reliable or notlast_check
: block number that the node is checked for the last timeTotalNodes
(total_nodes)Number of FB nodes registered in the HB runtime.
Extrinsics
register_node(node_id)
Register a FB node.
remove_node(node_id)
Remove a FB node.
save_computational_work(records)
The main interface for the FB nodes to report their computational works to the heavy blockchain.
Functions
generate_test_data
Randomly picks a node to be checked and generate required data for a check
node_id
: The node ID to be checkedproblem
: The maths work to be used for the checkcheckers
: IDs of 3 checker nodesRPC methods
is_node_reliable(node_id)
get_computational_works(node_id, offset, limit)
generate_test_data
I don't think this is necessary.
Helpers
generate_random_number
The text was updated successfully, but these errors were encountered: