-
Notifications
You must be signed in to change notification settings - Fork 94
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
[r2r] refactor p2p message processing flow #1436
Conversation
Signed-off-by: ozkanonur <work@onurozkan.dev>
…rkflow-optimization-on-broadcasts
Signed-off-by: ozkanonur <work@onurozkan.dev>
Signed-off-by: Onur Özkan <work@onurozkan.dev>
Signed-off-by: Onur Özkan <work@onurozkan.dev>
Signed-off-by: Onur Özkan <work@onurozkan.dev>
Signed-off-by: Onur Özkan <work@onurozkan.dev>
Signed-off-by: ozkanonur <work@onurozkan.dev>
Signed-off-by: ozkanonur <work@onurozkan.dev>
…ion` Signed-off-by: ozkanonur <work@onurozkan.dev>
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.
Thanks for the PR! First review.
Signed-off-by: Onur Özkan <work@onurozkan.dev>
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.
I have only one non-blocking question.
Signed-off-by: ozkanonur <work@onurozkan.dev>
…rkflow-optimization-on-broadcasts
Signed-off-by: ozkanonur <work@onurozkan.dev>
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.
Great work 🔥 ! Only one minor comment :)
Signed-off-by: Onur Özkan <work@onurozkan.dev>
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.
Great progress!
Please consider my suggestions
Signed-off-by: ozkanonur <work@onurozkan.dev>
Signed-off-by: ozkanonur <work@onurozkan.dev>
Signed-off-by: ozkanonur <work@onurozkan.dev>
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.
Very good!
* 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>
Solutions:
x86_64
send_raw_tx_bytes
s future to avoid blocking the iteratortxhlp
topic prefix, check if tx is valid, if notcontinue
.