prysm-pulse/beacon-chain/node/registration
Mohamed Mansour 47c28e6cd6
Show error in logs if passing invalid flags in yaml (#9033)
* Show error in logs if passing invalid flags in yaml

The YAML configs pass if an invalid flag is set, this causes frustration
because the flag could have been mispelled causing a huge mystery.

This will strictly check if the flags are deserialized, if a flag
doesn't exist, it will error out as a Fatal error with appropriate
reasoning which flag is wrong.

* Fix review comments to make some of them non-fatal

* Make yaml.TypeError a pointer

* Remove UnmarshalStrict from spectests since they use a different YAML package

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-01 03:26:24 +00:00
..
BUILD.bazel Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
log.go Create node's Powchain registration file (#8754) 2021-04-14 12:54:50 +02:00
p2p_test.go Create node's P2P registration file (#8745) 2021-04-13 07:41:06 +00:00
p2p.go Show error in logs if passing invalid flags in yaml (#9033) 2021-08-01 03:26:24 +00:00
powchain_test.go Create node's Powchain registration file (#8754) 2021-04-14 12:54:50 +02:00
powchain.go Reduce Usage of Eth2 Terminology in Prysm (#9104) 2021-06-26 19:00:33 +00:00