Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

add "finalized" block tag #3204

Closed
davidmurdoch opened this issue Jun 8, 2022 · 7 comments
Closed

add "finalized" block tag #3204

davidmurdoch opened this issue Jun 8, 2022 · 7 comments

Comments

@davidmurdoch
Copy link
Member

No description provided.

@davidmurdoch davidmurdoch moved this to Inbox in Ganache Jul 19, 2022
@davidmurdoch davidmurdoch moved this from Inbox to Backlog in Ganache Jul 19, 2022
@molichio
Copy link

molichio commented Sep 2, 2022

this would be handy right now for some merge preparation testing ☺️

@davidmurdoch
Copy link
Member Author

finalized and safe will be aliases for "latest"

@manav2401
Copy link

Hi, I would like to consume the "finalized" and "safe" tags for eth_blockByNumber api. Is there any way I can do so at this moment with ganache? Also, as a workaround, it would work for me even if returns the latest block when we're calling "finalized" or "safe". Thanks!

@davidmurdoch

@davidmurdoch
Copy link
Member Author

@manav2401 you can't use them yet, but soon. We are actively working on it. See #3658 It will return "latest", for requests for "finalized"/"safe".

@manav2401
Copy link

@davidmurdoch Thanks a lot for the info. Yes, I was following that PR. Could you help me pointing to some steps/docs using which I can build ganache from source (in this case from your specific branch)?

@davidmurdoch
Copy link
Member Author

davidmurdoch commented Sep 22, 2022

Clone the repo, checkout the branch, run npm i, and then run npm start -- <you can put your options here>. Example one liner to do all that:
git clone https://github.com/trufflesuite/ganache.git && cd ganache && git checkout merge-things && npm i && npm start -- --fork mainnet --totalAccounts 5.

Also see https://github.com/trufflesuite/ganache/blob/develop/CONTRIBUTING.md

@MicaiahReid
Copy link
Contributor

Closed by #3971

Repository owner moved this from Backlog to Done in Ganache Dec 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

No branches or pull requests

5 participants