void ScrAddrFilter::getScrAddrCurrentSyncState( BinaryData const & scrAddr) { //grab SSH for scrAddr StoredScriptHistory ssh; lmdb_->getStoredScriptHistorySummary(ssh, scrAddr); //update scrAddrData lowest scanned block setScrAddrLastScanned(scrAddr, ssh.alreadyScannedUpToBlk_); }
void ScrAddrFilter::getScrAddrCurrentSyncState( BinaryData const & scrAddr) { if (scrAddr.getSize() == 0) return; uint32_t shard = lmdb_->getShard(scrAddr); //grab SSH for scrAddr LMDBEnv::Transaction tx; lmdb_->beginShardTransaction(tx, shard, LMDB::ReadOnly); StoredScriptHistory ssh; lmdb_->getStoredScriptHistorySummary(ssh, scrAddr); //update scrAddrData lowest scanned block setScrAddrLastScanned(scrAddr, ssh.alreadyScannedUpToBlk_); }