-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize constants and changel2 utils
- Loading branch information
Showing
10 changed files
with
74 additions
and
86 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
;; get D bytes from transaction bytes | ||
;@in E: batchHashDataPointer | ||
;@in D: number of bytes to get | ||
;@in C: current data parsed pointer | ||
;@in HASHPOS: batchHashPos | ||
;@out A: D bytes from batch data at offset C | ||
getChangeL2TxBytes: | ||
$ => B :MLOAD(batchL2DataParsed) | ||
$ - B - C - D :F_MLOAD(batchL2DataLength), JMPN(invalidDecodeChangeL2Block) | ||
$ => E :MLOAD(batchHashDataPointer) | ||
$ => HASHPOS :MLOAD(batchHashPos) | ||
$ => A :HASHP(E) | ||
HASHPOS :MSTORE(batchHashPos) | ||
C => HASHPOS | ||
$ => E :MLOAD(txHashPointer), RETURN | ||
$ => A :HASHP(E), RETURN |
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.