Post
Topic
Board Development & Technical Discussion
Merits 4 from 3 users
Re: Testnet questions
by
nc50lc
on 02/09/2025, 04:51:58 UTC
⭐ Merited by takuma sato (2) ,vjudeu (1) ,ABCbits (1)
Is there a way to know if assumevalid is enabled in the console command? getblockchaininfo doesn't show it.
In the console, no.
In your debug.log, if applied, it should show as "Assuming ancestors of block <hash> have valid signatures".
But it wont tell you if the hash you provided is valid (in case of the typo or wrong chain)

Quote from: takuma sato
Using "--help" on GUI console command returns this: "Method not found (code -32601)"
Just drop the "--" for it to work in the GUI, use: help

Quote from: takuma sato
Yeah, I realized that isn't it. And no im in Linux. By shortcut I meant .desktop files. I realized it's better than using the .conf file. You do not want to use the .conf file for anything that has to do with blockchain size (prune, assumevalid) because if you accidentally launch mainnet with prune (you may use prune for testnet) then you screwed up your mainnet files.
Now that you mentioned it (separate test chains), you can minimize those screw-ups if your put the configs under their respective tags.

Settings exclusively for mainnet can be put under [main] tag. That way, it wont be applied to testnet 3/4 and regtest.
Here's one example conf. applicable to v29.0:
Code:
[main]
bind=127.0.0.1:8334=onion
onlynet=onion

[regtest]
txindex=1

[test]
prune=5480

[testnet4]
assumevalid=<block hash>