forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[r2r] refactor p2p message processing flow (#1436)
* refactor p2p message processing flow Signed-off-by: ozkanonur <work@onurozkan.dev> * drop `message` mutability in `process_p2p_message` Signed-off-by: ozkanonur <work@onurozkan.dev> * refactor `fn tx_enum_from_bytes` error type Signed-off-by: Onur Özkan <work@onurozkan.dev> * check topics in `lp_topic_list_validation` Signed-off-by: Onur Özkan <work@onurozkan.dev> * optimize Signed-off-by: Onur Özkan <work@onurozkan.dev> * check if there is any byte left in tx deserialization Signed-off-by: Onur Özkan <work@onurozkan.dev> * add backwards comparison in `fn deserialization` Signed-off-by: Onur Özkan <work@onurozkan.dev> * rollback 78c6810 Signed-off-by: Onur Özkan <work@onurozkan.dev> * set JEMALLOC_SYS_WITH_MALLOC_CONF on build pipelines Signed-off-by: ozkanonur <work@onurozkan.dev> * Update README.md * add `_` to unused variables Signed-off-by: ozkanonur <work@onurozkan.dev> * refactor `lp_topic_list_validation` as `topic_prefix_and_coin_validation` Signed-off-by: ozkanonur <work@onurozkan.dev> * fix reviews Signed-off-by: Onur Özkan <work@onurozkan.dev> * update `tx_enum_from_bytes` and write unit test Signed-off-by: ozkanonur <work@onurozkan.dev> * update `tx_enum_from_bytes` in tendermint Signed-off-by: ozkanonur <work@onurozkan.dev> * update error log of `process_p2p_message` Signed-off-by: Onur Özkan <work@onurozkan.dev> * create `TxMarshalingErr` Signed-off-by: ozkanonur <work@onurozkan.dev> * fix `test_tx_enum_from_bytes` Signed-off-by: ozkanonur <work@onurozkan.dev> * fix test compilation Signed-off-by: ozkanonur <work@onurozkan.dev> Signed-off-by: ozkanonur <work@onurozkan.dev> Signed-off-by: Onur Özkan <work@onurozkan.dev>
- Loading branch information
1 parent
4c4583c
commit 2864134
Showing
26 changed files
with
181 additions
and
58 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
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
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.