Skip to content

Commit

Permalink
fix: skip get previous tx when cellbase
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 7, 2019
1 parent decc715 commit 41600ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/neuron-wallet/src/services/sync/get-blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ export default class GetBlocks {
const checkTx = new CheckTx(tx, this.url)
const addresses = await checkTx.check(lockHashes)
if (addresses.length > 0) {
for (const input of tx.inputs!) {
const inputs = tx.inputs!
for (let i = 0; i < inputs.length; ++i) {
if (i === 0) {
continue
}
const input = inputs[i]
const previousTxHash = input.previousOutput!.txHash
let previousTxWithStatus = cachedPreviousTxs.get(previousTxHash)
if (!previousTxWithStatus) {
Expand Down

0 comments on commit 41600ea

Please sign in to comment.