Skip to content

254 block receipts reminder #294

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

Merged
merged 19 commits into from
Oct 4, 2019
Merged

254 block receipts reminder #294

merged 19 commits into from
Oct 4, 2019

Conversation

andy-shi88
Copy link
Contributor

@andy-shi88 andy-shi88 commented Oct 2, 2019

Description

Add block receipt reminder and receipt generator validation.

+BadgerDB integration (key-value)

Breakdown

  • Integrate and wrap badger db as kvdb
  • Generate receipt regardless a node has receive the data or not, but only if the receipt has not been generated yet for that node+data
  • Clean up receipt generation code.
  • Add code to keep note on block that contains receipt node can link later.
  • add expiry to reminder list on which node has receive the receipt.

Reference Issue

Close #254
Close #282

Step to Test (optional)

  • run 3 nodes, everyone of them will get the receipt, if one of the node send the same data twice, receipt will not be generated.

@andy-shi88 andy-shi88 added BUG Something isn't working FEATURE New feature or request labels Oct 2, 2019
@andy-shi88 andy-shi88 self-assigned this Oct 2, 2019
@andy-shi88 andy-shi88 marked this pull request as ready for review October 2, 2019 04:11
Insert(key string, value []byte, expiry int) error
BatchInsert(updates map[string][]byte) error
Get(key string) ([]byte, error)
GetByPrefix(prefix string) (map[string][]byte, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be useful also having Delete BatchDelete/Trim and functions.
maybe in the next PR?..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes will be useful, but I don't have any clue on the possible usage yet, too afraid to create function signature that might not satisfy our needs later, will note this for later implementation

@andy-shi88 andy-shi88 merged commit bf5bee3 into zoobc:develop Oct 4, 2019
@andy-shi88 andy-shi88 deleted the 254-block-receipts-reminder branch October 4, 2019 02:15
@andy-shi88 andy-shi88 removed their assignment Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working FEATURE New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Receipt should be generated regardless if we have the data already or not Tech: Block Receipts Reminder
4 participants