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

Add support for Bitcoin Core v28 #22

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Aug 30, 2024

Based on #21.

Currently still work in progress (as v28.0rc1 has just been released, so no final binaries are available etc).

Ready for review.

@tnull tnull marked this pull request as draft August 30, 2024 10:15
Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this man. Can you pull the formatting changes out please, I was surprised to see changes to the json/src/v17 files. Also, did you get the contents of rpc-ap.txt from running bitcoin-cli help against a Core v28 instance or did you copy'paste for another existing file? (EDIT: Oh submitpackage only exists in v28 so you must have used bitcoin-cli :)

I merged #22 so you can rebase when you feel like it. Cheers

client/src/client_sync/v28.rs Outdated Show resolved Hide resolved
client/src/client_sync/v28.rs Outdated Show resolved Hide resolved
client/src/client_sync/v28.rs Outdated Show resolved Hide resolved
@tnull tnull force-pushed the 2024-08-add-v28-support branch from 07d0f1e to 383c1cf Compare September 2, 2024 07:43
@tnull
Copy link
Contributor Author

tnull commented Sep 2, 2024

Thanks for working on this man. Can you pull the formatting changes out please, I was surprised to see changes to the json/src/v17 files.

Ah, now dropped them, didn't realize they slipped in as I didn't expect it either.

Also, did you get the contents of rpc-ap.txt from running bitcoin-cli help against a Core v28 instance or did you copy'paste for another existing file? (EDIT: Oh submitpackage only exists in v28 so you must have used bitcoin-cli :)

Jup, run bitcoin-cli (took me a while to get where rpc-api.txts are coming from though :)

I merged #22 so you can rebase when you feel like it. Cheers

Cool, rebased for now, will resume work ~end of this week.

@tcharding
Copy link
Member

tcharding commented Sep 2, 2024

(took me a while to get where rpc-api.txts are coming from though :)

Ha! So we need a "How to add support for a new version" doc. I'd love a script to check that all the rpc-ap.txt files actually come from bitcoin-cli help > rpc-api.txt for the correct version of Core and are not just copied from another file. Yesterday I was looking at the wrong buffer in my editor and thought I'd made a mistake so went back and checked manually. It would be nice to check that the mod.rs rustdoc is using the correct rpc-api.txt content as well, as it is we just have to hope I didn't get mixed up :)

@tcharding
Copy link
Member

We should be right to get this in now mate if you have clockcycles free to work in it?

@tnull
Copy link
Contributor Author

tnull commented Oct 30, 2024

We should be right to get this in now mate if you have clockcycles free to work in it?

Yes, excuse the delay here, I was busy with other stuff since v28 was released. Given that that's done now, will see to make some progress here this week.

@tcharding
Copy link
Member

No stress, and no rush.

@tnull tnull force-pushed the 2024-08-add-v28-support branch 2 times, most recently from 1f46cba to 786a870 Compare November 1, 2024 10:41
@tnull tnull marked this pull request as ready for review November 1, 2024 10:41
@tnull tnull changed the title WIP: Add support for Bitcoin Core v28 Add support for Bitcoin Core v28 Nov 1, 2024
@tnull
Copy link
Contributor Author

tnull commented Nov 1, 2024

We should be right to get this in now mate if you have clockcycles free to work in it?

* Needs `pub mod v28` in `client/src/client_sync/mod.rs`

* Needs the SHA file from https://bitcoincore.org/bin/bitcoin-core-28.0/

* Two tests are failing when running `cargo test --features=28_0` (in integration tests).

Alright, now added the final SHA file for 28.0 and fixed the tests/RPC changes in getnetworkinfo and getblockchain info.
Should be ready for review, let me know if I can squash the fixup commits.

@tnull tnull requested a review from tcharding November 1, 2024 10:44
@tnull tnull force-pushed the 2024-08-add-v28-support branch from 786a870 to bd1e13a Compare November 1, 2024 10:44
@tcharding
Copy link
Member

looks good man, yes please squash it down.

Add support and testing for Bitcoin Core versions `28.0`
@tnull tnull force-pushed the 2024-08-add-v28-support branch from bd1e13a to fcd9696 Compare November 2, 2024 13:47
@tnull
Copy link
Contributor Author

tnull commented Nov 2, 2024

looks good man, yes please squash it down.

Squashed without further changes.

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fcd9696

@tcharding tcharding merged commit 383ec94 into rust-bitcoin:master Nov 2, 2024
32 checks passed
@tcharding
Copy link
Member

Thanks man, you are the first person apart from me to patch this repo - super cool! I hope you find this crate useful.

@tcharding
Copy link
Member

Hey @tnull are you waiting on this to release? I got g'd up by #48 and released the crates, I meant to release 0.3 without the new stuff but I botched it and ended up releasing 0.4 with your Coer v28 stuff.

My question to you is, do you want me to do a 0.4 release of this as is before the rename (assuming the rename goes through)?

@tnull
Copy link
Contributor Author

tnull commented Nov 14, 2024

Hey @tnull are you waiting on this to release?

Nope, no worries! Where we have bitcoind RPC support we so far had our own types working, and we're not in a rush to switch at all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants