RunOnFlux / flux

Flux, Your Gateway to a Decentralized World. https://home.runonflux.io https://api.runonflux.io https://docs.runonflux.io https://source.runonflux.io https://wiki.runonflux.io
https://home.runonflux.io
GNU Affero General Public License v3.0
234 stars 308 forks source link

Feature - Add Flux RPC. #1365

Closed MorningLightMountain713 closed 2 months ago

MorningLightMountain713 commented 2 months ago

Forked from the feature/zmq_enable branch. So that branch getting merged into develop is a dependency for this branch.

1363

(It will look a lot smaller once that branch is merged)

What this pull does

The main reason I needed this was so I can pass a signal into the rpc to cancel it, when necessary. It can take approx 500ms to pull the determ node list, if a block comes in when we are in the middle of this, it makes sense to cancel the pending request and start another.

It was also good to get rid of another couple of dependencies in package.json

MorningLightMountain713 commented 2 months ago

All tests passing

Screenshot 2024-07-06 at 7 56 50 PM

Cabecinha84 commented 2 months ago

Lots of changes, will review/merge after tomorrow release :)