Commit 19bf131
kad: Do not update memory store on incoming
This PR ensures that the records discovered by the `GetRecord` query are
not propagated to the memory store.
This makes the litep2p behavior similar to the libp2p.
Another approach could be to put the record into the memory store if the
validation mode is `Automatic`. However, for networks with a large
number of records, this will exhaust the limit of our memory store.
Thanks @alexggh for catching this 🙏
Fix for:
- #190
cc @paritytech/networking
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: Dmitry Markin <dmitry@markin.tech>GetRecordSuccess (#190)1 parent 171e36a commit 19bf131
1 file changed
Lines changed: 4 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | 659 | | |
685 | 660 | | |
686 | 661 | | |
| |||
976 | 951 | | |
977 | 952 | | |
978 | 953 | | |
979 | | - | |
980 | | - | |
981 | | - | |
| 954 | + | |
| 955 | + | |
982 | 956 | | |
983 | 957 | | |
984 | 958 | | |
| |||
1017 | 991 | | |
1018 | 992 | | |
1019 | 993 | | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
| 994 | + | |
| 995 | + | |
1023 | 996 | | |
1024 | 997 | | |
0 commit comments