signet: do not log signet startup messages for other chains

and move signet network magic logging from chainparams.cpp to init.cpp
This commit is contained in:
Jon Atack
2020-09-30 19:08:52 +02:00
parent 3487e421a7
commit 6fccad7f71
3 changed files with 8 additions and 2 deletions

View File

@@ -65,6 +65,10 @@ class SignetBasicTest(BitcoinTestFramework):
assert_equal(self.nodes[4].submitblock(signet_blocks[0]), 'bad-signet-blksig')
self.log.info("test that signet logs the network magic on node start")
with self.nodes[0].assert_debug_log(["Signet derived magic (message start)"]):
self.restart_node(0)
if __name__ == '__main__':
SignetBasicTest().main()