Decouple CCoins from CTxInUndo

This commit is contained in:
jtimon
2014-10-19 02:57:02 +02:00
committed by jtimon
parent 0f2308cf7c
commit c444c620c6
3 changed files with 19 additions and 26 deletions

View File

@@ -9,7 +9,6 @@
#include "compressor.h"
#include "serialize.h"
#include "uint256.h"
#include "undo.h"
#include <assert.h>
#include <stdint.h>
@@ -237,11 +236,8 @@ public:
Cleanup();
}
//! mark an outpoint spent, and construct undo information
bool Spend(const COutPoint &out, CTxInUndo &undo);
//! mark a vout spent
bool Spend(int nPos);
bool Spend(uint32_t nPos);
//! check whether a particular output is still available
bool IsAvailable(unsigned int nPos) const {