I encounter an error with new command getblockfrompeer
.
0bitcoin-cli getblockfrompeer "000000000000034a7dedef4a161fa058a2d67a173a90155f3a2fe6fc132e0ebf" 0
1error code: -1
2error message:
3JSON value is not an integer as expected
It’s working with curl:
0curl -v --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockfrompeer", "params": ["000000000000034a7dedef4a161fa058a2d67a173a90155f3a2fe6fc132e0ebf", 0] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
I use the version bitcoin-core-23.0/test.rc5/bitcoin-23.0rc5-arm64-apple-darwin.dmg