Closed tengge1 closed 3 years ago
https://bitcoin.stackexchange.com/questions/105364/error-generate-new-block-with-signet-test
You can't create blocks yourself for the global signet; it requires signatures by the parties running that signet.
Thank you very much. I create my own signet challenge: https://en.bitcoin.it/wiki/Signet:Custom:Script
I create some servers:
#!/bin/bash
bitcoind -server -listen -port=17591 -rpcuser=rpc -rpcpassword=x -rpcport=16591 -datadir=$HOME/.bitcoin/signet/A/ -connect=localhost:17592 -signet -signetchallenge=512103bb1425519423e645b7c687747d5bf6a983719b3ab6bdd39eb214f1bcca47d66751ae -daemon
bitcoind -server -listen -port=17592 -rpcuser=rpc -rpcpassword=x -rpcport=16592 -datadir=$HOME/.bitcoin/signet/B/ -connect=localhost:17593 -signet -signetchallenge=512103bb1425519423e645b7c687747d5bf6a983719b3ab6bdd39eb214f1bcca47d66751ae -daemon
bitcoind -server -listen -port=17593 -rpcuser=rpc -rpcpassword=x -rpcport=16593 -datadir=$HOME/.bitcoin/signet/C/ -connect=localhost:17594 -signet -signetchallenge=512103bb1425519423e645b7c687747d5bf6a983719b3ab6bdd39eb214f1bcca47d66751ae -daemon
bitcoind -server -listen -port=17594 -rpcuser=rpc -rpcpassword=x -rpcport=16594 -datadir=$HOME/.bitcoin/signet/D/ -connect=localhost:17595 -signet -signetchallenge=512103bb1425519423e645b7c687747d5bf6a983719b3ab6bdd39eb214f1bcca47d66751ae -daemon
bitcoind -server -listen -port=17595 -rpcuser=rpc -rpcpassword=x -rpcport=16595 -datadir=$HOME/.bitcoin/signet/E/ -connect=localhost:17591 -signet -signetchallenge=512103bb1425519423e645b7c687747d5bf6a983719b3ab6bdd39eb214f1bcca47d66751ae -daemon
generate
is working now.
user@machine:~$ bitcoin-cli -signet -signetchallenge=512103bb1425519423e645b7c687747d5bf6a983719b3ab6bdd39eb214f1bcca47d66751ae -rpcuser=rpc -rpcpassword=x -rpcport=16591 -generate 1
{
"address": "tb1qdldmr8nzy9j09zzlc8jwpcny8j7z0y8rsl8dz8",
"blocks": [
]
}
But when I call getblocktemplate
method, I get an error:
user@machine:~$ bitcoin-cli -signet -signetchallenge=512103bb1425519423e645b7c687747d5bf6a983719b3ab6bdd39eb214f1bcca47d66751ae -rpcuser=rpc -rpcpassword=x -rpcport=16591 getblocktemplate '{"rules": ["signet","segwit"]}'
error code: -10
error message:
Bitcoin Core is in initial sync and waiting for blocks...
I wait for a long time, and I still get the error, and I cannot mine on my own signet.
Sorry but your issue is unrelated to cpuminer. While we're on the subject, however, I should probably mention that there are no plans to add BIP325 support to cpuminer. The tooling provided with Bitcoin Core should be sufficient.
Producing blocks for custom signets with no signature requirements is simple though, see #285.
run bitcoind:
run miner:
result:
the bitcoind outputs: