helium3@sina.com 1 rok temu
rodzic
commit
abaf52bd58
2 zmienionych plików z 3 dodań i 4 usunięć
  1. 1 2
      src/InitiaClient.ts
  2. 2 2
      src/onchain/week3/randomWeek3.ts

+ 1 - 2
src/InitiaClient.ts

@@ -1539,6 +1539,7 @@ export class InitiaClient extends InitiaTask {
         ((new Date().valueOf() + 3500000) * 1000000).toString(),
       )
       await this.broadcast(msg)
+      return `undone`
     }
 
     // const wallet = new Wallet(this.milkyway, this.key)
@@ -1547,8 +1548,6 @@ export class InitiaClient extends InitiaTask {
       { prefix: 'init' },
     )
 
-    const [account] = await wallet.getAccounts()
-
     const fee = {
       gas: '243190',
       amount: [

+ 2 - 2
src/onchain/week3/randomWeek3.ts

@@ -9,7 +9,7 @@ async function startCheck(concurrency) {
     where: {
       finish: 0,
     },
-    take: 4000,
+    take: 1,
     orderBy: {
       id: 'asc',
     },
@@ -211,4 +211,4 @@ async function startCheck(concurrency) {
   })
 }
 
-startCheck(80)
+startCheck(1)