ELEMENTS: Because g_con_elementsmode is only set after the moment coinEmpty is initialized, we have to force set it to an empty coin without the default asset commitment.
| 162 | // Because g_con_elementsmode is only set after the moment coinEmpty is initialized, |
| 163 | // we have to force set it to an empty coin without the default asset commitment. |
| 164 | Coin generateEmptyCoin() { |
| 165 | Coin coin; |
| 166 | coin.out.nValue.vchCommitment.clear(); |
| 167 | coin.out.nAsset.vchCommitment.clear(); |
| 168 | return coin; |
| 169 | } |
| 170 | static const Coin coinEmpty = generateEmptyCoin(); |
| 171 | |
| 172 | const Coin& CCoinsViewCache::AccessCoin(const COutPoint &outpoint) const { |