@@ -1085,7 +1085,7 @@ bool CheckZerocoinSpend(const CTransaction& tx, bool fVerifySignature, CValidati
10851085 for (const CTxIn& txin : tx.vin ) {
10861086
10871087 // only check txin that is a zcspend
1088- bool isPublicSpend = txin.scriptSig . IsZerocoinPublicSpend ();
1088+ bool isPublicSpend = txin.IsZerocoinPublicSpend ();
10891089 if (!txin.IsZerocoinSpend () && !isPublicSpend)
10901090 continue ;
10911091
@@ -1221,7 +1221,7 @@ bool CheckTransaction(const CTransaction& tx, bool fZerocoinActive, bool fReject
12211221 // require that a zerocoinspend only has inputs that are zerocoins
12221222 if (tx.HasZerocoinSpendInputs ()) {
12231223 for (const CTxIn& in : tx.vin ) {
1224- if (!in.IsZerocoinSpend () && !in.scriptSig . IsZerocoinPublicSpend ())
1224+ if (!in.IsZerocoinSpend () && !in.IsZerocoinPublicSpend ())
12251225 return state.DoS (100 ,
12261226 error (" CheckTransaction() : zerocoinspend contains inputs that are not zerocoins" ));
12271227 }
@@ -1394,7 +1394,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState& state, const CTransa
13941394 // Check for double spending of serial #'s
13951395 for (const CTxIn& txIn : tx.vin ) {
13961396 // Only allow for zc spends inputs
1397- bool isPublicSpend = txIn.scriptSig . IsZerocoinPublicSpend ();
1397+ bool isPublicSpend = txIn.IsZerocoinPublicSpend ();
13981398 if (!txIn.IsZerocoinSpend () && !isPublicSpend) {
13991399 return state.Invalid (error (" %s: ContextualCheckZerocoinSpend failed for tx %s, every input must be a zcspend or zcpublicspend" , __func__,
14001400 tx.GetHash ().GetHex ()), REJECT_INVALID, " bad-txns-invalid-zpiv" );
@@ -2447,7 +2447,7 @@ void AddInvalidSpendsToMap(const CBlock& block)
24472447
24482448 // Check all zerocoinspends for bad serials
24492449 for (const CTxIn& in : tx.vin ) {
2450- bool isPublicSpend = in.scriptSig . IsZerocoinPublicSpend ();
2450+ bool isPublicSpend = in.IsZerocoinPublicSpend ();
24512451 if (in.IsZerocoinSpend () || isPublicSpend) {
24522452
24532453 CoinSpend* spend;
@@ -2654,7 +2654,7 @@ bool DisconnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex
26542654 if (tx.HasZerocoinSpendInputs ()) {
26552655 // erase all zerocoinspends in this transaction
26562656 for (const CTxIn &txin : tx.vin ) {
2657- bool isPublicSpend = txin.scriptSig . IsZerocoinPublicSpend ();
2657+ bool isPublicSpend = txin.IsZerocoinPublicSpend ();
26582658 if (txin.scriptSig .IsZerocoinSpend () || isPublicSpend) {
26592659 CBigNum serial;
26602660 if (isPublicSpend) {
@@ -3223,7 +3223,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
32233223 // Check for double spending of serial #'s
32243224 set<CBigNum> setSerials;
32253225 for (const CTxIn& txIn : tx.vin ) {
3226- bool isPublicSpend = txIn.scriptSig . IsZerocoinPublicSpend ();
3226+ bool isPublicSpend = txIn.IsZerocoinPublicSpend ();
32273227 bool isPrivZerocoinSpend = txIn.IsZerocoinSpend ();
32283228 if (!isPrivZerocoinSpend && !isPublicSpend)
32293229 continue ;
@@ -4427,7 +4427,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW, bo
44274427 // double check that there are no double spent zPIV spends in this block
44284428 if (tx.HasZerocoinSpendInputs ()) {
44294429 for (const CTxIn& txIn : tx.vin ) {
4430- bool isPublicSpend = txIn.scriptSig . IsZerocoinPublicSpend ();
4430+ bool isPublicSpend = txIn.IsZerocoinPublicSpend ();
44314431 if (txIn.IsZerocoinSpend () || isPublicSpend) {
44324432 libzerocoin::CoinSpend spend;
44334433 if (isPublicSpend) {
@@ -4785,7 +4785,7 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
47854785 for (const CTransaction& tx : block.vtx ) {
47864786 for (const CTxIn& in: tx.vin ) {
47874787 if (nHeight >= Params ().Zerocoin_StartHeight ()) {
4788- bool isPublicSpend = in.scriptSig . IsZerocoinPublicSpend ();
4788+ bool isPublicSpend = in.IsZerocoinPublicSpend ();
47894789 bool isPrivZerocoinSpend = in.IsZerocoinSpend ();
47904790 if (isPrivZerocoinSpend || isPublicSpend) {
47914791
0 commit comments