-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core,accountsdb,bincode,net): Fixes, improvements, renames +…
… discuss (#315) * Refactor `NestedHashTree.getValue` * Use term 'zeroes' instead of 'default' in Pubkey * fuzz: Make TrackedAccount data fixed size It was always already just 32 bytes, there was no real reason for it to be dynamically allocated. * misc: * bincode: Improved names and functionality + fix * fix `bincode.free` for various types * renames & unifies `arraylist.defaultArrayList[Unmanaged]OnEOFConfig` to `arraylist.defaultOnEofConfig`. * renames `arraylist.arrayListFieldConfig` to `arraylist.standardConfig`. * renames `shortvec.ShortVecConfig` to `shortvec.sliceConfig`. * renames `shortvec.ShortVecArrayListConfig` to `shortvec.arrayListConfig`. * Constify data which doesn't need to be mutable * Fix leaks in error path * Use init constants instead of functions * Inline test data, improve std.testing usage * Further simplify `NestedHashTree` * Upper-case init decls * `Hash.default()` -> `Hash.ZEROES` * Upper-case `CompiledKeyMeta.ALL_FALSE` * Upper-case `SocketAddr.UNSPECIFIED` * `ClientVersion.default` -> `ClientVersion.CURRENT` * `Transaction.empty` -> `Transaction.EMPTY` * Remove test It doesn't test anything very useful * comptime-assert error branch as unreachable * Inline more test data & use more inference * remove `socket_addrs_unspecified` * `isAllZeroes` -> `isZeroed`
- Loading branch information
1 parent
8ad06d4
commit 9ed82b2
Showing
24 changed files
with
252 additions
and
316 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
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.