-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(we're going to squash anyways so there's little point in breaking this into multiple commits) - Pass event slice length instead of slice of byte buffer. - Rework gas costs for the new call and remove the indexing costs because we don't actually charge anything anyways. This lets us charge once at the top. - Add an additional "deferred" memory allocation charge per-event which likely should have been in the initial spec (will need to go into the FIP). - Be extra careful about overflows. Unecessary, but we do this _just_ in case. - _Do_ cast the event entry slice but assert that the alignment is the same as u8 (bytes). Given `repr(packed)`, this is guaranteed. - Don't cap the total value length at 8kib. The total cap is 8kib * 255. - Reduce the max key length & max number of entries by one each so we can better reason about estimated CBOR sizes. I.e., 255 fits in 2 bytes (major type plus one byte for the integer), 256 does not. - Isolate the unsafe logic into the syscall API.
- Loading branch information
Showing
12 changed files
with
153 additions
and
163 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.