update 新增算法sha3x xtm币种,后台管理系统优化钱包出入账信息

This commit is contained in:
yyb
2025-10-09 14:19:38 +08:00
parent 2efa65222d
commit 4e9d55aab6
5 changed files with 90 additions and 94 deletions

View File

@@ -855,7 +855,7 @@ public class NodeTask {
//TODO
@Scheduled(cron = "0 0/1 * * * ?")
public void XtmBlockInfoToRedis(){
public void Sha3xBlockInfoToRedis(){
if(!enable){
return;
}

View File

@@ -592,7 +592,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
reward,
fees
from
xtm_pool_blkstats
sha3x_pool_blkstats
order by `date` desc
</select>
@@ -646,7 +646,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
reward,
fees
from
tari_blkreportprofitv2
sha3x_blkreportprofitv2
where
`date` > #{date}
order by `date`
@@ -1015,11 +1015,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="getXtmBlockInfo" resultType="com.m2pool.pool.entity.BlockInfo">
select height,difficulty,power,reward,fees,profit from xtm_block_info order by id desc limit 1;
select height,difficulty,power,reward,fees,profit from sha3x_block_info order by id desc limit 1;
</select>
<insert id="insertXtmBlockInfo">
insert into xtm_block_info (height,difficulty,power,reward,fees,profit,price)
insert into sha3x_block_info (height,difficulty,power,reward,fees,profit,price)
values(#{blockInfo.height}
,#{blockInfo.difficulty}
,#{blockInfo.power}