Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Dec 26, 2024
1 parent cbce703 commit e63a6a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions turbo/jsonrpc/otterscan_transaction_by_sender_and_nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (api *OtterscanAPIImpl) GetTransactionBySenderAndNonce(ctx context.Context,
return nil, err
}
txIndex := int(creationTxnID) - int(minTxNum) - 1 /* system-tx */
fmt.Printf("[dbg] loop3 3: creationTxnID=%d, minTxNum=%d, txIndex=%d\n", creationTxnID, minTxNum, txIndex)
if txIndex == -1 {
txIndex = (idx + int(prevTxnID)) - int(minTxNum) - 1
}
Expand All @@ -165,6 +166,8 @@ func (api *OtterscanAPIImpl) GetTransactionBySenderAndNonce(ctx context.Context,
log.Warn("[rpc] txn is nil", "blockNum", bn, "txIndex", txIndex)
return nil, nil
}
s, _ := txn.GetSender()
fmt.Printf("[dbg] loop3 4: %d, %d, %x\n", txn.GetNonce(), nonce, s)
found := txn.GetNonce() == nonce
if !found {
return nil, nil
Expand Down

0 comments on commit e63a6a5

Please sign in to comment.