[bitcoin/bitcoin] scripted-diff: Simplify common case of CHashWriter and drop SER_GETHASH & SerializeHash (#13462)

@sipa `SER_NETWORK` is `(1 << 0)` i.e. `0x01`, `SER_DISK` is `(1 << 1)` i.e. `0x02`, so both will evaluate to true, while with `0` used where `SER_GETHASH` once was, it will evaluate to false. Note also while they're defined as flags all uses of `SER_GETHASH` are singular. https://github.com/bitcoin/bitcoin/pull/13462/files#diff-1fc2d3d7edc00ab8ea29eb1ca30cdcbbR163

Добавить комментарий