Skip to content

Example for accessing and mutating server state in RPC calls? #224

Open
@mystal

Description

@mystal

All the examples I've found so far don't have any real state on the server that is accessed or mutated in RPC calls. I went digging and found the emerald project which seems to do some of that here:
https://github.com/ethereumproject/emerald-rs/blob/master/src/rpc

That seems like a reasonable approach to take, using Arc<Mutex> to access and mutate server state. Does that sound right?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions