-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add marshalized receipts in storer #2242
Conversation
…ins all the marshalized receipts in clear and not only their hashes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the description does not match the implementation - here you are saving receipt hash - all miniblocks in clear (but those will contain hashes one by one). It is good - maybe we should ensure that receiptshashes are not saved 2 times in storage.
process/coordinator/process.go
Outdated
return nil, nil | ||
} | ||
|
||
receiptsBatch := &batch.Batch{Data: receiptsHashes} | ||
marshalizedReceiptsHashes, err := tc.marshalizer.Marshal(receiptsBatch) | ||
marshalizedReceiptsBatch, err := tc.marshalizer.Marshal(receiptsBatch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could return directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System tests passed.
Testing steps:
a) Prerequisites
b) Test steps
Start a normal testnet
c) Expected results
We should have another storage/folder/db created in: .../Epoch_X/Shard_Y/Receipts which holds cumulative receipt hash as a key and all the marshalized receipts list marshalized as a value, for each committed block
d) Actual results
Test process is in pending