Consider adding an ignore_tip
or similar config option for forked chains
#7986
Replies: 4 comments 2 replies
-
I think that's a good idea. And it should say that Zebra is near the tip regardless of the internal service that's asking. It could work the same way as the mempool option, which is zebra/zebrad/src/components/mempool.rs Line 279 in 382fb37 So for example in the QEDIT early testnet fork, they would set it to 20,000, or whatever the block before their fork height is. |
Beta Was this translation helpful? Give feedback.
-
As a workaround for now, QEDIT could sync the full testnet chain, and then their fork would be near the tip. |
Beta Was this translation helpful? Give feedback.
-
It will be out of sync at some point anyways specially if you are experimenting, the workaround for now has been commenting out the code. |
Beta Was this translation helpful? Give feedback.
-
Any outcome yet on this discussion? Should we create an issue from it? |
Beta Was this translation helpful? Give feedback.
-
When forking the zcash testnet chain there is a point in the process where you need to comment out code that checks the chain is close to the tip such as:
https://github.com/ZcashFoundation/zebra/blob/v1.4.0/zebra-rpc/src/methods/get_block_template_rpcs/get_block_template.rs#L179-L199
The Qedit team reported this but i had to do the same when creating a testnet fork. I was wondering if it will worth to add a debug
ignore_tip
config option that could ignore that branch (and potentially others) when activated.Beta Was this translation helpful? Give feedback.
All reactions