diff --git a/back-end-projects/Explorer/src/main/resources/mapper/NodeInspireMapper.xml b/back-end-projects/Explorer/src/main/resources/mapper/NodeInspireMapper.xml index 6c5aea79..4136a5a6 100644 --- a/back-end-projects/Explorer/src/main/resources/mapper/NodeInspireMapper.xml +++ b/back-end-projects/Explorer/src/main/resources/mapper/NodeInspireMapper.xml @@ -65,7 +65,10 @@ FROM tbl_node_inspire a INNER JOIN tbl_node_info_off_chain b ON a.public_key = b.public_key + INNER JOIN tbl_node_info_on_chain c + ON a.public_key = c.public_key WHERE b.bad_actor = 0 + AND c.progress+0 100 ORDER BY a.user_apy+0 DESC LIMIT 1;