| 315 | } |
| 316 | |
| 317 | bool IsNull() const |
| 318 | { |
| 319 | if (!g_con_elementsmode) { |
| 320 | // Ignore the asset and the nonce in compatibility mode. |
| 321 | return nValue.IsNull() && scriptPubKey.empty(); |
| 322 | } |
| 323 | |
| 324 | return nAsset.IsNull() && nValue.IsNull() && nNonce.IsNull() && scriptPubKey.empty(); |
| 325 | } |
| 326 | |
| 327 | bool IsFee() const { |
| 328 | return g_con_elementsmode && scriptPubKey == CScript() |
no test coverage detected