hirosystems / chainhook

Extract transactions from Stacks and Bitcoin and build event driven re-org resistant indexers and databases.
GNU General Public License v3.0
143 stars 57 forks source link

test against epoch 3.0 #641

Open hugocaillard opened 1 week ago

hugocaillard commented 1 week ago

Because the stacks wire format changed with nakamoto, we want to make sure that chainhook can process epoch 3.0 block.

I could go ahead and just try to update the stacks-codec right now, but considering how sensitive it is, I'd rather do it only to fix something (or make sure I don't actually break anything)

hugocaillard commented 1 week ago

Note: The stacks-codec is very rarely updated (except for some recent clippy fixes that have no impact on the code execution). Although if we want to be sure to know which version is being used, it's possible to specify the commit in the dependencies like so:

# chainhook/Cargo.toml

[patch.crates-io]
stacks-codec = { git = "https://github.com/hirosystems/clarinet.git", rev = "63dfdb2f5ed7013bb0ce29acf02b823e3eb1ffae" }

Or run cargo update stacks-codec to update to the latest version.

In both case, make sure that the cargo.lock is udpated with the right rev