Skip to content

Commit 41600ea

Browse files
committed
fix: skip get previous tx when cellbase
1 parent decc715 commit 41600ea

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/neuron-wallet/src/services/sync/get-blocks.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ export default class GetBlocks {
4646
const checkTx = new CheckTx(tx, this.url)
4747
const addresses = await checkTx.check(lockHashes)
4848
if (addresses.length > 0) {
49-
for (const input of tx.inputs!) {
49+
const inputs = tx.inputs!
50+
for (let i = 0; i < inputs.length; ++i) {
51+
if (i === 0) {
52+
continue
53+
}
54+
const input = inputs[i]
5055
const previousTxHash = input.previousOutput!.txHash
5156
let previousTxWithStatus = cachedPreviousTxs.get(previousTxHash)
5257
if (!previousTxWithStatus) {

0 commit comments

Comments
 (0)