scripted-diff: TxoutType C++11 scoped enum class
Summary:
Non-scoped enums can accidentally and silently decay into an integral type. Also, the symbol names of the keys are exported to the surrounding (usually global) namespace. Fix both issues by switching to an enum class TxoutType in a (mostly) scripted-diff.
Backport of core PR19114.
Depends on D9124.
Test Plan:
ninja all check-all ninja bitcoin-fuzzers
Reviewers: #bitcoin_abc, majcosta
Reviewed By: #bitcoin_abc, majcosta
Subscribers: PiRK
Differential Revision: https://reviews.bitcoinabc.org/D9126