Commit 161bdf7
feat: add block hash to grpc method (#7025)
Description
---
Added optional block hash to grpc method GetCompletedTransactionsRequest
Motivation and Context
---
Some clients maw want to filter completed transactions by block hash.
How Has This Been Tested?
---
System-level testing running thre grpc call.
What process can a PR reviewer use to test or verify this change?
---
Code review
System-level testing
<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->
Breaking Changes
---
- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify
<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added support for filtering completed wallet transactions by block
hash alongside payment ID.
- **Tests**
- Updated test cases and integration tests to accommodate the new block
hash filter parameter when retrieving completed transactions.
- **Chores**
- Enhanced internal request structures, gRPC service, and database
queries to support filtering by block hash.
No changes to user interface or existing transaction retrieval behavior
unless the new filter is applied.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: SW van Heerden <swvheerden@gmail.com>1 parent b5da6e8 commit 161bdf7
File tree
13 files changed
+191
-72
lines changed- applications
- minotari_app_grpc/proto
- minotari_console_wallet/src
- grpc
- ui/state
- base_layer
- wallet_ffi/src
- wallet
- src/transaction_service
- storage
- tests/transaction_service_tests
- integration_tests/tests/steps
13 files changed
+191
-72
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| |||
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
| 197 | + | |
191 | 198 | | |
192 | 199 | | |
193 | 200 | | |
| |||
216 | 223 | | |
217 | 224 | | |
218 | 225 | | |
| 226 | + | |
219 | 227 | | |
220 | 228 | | |
221 | 229 | | |
| |||
304 | 312 | | |
305 | 313 | | |
306 | 314 | | |
| 315 | + | |
307 | 316 | | |
308 | 317 | | |
309 | 318 | | |
310 | | - | |
| 319 | + | |
311 | 320 | | |
312 | 321 | | |
313 | 322 | | |
| |||
324 | 333 | | |
325 | 334 | | |
326 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
327 | 344 | | |
328 | 345 | | |
329 | 346 | | |
| |||
361 | 378 | | |
362 | 379 | | |
363 | 380 | | |
| 381 | + | |
364 | 382 | | |
365 | 383 | | |
366 | 384 | | |
| |||
406 | 424 | | |
407 | 425 | | |
408 | 426 | | |
| 427 | + | |
409 | 428 | | |
410 | 429 | | |
411 | 430 | | |
| |||
435 | 454 | | |
436 | 455 | | |
437 | 456 | | |
| 457 | + | |
438 | 458 | | |
439 | 459 | | |
440 | 460 | | |
| |||
492 | 512 | | |
493 | 513 | | |
494 | 514 | | |
| 515 | + | |
495 | 516 | | |
496 | 517 | | |
497 | 518 | | |
| |||
535 | 556 | | |
536 | 557 | | |
537 | 558 | | |
| 559 | + | |
538 | 560 | | |
539 | 561 | | |
540 | 562 | | |
| |||
583 | 605 | | |
584 | 606 | | |
585 | 607 | | |
| 608 | + | |
586 | 609 | | |
587 | 610 | | |
588 | 611 | | |
| |||
647 | 670 | | |
648 | 671 | | |
649 | 672 | | |
| 673 | + | |
650 | 674 | | |
651 | 675 | | |
652 | 676 | | |
| |||
683 | 707 | | |
684 | 708 | | |
685 | 709 | | |
| 710 | + | |
686 | 711 | | |
687 | 712 | | |
| 713 | + | |
688 | 714 | | |
689 | 715 | | |
| 716 | + | |
690 | 717 | | |
691 | 718 | | |
692 | 719 | | |
| |||
731 | 758 | | |
732 | 759 | | |
733 | 760 | | |
| 761 | + | |
734 | 762 | | |
735 | 763 | | |
736 | 764 | | |
| |||
778 | 806 | | |
779 | 807 | | |
780 | 808 | | |
| 809 | + | |
781 | 810 | | |
782 | 811 | | |
783 | 812 | | |
| |||
822 | 851 | | |
823 | 852 | | |
824 | 853 | | |
| 854 | + | |
825 | 855 | | |
826 | 856 | | |
827 | 857 | | |
| |||
862 | 892 | | |
863 | 893 | | |
864 | 894 | | |
| 895 | + | |
865 | 896 | | |
866 | 897 | | |
| 898 | + | |
867 | 899 | | |
868 | 900 | | |
869 | 901 | | |
| |||
898 | 930 | | |
899 | 931 | | |
900 | 932 | | |
| 933 | + | |
901 | 934 | | |
902 | 935 | | |
903 | 936 | | |
| |||
1141 | 1174 | | |
1142 | 1175 | | |
1143 | 1176 | | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
1144 | 1182 | | |
1145 | 1183 | | |
1146 | 1184 | | |
| |||
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
933 | 942 | | |
934 | 943 | | |
935 | | - | |
| 944 | + | |
936 | 945 | | |
937 | 946 | | |
938 | 947 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
755 | 760 | | |
756 | 761 | | |
757 | 762 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
211 | | - | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
963 | 966 | | |
964 | 967 | | |
965 | 968 | | |
| 969 | + | |
966 | 970 | | |
967 | 971 | | |
968 | 972 | | |
969 | | - | |
| 973 | + | |
970 | 974 | | |
971 | 975 | | |
972 | 976 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
895 | | - | |
896 | | - | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
897 | 899 | | |
898 | 900 | | |
899 | 901 | | |
| |||
Lines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
485 | | - | |
| 486 | + | |
486 | 487 | | |
487 | | - | |
| 488 | + | |
| 489 | + | |
488 | 490 | | |
489 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
490 | 494 | | |
491 | 495 | | |
492 | 496 | | |
| |||
599 | 603 | | |
600 | 604 | | |
601 | 605 | | |
| 606 | + | |
602 | 607 | | |
603 | | - | |
| 608 | + | |
604 | 609 | | |
605 | 610 | | |
606 | 611 | | |
607 | | - | |
| 612 | + | |
608 | 613 | | |
609 | 614 | | |
610 | 615 | | |
| |||
630 | 635 | | |
631 | 636 | | |
632 | 637 | | |
| 638 | + | |
633 | 639 | | |
634 | 640 | | |
635 | 641 | | |
636 | 642 | | |
637 | 643 | | |
638 | 644 | | |
639 | | - | |
640 | | - | |
641 | | - | |
| 645 | + | |
| 646 | + | |
642 | 647 | | |
643 | 648 | | |
644 | 649 | | |
| |||
652 | 657 | | |
653 | 658 | | |
654 | 659 | | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
655 | 663 | | |
656 | 664 | | |
657 | 665 | | |
| |||
0 commit comments