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

Feature/stream start, finish #111

Open
wants to merge 7 commits into
base: feature/ReplicatorOffboarding
Choose a base branch
from

Conversation

cyrillicw
Copy link
Contributor

No description provided.

@cyrillicw cyrillicw changed the base branch from master to drive-closure-transaction October 21, 2021 15:17
@cyrillicw cyrillicw changed the base branch from drive-closure-transaction to feature/ReplicatorOffboarding October 21, 2021 15:24
@@ -170,4 +170,5 @@ const (
ByteSize VarSize = 1
ShortSize VarSize = 2
IntSize VarSize = 4
LongSize VarSize = 8
Copy link
Contributor

Choose a reason for hiding this comment

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

usually, we use an array of IntSize for uint64/int64

newArrayAttribute("maxFee", IntSize),
newArrayAttribute("deadline", IntSize),
newArrayAttribute("driveKey", ByteSize),
newScalarAttribute("expectedUploadSize", LongSize),
Copy link
Contributor

Choose a reason for hiding this comment

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

look at other uint64 fields (maxFee, deadline, etc). They use IntSize array for it. So:

newArrayAttribute("expectedUploadSize", IntSize)

}

func (tx *StreamStartTransaction) String() string {
return ""
Copy link
Contributor

Choose a reason for hiding this comment

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

forgotten implementation?

maxFee: [uint];
deadline: [uint];
driveKey: [ubyte];
expectedUploadSize: uint64;
Copy link
Contributor

Choose a reason for hiding this comment

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

ulong. But let follow other transaction and use [uint].:D

@cyrillicw cyrillicw changed the title Feature/stream start Feature/stream start, finish Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants