-
Notifications
You must be signed in to change notification settings - Fork 3
202 node reciepts collection #265
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
Conversation
…eciepts-collection
…eciepts-collection
…eciepts-collection
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.
one comment only, non blocking 👍
common/query/batchReceiptQuery.go
Outdated
) | ||
newLimit := limit | ||
if limit == 0 { | ||
newLimit = uint32(10) |
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.
wouldn't be better this to be a constant instead of hardcoded uint32(10)?
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, i'd use constant.ReceiptBatchMaximum
it is uint32
@iltoga in the commit below.
Description
batch_receipt
, incoming receipt will store intobatch_receipt
before the count of batch_receipt collection >=ReceiptBatchMaximum
.merkle_root
includedroot
andtree
node_receipt
if count of it is >=ReceiptBatchMaximum
.Breakdown
batch_receipt
node_receipt
collection storedReference Issue
Close #202
Refered zoobc/zoobc-schema#62
Step to Test (optional)
go test ./...