File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,8 @@ struct CacheLevel
137
137
138
138
/* * Class for the base of the hierarchy (roughly simulating a memory-backed CCoinsViewDB).
139
139
*
140
- * The initial state consists of the empty UTXO set, though coins whose output index
141
- * is 3 (mod 5) always have GetCoin() succeed (but returning an IsSpent() coin unless a UTXO
142
- * exists). Coins whose output index is 4 (mod 5) have GetCoin() always succeed after being spent.
140
+ * The initial state consists of the empty UTXO set.
141
+ * Coins whose output index is 4 (mod 5) have GetCoin() always succeed after being spent.
143
142
* This exercises code paths with spent, non-DIRTY cache entries.
144
143
*/
145
144
class CoinsViewBottom final : public CCoinsView
@@ -151,14 +150,10 @@ class CoinsViewBottom final : public CCoinsView
151
150
{
152
151
auto it = m_data.find (outpoint);
153
152
if (it == m_data.end ()) {
154
- if ((outpoint.n % 5 ) == 3 ) {
155
- coin.Clear ();
156
- return true ;
157
- }
158
153
return false ;
159
154
} else {
160
155
coin = it->second ;
161
- return true ;
156
+ return true ; // TODO GetCoin shouldn't return spent coins
162
157
}
163
158
}
164
159
You can’t perform that action at this time.
0 commit comments