catchup/catchup.js
function updateLastRoundIndexFromPeers( nLastRoundIndex, nLastMainChainIndex )
{
	if ( 'number' === typeof nLastRoundIndex && nLastRoundIndex > 0 &&
		 'number' === typeof nLastMainChainIndex && nLastMainChainIndex > 0 )
	{
		if ( null === _nLastRoundIndexFromPeers || nLastRoundIndex > _nLastRoundIndexFromPeers ||
			 null === _nLastMainChainIndexFromPeers || nLastMainChainIndex > _nLastMainChainIndexFromPeers )
		{
			_nLastRoundIndexFromPeers = nLastRoundIndex;
			_nLastMainChainIndexFromPeers = nLastMainChainIndex;
			_event_bus.emit( 'updated_last_round_index_from_peers', _nLastRoundIndexFromPeers, _nLastMainChainIndexFromPeers );
		}
	}
}
function updateLastRoundIndexFromPeers( nLastRoundIndex, nLastMainChainIndex )
{
	if ( 'number' === typeof nLastRoundIndex && nLastRoundIndex > 0 &&
		 'number' === typeof nLastMainChainIndex && nLastMainChainIndex > 0 )
	{
		if ( null === _nLastRoundIndexFromPeers || nLastRoundIndex > _nLastRoundIndexFromPeers ||
			 null === _nLastMainChainIndexFromPeers || nLastMainChainIndex > _nLastMainChainIndexFromPeers )
		{
			_nLastRoundIndexFromPeers = nLastRoundIndex;
			_nLastMainChainIndexFromPeers = nLastMainChainIndex;
			_event_bus.emit( 'updated_last_round_index_from_peers', _nLastRoundIndexFromPeers, _nLastMainChainIndexFromPeers );
		}
	}
}
function updateLastRoundIndexFromPeers ( nLastRoundIndex , nLastMainChainIndex ) { if ( 'number' === typeof nLastRoundIndex && nLastRoundIndex > 0 && 'number' === typeof nLastMainChainIndex && nLastMainChainIndex > 0 ) { if ( null === _nLastRoundIndexFromPeers || nLastRoundIndex > _nLastRoundIndexFromPeers || null === _nLastMainChainIndexFromPeers || nLastMainChainIndex > _nLastMainChainIndexFromPeers ) { _nLastRoundIndexFromPeers = nLastRoundIndex ; _nLastMainChainIndexFromPeers = nLastMainChainIndex ; _event_bus . emit ( 'updated_last_round_index_from_peers' , _nLastRoundIndexFromPeers , _nLastMainChainIndexFromPeers ) ; } } }
update last round index from all outbound peers
@return	{void}
update last round index from all outbound peers