You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Store receipt got from target node, and store them in batch in memory. When maximum number of batch_size is reached, generate merkle root, store them in merkle_root table, and store every receipt collected to the node_receipt_table linked to the merkle_root table id.
Breakdown
Table needed:
merkle_root to store the merkle root of the receipt collected.
node_receipt to store the receipt that are collected, with the merkle_root_id specified.
batch_receipt to store receipts collection before store into node_receipt
Generate merkle root when the maximum_batch_size reached.
Save merkle_root and receipts to database.
MerkleRoot table schema
id : root hash
tree: [uint32(leaf length), uint32(crypto schema), ... tree] which is a []byte
Additional Diagram / File
Put additional diagram or file
The text was updated successfully, but these errors were encountered:
Description
Store receipt got from
target node
, and store them inbatch
in memory. When maximum number ofbatch_size
is reached, generate merkle root, store them inmerkle_root
table, and store every receipt collected to thenode_receipt_table
linked to themerkle_root
table id.Breakdown
merkle_root
to store the merkle root of the receipt collected.node_receipt
to store the receipt that are collected, with themerkle_root_id
specified.batch_receipt
to store receipts collection before store intonode_receipt
maximum_batch_size
reached.merkle_root
andreceipts
to database.MerkleRoot table schema
Additional Diagram / File
Put additional diagram or file
The text was updated successfully, but these errors were encountered: