diff options
| author | Ben Woosley <[email protected]> | 2020-01-14 23:46:14 -0800 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2020-06-19 12:14:07 -0700 |
| commit | a9e451f144480d7b170e49087df162989d31cd20 (patch) | |
| tree | a50496593555392d0c996311f65026dc6582a737 /src/script/standard.h | |
| parent | Prefer explicit CScriptID construction (diff) | |
| download | discoin-a9e451f144480d7b170e49087df162989d31cd20.tar.xz discoin-a9e451f144480d7b170e49087df162989d31cd20.zip | |
Convert CPubKey to WitnessV0KeyHash directly
The round-tripping through PKHash has no effect, and is
potentially misleading as such.
Diffstat (limited to 'src/script/standard.h')
| -rw-r--r-- | src/script/standard.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/standard.h b/src/script/standard.h index 7c74d05be..382d8d002 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -103,6 +103,7 @@ struct WitnessV0KeyHash : public uint160 { WitnessV0KeyHash() : uint160() {} explicit WitnessV0KeyHash(const uint160& hash) : uint160(hash) {} + explicit WitnessV0KeyHash(const CPubKey& pubkey); }; //! CTxDestination subtype to encode any future Witness version |