CodeChain-io / CodeChain-io/codechain

RPC:SendSignedTransaction can be optimized

Aperta
#1,973 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
performance rpc
Lingua principale
Rust
Stelle
256
Fork
50
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.