diff options
| author | Pieter Wuille <[email protected]> | 2017-08-25 19:55:52 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-09-28 16:24:30 -0700 |
| commit | c091b99379b97cb314c9fa123beabdbc324cf7a4 (patch) | |
| tree | f1cc720f195b18842831f964a3dd1fc71d29a4ff /src/policy | |
| parent | Add regtest testing to base58_tests (diff) | |
| download | discoin-c091b99379b97cb314c9fa123beabdbc324cf7a4.tar.xz discoin-c091b99379b97cb314c9fa123beabdbc324cf7a4.zip | |
Implement BIP173 addresses and tests
Diffstat (limited to 'src/policy')
| -rw-r--r-- | src/policy/policy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index 56912d037..b2fb28450 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -76,7 +76,7 @@ bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType, const bool w else if (!witnessEnabled && (whichType == TX_WITNESS_V0_KEYHASH || whichType == TX_WITNESS_V0_SCRIPTHASH)) return false; - return whichType != TX_NONSTANDARD; + return whichType != TX_NONSTANDARD && whichType != TX_WITNESS_UNKNOWN; } bool IsStandardTx(const CTransaction& tx, std::string& reason, const bool witnessEnabled) |