Skip to content
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

Merged
merged 3 commits into from
Aug 26, 2020

Conversation

SebastianMarian
Copy link
Contributor

  • Added in receipts storer as a value a marshalized batch which contains all the marshalized receipts in clear and not only their hashes

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

…ins all the marshalized receipts in clear and not only their hashes
@SebastianMarian SebastianMarian self-assigned this Aug 26, 2020
@SebastianMarian SebastianMarian added the type:feature New feature or request label Aug 26, 2020
Copy link
Contributor

@sasurobert sasurobert left a 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 Show resolved Hide resolved
@bogdan-rosianu bogdan-rosianu self-requested a review August 26, 2020 12:33
return nil, nil
}

receiptsBatch := &batch.Batch{Data: receiptsHashes}
marshalizedReceiptsHashes, err := tc.marshalizer.Marshal(receiptsBatch)
marshalizedReceiptsBatch, err := tc.marshalizer.Marshal(receiptsBatch)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could return directly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System tests passed.

@LucianMincu LucianMincu merged commit a38e621 into development Aug 26, 2020
@LucianMincu LucianMincu deleted the Add-marshalized-receipts-in-storer branch August 26, 2020 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants