Skip to content

Add cached blockhash that updates based on a fixed expiration interval #9

@jarry-xiao

Description

@jarry-xiao

Right now, we fetch the blockhash every time we send a transaction, but in theory this makes a few unnecessary RPC calls. One way to potentially solve this problem is to spin up a thread that polls on an interval up update an Arc<RwLock<Hash>> on the client object.

Reduces RPC overload and latency.

Low-ish priority

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions