support alph

This commit is contained in:
lzx
2025-04-15 11:15:38 +08:00
parent 9fe4d9145a
commit 90ae1d1852
7 changed files with 157 additions and 70 deletions

View File

@@ -484,7 +484,7 @@ class ALPHRPCNode extends HttpNode {
for(let item of fixedOutputs){
const {attoAlphAmount, address } = item
if(address === REPORT_ADDRESS){
return {height, hash: block_hash, time:Math.trunc(timestamp / 1000), block_reward: Number(attoAlphAmount), block_fees: null };
return {height, hash: block_hash, time:Math.trunc(timestamp / 1000), block_reward: BigInt(attoAlphAmount), block_fees: null };
}
}
// if(fixedOutputs.length === 1){