-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReceiptStoreOperations.list_receipts_since returns wrong list #4
Comments
i realize that this is wrong project for this defect. |
Please close this issue and create a new one on sawtooth-lib. Thanks! |
moved to correct project splintercommunity/sawtooth-lib#3 |
The list_receipts_since returns wrong list;
this is because, the WHERE clause instead of comparing the transaction_receipt::idx.gt(idx) is comparing the transaction_receipt::transaction_id.gt(id)
let transaction_receipt_models: Vec = match id {
Some(id) => query
.filter(transaction_receipt::transaction_id.gt(id)) // THIS IS THE BUG
.select(transaction_receipt::all_columns)
.load(self.conn)
Solution: i think we should get the transaction_receipt's idx for the give 'id'; and then filter the other receipts which have idx greater that the given idx.
The text was updated successfully, but these errors were encountered: