MyHush / hush

Hush is a fork of Zcash focused on secure communications
https://myhush.org
Other
67 stars 37 forks source link

Isolate notarization data for testnet + regtest to different files #140

Closed leto closed 5 years ago

leto commented 5 years ago

I noticed that regtest tests could see the mainnet notarization data, which prompted this change. The result of getinfo on regtest mode made no sense, as it said there were 3 blocks total but the last notarized block was 386686 and gave mainnet notarization txid and hash, which are invalid on regtest.

To verify this works, I deleted all notarizations files, then ran ./qa/pull-tester/rpc-tests.sh dpow and verified that ~/.hush/notarizations_regtest existed and ~/.hush/notarizations had not been created.