ethereum / trin

An Ethereum portal client: a json-rpc server with nearly instant sync, and low CPU & storage usage
363 stars 111 forks source link

Support risc-v #1444

Open come-maiz opened 1 week ago

come-maiz commented 1 week ago

RISC-V is a good start to get Ethereum nodes running in free hardware, which is a necessary step for a local-first decentralized economy. Lightclients are another necessary step, so these two worlds together are very powerful.

Please support the risc-v architecture in this project.

come-maiz commented 1 week ago

Next we have to update rustls, which is problematic because surf keeps it pinned to an old version and it is unmaintained: https://github.com/http-rs/surf/issues/352#issuecomment-1709404352

KolbyML commented 1 week ago

Next we have to update rustls, which is problematic because surf keeps it pinned to an old version and it is unmaintained: http-rs/surf#352 (comment)

Yeah I guess we should remove it as a dependency and switch to something else in that case

KolbyML commented 1 week ago

Next we have to update rustls, which is problematic because surf keeps it pinned to an old version and it is unmaintained: http-rs/surf#352 (comment)

https://github.com/ethereum/trin/issues/1446

I opened a PR to move us to reqwest instead of surf, so that should unblock that step

come-maiz commented 1 week ago

Nice! Thank you @KolbyML. It works.

Next is ethers-providers: https://github.com/gakonst/ethers-rs/issues/2786

KolbyML commented 1 week ago

Nice! Thank you @KolbyML. It works.

Next is ethers-providers: gakonst/ethers-rs#2786

We want to remove etheres-rs in Trin and replace it with alloy

come-maiz commented 1 week ago

That sounds perfect.

KolbyML commented 1 week ago

@come-maiz This PR https://github.com/ethereum/trin/pull/1456 removes our dependency on ethers-rs, are you able to compile on risc-v yet, or are there still some dependency issues?

come-maiz commented 4 days ago

thanks @KolbyML!

Compilation almost finishes now. It's getting stuck in librocksdb-sys, I'll see what I can do on my machine to get it to compile.

KolbyML commented 4 days ago

thanks @KolbyML!

Compilation almost finishes now. It's getting stuck in librocksdb-sys, I'll see what I can do on my machine to get it to compile.

@come-maiz try installing clang and tell me if it works sudo apt install clang

come-maiz commented 4 days ago

It was installed.