Add masternodes to address database

This commit is contained in:
R E Broadley 2014-06-23 10:07:45 +07:00 committed by Evan Duffield
parent 0b86a4da56
commit e025fe7934

View File

@ -4183,6 +4183,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
return false; return false;
} }
addrman.Add(CAddress(addr), pfrom->addr, 2*60*60);
CMasterNode mn(addr, vin, pubkey, vchSig, sigTime, pubkey2); CMasterNode mn(addr, vin, pubkey, vchSig, sigTime, pubkey2);
mn.UpdateLastSeen(lastUpdated); mn.UpdateLastSeen(lastUpdated);