| 27 | } |
| 28 | |
| 29 | void ThinTx::merge(const ThinTx& tx) { |
| 30 | if (hasFull()) |
| 31 | return; |
| 32 | |
| 33 | if (tx.hasFull()) { |
| 34 | full_ = tx.full(); |
| 35 | cheap_ = tx.cheap(); |
| 36 | return; |
| 37 | } |
| 38 | |
| 39 | if (!hasCheap() && tx.hasCheap()) |
| 40 | cheap_ = tx.cheap(); |
| 41 | |
| 42 | if (hasObfuscated()) |
| 43 | return; |
| 44 | |
| 45 | if (!tx.hasObfuscated()) |
| 46 | return; |
| 47 | |
| 48 | obfuscated_ = tx.obfuscated_; |
| 49 | } |
| 50 | |
| 51 | bool ThinTx::hasFull() const { |
| 52 | return !full_.IsNull(); |
no test coverage detected