@@ -434,13 +434,13 @@ void CTxMemPool::addAddressIndex(const CTxMemPoolEntry &entry, const CCoinsViewC
434
434
const CTxOut &prevout = view.GetOutputFor (input);
435
435
if (prevout.scriptPubKey .IsPayToScriptHash ()) {
436
436
vector<unsigned char > hashBytes (prevout.scriptPubKey .begin ()+2 , prevout.scriptPubKey .begin ()+22 );
437
- CMempoolAddressDeltaKey key (2 , uint160 (hashBytes), txhash, j, true );
437
+ CMempoolAddressDeltaKey key (2 , uint160 (hashBytes), txhash, j, 1 );
438
438
CMempoolAddressDelta delta (entry.GetTime (), prevout.nValue * -1 , input.prevout .hash , input.prevout .n );
439
439
mapAddress.insert (make_pair (key, delta));
440
440
inserted.push_back (key);
441
441
} else if (prevout.scriptPubKey .IsPayToPublicKeyHash ()) {
442
442
vector<unsigned char > hashBytes (prevout.scriptPubKey .begin ()+3 , prevout.scriptPubKey .begin ()+23 );
443
- CMempoolAddressDeltaKey key (1 , uint160 (hashBytes), txhash, j, true );
443
+ CMempoolAddressDeltaKey key (1 , uint160 (hashBytes), txhash, j, 1 );
444
444
CMempoolAddressDelta delta (entry.GetTime (), prevout.nValue * -1 , input.prevout .hash , input.prevout .n );
445
445
mapAddress.insert (make_pair (key, delta));
446
446
inserted.push_back (key);
@@ -451,13 +451,13 @@ void CTxMemPool::addAddressIndex(const CTxMemPoolEntry &entry, const CCoinsViewC
451
451
const CTxOut &out = tx.vout [k];
452
452
if (out.scriptPubKey .IsPayToScriptHash ()) {
453
453
vector<unsigned char > hashBytes (out.scriptPubKey .begin ()+2 , out.scriptPubKey .begin ()+22 );
454
- CMempoolAddressDeltaKey key (2 , uint160 (hashBytes), txhash, k, false );
454
+ CMempoolAddressDeltaKey key (2 , uint160 (hashBytes), txhash, k, 0 );
455
455
mapAddress.insert (make_pair (key, CMempoolAddressDelta (entry.GetTime (), out.nValue )));
456
456
inserted.push_back (key);
457
457
} else if (out.scriptPubKey .IsPayToPublicKeyHash ()) {
458
458
vector<unsigned char > hashBytes (out.scriptPubKey .begin ()+3 , out.scriptPubKey .begin ()+23 );
459
459
std::pair<addressDeltaMap::iterator,bool > ret;
460
- CMempoolAddressDeltaKey key (1 , uint160 (hashBytes), txhash, k, false );
460
+ CMempoolAddressDeltaKey key (1 , uint160 (hashBytes), txhash, k, 0 );
461
461
mapAddress.insert (make_pair (key, CMempoolAddressDelta (entry.GetTime (), out.nValue )));
462
462
inserted.push_back (key);
463
463
}
0 commit comments