Closed apoelstra closed 1 year ago
I'm confused by these errors -- it seems that I've broken the version detection somehow, but I don't understand how.
After staring at versions the last 10 minutes I think I get it, I think the logic in versions.rs should be version_x, not version_x+1
but we have version_x, not version_x-1
Ah! Yep, good catch!
Also I made some typos in versions.rs.
could you please squash this last fix for mac 66a5d09570d6620e0a5a4bd5a512353cbcd8809c
Done. Thank you!! Sorry for so many iterations.
ACK c06ee2fb8b96e8703ab157490b4486432e7a866f
Thank you for this great idea to make features non-exclusive!
Going to release soon
Hooray! Thanks for accepting. Once we release I'll go try to update elementsd to use this new release, and a similar idea (which is actually what I'm trying to do here :P)
This allows the library to be compiled with any combination of versions of Bitcoin Core -- it will just use the highest one.
This won't guarantee compatibility because Bitcoin Core sometimes makes backward-compatibility breaking changes ... but it is much better than the current situation where if you specify multiple feature flags, the library won't compile at all.