Skip to content

Commit

Permalink
chore: marked indirect_incoming stuff as buggy...solving in next PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ohager committed Apr 22, 2024
1 parent 8f2400b commit 650abc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/brs/db/sql/SqlBlockchainStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ public Collection<Transaction> getTransactions(Account account, int numberOfConf
);

if (includeIndirectIncoming) {

// FIXME: this needs to be reviewed, as it does not deliver 100% correct results.
int blockTimeStampHeight = getHeightForBlockTimeStamp(blockTimestamp);
SelectLimitPercentStep<Record1<Long>> indirectIncomings = ctx
.select(INDIRECT_INCOMING.TRANSACTION_ID)
Expand Down Expand Up @@ -269,6 +271,7 @@ public Collection<Transaction> getTransactions(Long senderId, Long recipientId,
// makes only sense if for recipient. Sender is implicitely included.
if (!bidirectional && hasRecipient) {

// FIXME: this needs to be reviewed, as it does not deliver 100% correct results.
int blockTimeStampHeight = getHeightForBlockTimeStamp(blockTimestamp);
SelectLimitPercentStep<Record1<Long>> indirectIncomingsForRecipient = ctx
.select(INDIRECT_INCOMING.TRANSACTION_ID)
Expand All @@ -287,6 +290,7 @@ public Collection<Transaction> getTransactions(Long senderId, Long recipientId,
}

if (bidirectional) {
// FIXME: this needs to be reviewed, as it does not deliver 100% correct results.
int blockTimeStampHeight = getHeightForBlockTimeStamp(blockTimestamp);
SelectLimitPercentStep<Record1<Long>> indirectIncomingsForBidirectional = ctx
.select(INDIRECT_INCOMING.TRANSACTION_ID)
Expand Down

0 comments on commit 650abc3

Please sign in to comment.