-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manually test the getblocktemplate
RPC creates valid blocks
#5803
Comments
@oxarbitrage please tag your tickets with A-rpc, so we can find them when we're looking for RPC work. |
getblocktemplate
in the zcash testnetgetblocktemplate
mining in the zcash testnet
getblocktemplate
mining in the zcash testnetgetblocktemplate
RPC creates valid blocks on the zcash testnet
getblocktemplate
RPC creates valid blocks on the zcash testnetgetblocktemplate
RPC creates valid blocks
Please check your box when you have successfully run the You'll need a synced We need to merge a few bug fixes to get the script to work all the time:
|
I spent some time increasing the coverage of the test script in #5944, and making it easier to use. I discovered two bugs during my testing:
Bug #5982 is a consensus rule bug that will block finishing off testing. (We can still check for other bugs until it is fixed.) |
I am using these shell scripts to run continuous proposal tests until a test fails: SUCCESSES=0; while zcash-rpc-block-template-to-proposal 28232 8232 28232; do SUCCESSES=$((SUCCESSES+1)); echo "Successes: $SUCCESSES"; sleep 10; done
SUCCESSES=0; while ZCASH_CLI="zcash-cli -testnet" zcash-rpc-block-template-to-proposal 38232 18232 38232; do SUCCESSES=$((SUCCESSES+1)); echo "Successes: $SUCCESSES"; sleep 10; done My Zebra nodes are on 28232 and 38232, and my |
When there is a chain fork change or a block arrives during proposal creation, a |
What are the next steps here? When can we be satisfied that we have fully tested this? |
We need to fix the known bugs to see if any checks that come after those fail.
It's succeeding consistently for me on the branch that addresses #5982 so that could be the last bug before we can all run this successfully for a few hours and close this issue. We need to fix #5984 too but that bug doesn't seem visible in this test without submitting a transaction that triggers it first. |
I think we're done here! 🎉 |
Our final goal is to support mining pools to use zebra for their operations. This requires multiple rpc methods to be present.
There is a discussion open to exchange ideas on this.
Details
From #5804 (comment)
I think we can do testing using a block proposal, which is a block without a proof of work.
Here's how we could do that:
data
fieldszcashd
using `getblocktemplate '{ "mode": "proposal", "data": "(hex data)" }'zcashd
has proposal support, but it's not documented. Here's the spec:https://en.bitcoin.it/wiki/BIP_0023#Block_Proposal
Related Work
getblocktemplate
RPC creates valid blocks #5803zcashd
mempools are similar #5935The text was updated successfully, but these errors were encountered: