CodeChain-io / CodeChain-io/codechain

RPC:SendSignedTransaction can be optimized

Open
#1,973 0 comments 0 reactions 0 assignees View on GitHub
performance rpc
Dominant language
Rust
Stars
256
Forks
50
PR merge metrics
No merged PRs in 30d

Description

When the RPC `SendSignedTransaction` is called, the client tries to construct `SignedTransaction` from an `untrustedRlp`. It carries out a computationally heavy job (e.g. public key recovery). However, `add_transactions_to_pool` accepts only `UnVerifiedTransaction`, `SignedTransaction` is converted to the untrusted one again. so the signature verification step should be repeated again.
We can reduce the repeated verification steps.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.