-
Notifications
You must be signed in to change notification settings - Fork 118
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
Remove Warp Integration #856
Conversation
@@ -436,19 +432,19 @@ var _ = ginkgo.Describe("[Tx Processing]", func() { | |||
// read: 2 keys reads, 1 had 0 chunks | |||
// allocate: 1 key created with 1 chunk | |||
// write: 2 keys modified (new + old) | |||
transferTxConsumed := fees.Dimensions{191, 7, 12, 25, 26} | |||
transferTxConsumed := fees.Dimensions{187, 7, 12, 25, 26} |
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.
Removed https://github.com/ava-labs/hypersdk/blob/203e78b7c65a8b7c875fa4941f974292ce989f52/chain/transaction.go#L76C9-L76C17 which returns an int
which is 4 bytes
Which also resulted in updating the numbers below this line for the rest of the file as well
@@ -437,19 +432,19 @@ var _ = ginkgo.Describe("[Tx Processing]", func() { | |||
// read: 2 keys reads, 1 had 0 chunks | |||
// allocate: 1 key created | |||
// write: 1 key modified, 1 key new | |||
transferTxConsumed := fees.Dimensions{227, 7, 12, 25, 26} | |||
transferTxConsumed := fees.Dimensions{223, 7, 12, 25, 26} |
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.
same comment as above
419f8d1
to
e8e6b68
Compare
@@ -350,8 +350,6 @@ func SetAsset( | |||
copy(v[consts.Uint16Len+symbolLen+consts.Uint8Len+consts.Uint16Len:], metadata) | |||
binary.BigEndian.PutUint64(v[consts.Uint16Len+symbolLen+consts.Uint8Len+consts.Uint16Len+metadataLen:], supply) | |||
copy(v[consts.Uint16Len+symbolLen+consts.Uint8Len+consts.Uint16Len+metadataLen+consts.Uint64Len:], owner[:]) | |||
b := byte(0x0) |
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.
You still need to reduce the size of the allocation of v
above ^
// Proceed with normal verification | ||
return b.verify(ctx, stateReady) | ||
} | ||
|
||
// implements "snowman.Block" | ||
func (b *StatelessBlock) Verify(ctx context.Context) error { |
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.
We may want to unify Build
/build
and Verify
/verify
for now but not sure where we use them.
Closes #855