Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RPA Support #234

Merged
merged 92 commits into from
Mar 4, 2024
Merged

Add RPA Support #234

merged 92 commits into from
Mar 4, 2024

Conversation

cculianu
Copy link
Owner

@cculianu cculianu commented Mar 2, 2024

Based on work by Jt Freeman from here: https://github.com/Electron-Cash/Fulcrum-RPA
Thanks to Jonald Fyookball for getting the ball rolling and merging the above RPA implementation to the latest Fulcrum here: https://github.com/fyookball/Fulcrum

This is a complete reimplementation of the above, however, since the above suffered from some performance issues, had no ability to turn the index on or off, and had no way for extant Fulcrum servers to just turn the index "on" after an upgrade: auto-synch of just the index was needed, basically!

What's more, the original Fulcrum-RPA test implementation had some bugs (it incorrectly refused to index some inputs, and did index others it shouldn't have).


This work was paid for by the community via the flipstarter campaign at: https://flipstarter.c3-soft.com/

Thank you to all who donated to make this work possible!

cculianu added 21 commits March 2, 2024 02:03
May be useful later for the Controller.
It's now in Storage::addRpaDataForHeight_nolock, since it does some
defensive sanity checking.
It needs work in recovering from DL failure and other corner cases but
it basically works.
I'm pretty sure we are solid now and the RPA index eventally synchs
separate of the general block download on config change. Meaning users
get a decent experience with the index if they play with enabled/disabled
toggling.
This is due to the addition of the RPA index facility.
Also bumped protocol version to 1.5.3 due to addition of new RPA
RPCs.
It really should be a percentage of the current download progress and
not a full blockchain percentage as the normal blocks synch is.

Fixed.
This is because on some platforms they are actually #defines to some
global thing, so eg `bitcoin::htole16` was failing to compile on such
platforms.
GCC-11 + Qt5 didn't like some of the stuff we did in recent commits.
Fixed.
They are unimplemented anyway and no clients use them (for now).
And also some other minor tweaks. Mostly a renaming/nit commit.
@cculianu cculianu added the enhancement New feature or request label Mar 2, 2024
@cculianu cculianu merged commit 4aa8f84 into master Mar 4, 2024
@cculianu cculianu deleted the rpa/redo_implementation branch March 4, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants