Skip to content

Commit

Permalink
Removed CTxOut::nRounds field
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Jul 20, 2024
1 parent da30da3 commit 0338196
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/primitives/transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ class CTxOut
public:
CAmount nValue;
CScript scriptPubKey;
int nRounds = -10;

CTxOut()
{
Expand All @@ -186,15 +185,12 @@ class CTxOut
inline void SerializationOp(Stream& s, Operation ser_action) {
READWRITE(nValue);
READWRITE(*(CScriptBase*)(&scriptPubKey));
if (ser_action.ForRead())
nRounds = -10;
}

void SetNull()
{
nValue = -1;
scriptPubKey.clear();
nRounds = -10; // an initial value, should be no way to get this by calculations
}

bool IsNull() const
Expand Down

0 comments on commit 0338196

Please sign in to comment.