Skip to content

Conversation

@jaoleal
Copy link
Collaborator

@jaoleal jaoleal commented Oct 24, 2025

What is the purpose of this pull request?

  • Bug fix
  • Documentation update
  • New feature
  • Test
  • Other:

Which crates are being modified?

  • floresta-chain
  • floresta-common
  • floresta-compact-filters
  • floresta-electrum
  • floresta-node
  • floresta-rpc
  • floresta-watch-only
  • floresta-wire
  • bin/florestad
  • bin/floresta-cli
  • Other:

Description and Notes

We plan to move out to corepc-types, which should end type drifting but there will be a burden to match both pipeline and response compatibility.

This PR moves the rpc type definition to floresta-rpc, being now a dependency for floresta-node.

How to verify the changes you have done?

Checks that
Types that are only needed for the server doesnt need to be moved into floresta-rpc.

Contributor Checklist

  • I've followed the contribution guidelines
  • I've verified one of the following:
    • Ran just pcc (recommended but slower)
    • Ran just lint-features '-- -D warnings' && cargo test --release
    • Confirmed CI passed on my fork
  • I've linked any related issue(s) in the sections above

Finally, you are encouraged to sign all your commits (it proves authorship and guards against tampering—see How (and why) to sign Git commits and GitHub's guide to signing commits).

@jaoleal jaoleal changed the title [Chore] End rpc type drifting [Chore] WIP: End rpc type drifting Oct 24, 2025
@jaoleal
Copy link
Collaborator Author

jaoleal commented Oct 24, 2025

The diff is messed because i did this in the worst way possible. Gonna fix it and mark it as Ready to Merge.

Also, considering that both floresta-rpc and the rpcserver will use corepc-types, should floresta-rpc re-exports corepc-types ?

@Davidson-Souza Davidson-Souza added chore Cleaning, refactoring, reducing complexity RPC Changes something with our JSON-RPC interface labels Oct 24, 2025
@jaoleal jaoleal force-pushed the json-rpc_chore branch 3 times, most recently from 1186df4 to ec99598 Compare October 24, 2025 18:20
@jaoleal
Copy link
Collaborator Author

jaoleal commented Oct 24, 2025

Guys, the diff still a mess but its because of positioning and renaming.

Marking this as RFR, ill try to search some types that we can already delegate to corepc-types

cc @moisesPompilio.

@jaoleal jaoleal marked this pull request as ready for review October 24, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Cleaning, refactoring, reducing complexity RPC Changes something with our JSON-RPC interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants