crosslightning-solana
Advanced tools
Comparing version 3.4.3 to 3.4.4
@@ -478,2 +478,3 @@ "use strict"; | ||
let i = lastSweepId == null ? 0 : lastSweepId + 1; | ||
let lastCheckedId = lastSweepId; | ||
for (; i <= forkId; i++) { | ||
@@ -502,6 +503,6 @@ const accountAddr = this.BtcRelayFork(i, this.provider.publicKey); | ||
console.log("[SolanaBtcRelay]: Success sweep tx: ", signature); | ||
lastSweepId = i; | ||
tx = new web3_js_1.Transaction(); | ||
} | ||
} | ||
lastCheckedId = i; | ||
} | ||
@@ -511,5 +512,4 @@ if (tx.instructions.length > 0) { | ||
console.log("[SolanaBtcRelay]: Success sweep tx: ", signature); | ||
lastSweepId = i; | ||
} | ||
return i; | ||
return lastCheckedId; | ||
}); | ||
@@ -516,0 +516,0 @@ } |
{ | ||
"name": "crosslightning-solana", | ||
"version": "3.4.3", | ||
"version": "3.4.4", | ||
"description": "Solana specific base implementation", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -577,2 +577,3 @@ import {AnchorProvider, BN, BorshCoder, EventParser, Program} from "@coral-xyz/anchor"; | ||
let i = lastSweepId==null ? 0 : lastSweepId+1; | ||
let lastCheckedId = lastSweepId; | ||
for(; i<=forkId; i++) { | ||
@@ -602,6 +603,6 @@ const accountAddr = this.BtcRelayFork(i, this.provider.publicKey); | ||
console.log("[SolanaBtcRelay]: Success sweep tx: ", signature); | ||
lastSweepId = i; | ||
tx = new Transaction(); | ||
} | ||
} | ||
lastCheckedId = i; | ||
} | ||
@@ -612,6 +613,5 @@ | ||
console.log("[SolanaBtcRelay]: Success sweep tx: ", signature); | ||
lastSweepId = i; | ||
} | ||
return i; | ||
return lastCheckedId; | ||
@@ -618,0 +618,0 @@ } |
394472